Re: some tiny and dumb questions

C. Scott Ananian (cananian@lcs.mit.edu)
Sun, 17 May 1998 20:19:33 -0400 (EDT)


On Sun, 17 May 1998 Thomas 'Dent' Mirlacher <dent@cosy.sbg.ac.at> wrote:

> 1) how can someone read a file out from kernel-space
> assume you've a module, getting its config data from
> a file in userspace, and i'd like to use sysctl to
> specify this file - but the module should read it
> -> downloading a formware release to a card

Generally reading a file directly from kernel-space is considered
extremely bad form. Config data should be in a modules.conf-friendly
format (command-line options) and firmware should be linked directly into
the module. It's fairly simple to write a tool that translates an
arbitrary binary file into an equivalent C array declaration...
--Scott
@ @
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-oOO-(_)-OOo-=-=-=-=-=
C. Scott Ananian: cananian@lcs.mit.edu / Declare the Truth boldly and
Laboratory for Computer Science/Crypto / without hindrance.
Massachusetts Institute of Technology /META-PARRESIAS AKOLUTOS:Acts 28:31
-.-. .-.. .. ..-. ..-. --- .-. -.. ... -.-. --- - - .- -. .- -. .. .- -.
PGP key available via finger and from http://www.pdos.lcs.mit.edu/~cananian

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu