Re: reading a file from a module

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

 



On Fri, Nov 08, 2002 at 01:56:20AM -0500, Raghu R. Arur wrote:
> 
>  I am facing problems during reading a file from my module. The file is a 
> proc file.

Ick.  In short, do not do this.  Please reconsider your design.  At the
very least, since you want to get something that is within /proc, you
can get access to the kernel structures that are providing it.

See the archives of this list for more reasons why not to ever try to
read a file from within the kernel.

thanks,

greg k-h
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[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