Re: Accessing File System from Module

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

 



On Thu, Sep 19, 2002 at 10:25:48AM +0200, yaelgilad wrote:
> Hi,
> I am building a kernel module which will probably need 
> to access files, real or virtual. The module will be inserted
> to an "out-of-the-box" kernel. I have full control of which-boxes :-)
> 
> Are there any obvious issues I should be aware of ?

Yes, you should not ever access files from within the kernel.  Do not do
this, change your design, it is broken.

> I need to create a kernel thread, which will loop
> on a blocking read from some something in /dev.

Heh, if you're wanting to block on data from a device, do that in
userspace, not within the kernel.

Good luck,

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