file I/O in kernel module

From: Joohyun Cha (zoo11@hst.co.kr)
Date: Tue Oct 22 2002 - 20:09:25 EDT


Hi Gurus.

I'm trying to write a some tiny kernel module which fake a hostid.
I want module to read a hostid from file called /etc/hostid. so I
wrote a code that use a normal system call (ie. open(), read() etc.)
in a my kernel module. and when I tested it I found that it doesn't
work proper way that I thought. Maybe I should not use a normal
system call in a kernel module to handle file I/Os.
How can I do to handle a file (read from regular file) in a loadable
kernel module? Please give me some advise or reference.

Thanks in advance. I'll sum.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:09 EDT