prashanth (mnprash@sasken.com) wrote: > hi , > i want to open a file in kernel mode,after that i want to read/write a data to/from that file. > > i tried using sys_open,it doesn't work. > then i tried with filp_open,it opens the file.but it returns a pointer to struct file. > now i want to read the opened file.can anyone pls tell me how to do that. > thanks in advance. It is always a bad idea to read/write to a file in kernel mode ;) Please search on knewbies or google for further information on it. Have a good day. -- Amicalement Christophe * GNU/Linux & UNIX developer and network administrator * Membre RotomaLUG (http://www.rotomalug.org) * Registered User #271267 * Email: c.lucas@ifrance.com * Web Site: http://odie.mcom.fr/~clucas/
Attachment:
signature.asc
Description: Digital signature