Re: read/write a file in kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux