[plug] kernel programming

Onno Benschop onno at itmaze.com.au
Wed Mar 24 14:42:38 WST 2004


On Wed, 2004-03-24 at 17:18, Parag Nemade wrote:
> hello Peter,
>            i require fopen cause i am calculating a
> string value and storing it in a file for temporary
> period and reading it by other file in kernel.
> 	   can i copy all header files from libc to kernel
> include directory?
> 	   I am using a red hat Linux 9.0 with kernel 2.4.

Sorry to be ignorant, but why don't you store it in memory?

Have one routine create the storage space, have the routine that you
create the value from be called from that routine, and have the routine
that retrieves the value also be called from the initiation routine...

Furthermore, I suspect that what you are attempting happens all over the
kernel, and I suspect that there are already mechanisms in place to do
exactly what you need to to without needing to store anything anywhere
on the file-system...


Onno Benschop 

Connected via Optus B3 at S41°18'23" - E146°49'07" (Holwell, Tas)
-- 
()/)/)()        ..ASCII for Onno.. 
|>>?            ..EBCDIC for Onno.. 
--- -. -. ---   ..Morse for Onno.. 

Proudly supported by Skipper Trucks, Highway1, Concept AV, Sony Central, Dalcon
ITmaze - ABN: 56 178 057 063 - ph: 04 1219 8888 - onno at itmaze dot com dot au




More information about the plug mailing list