Re: Why the linux does not allow the access to a file in the device driver?

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

 



On Thu, 2010-01-14 at 17:48 -0800, Daniel (Youngwhan) Song wrote:
> Hi,
> 
> Could somebody help me to understand the reason why the linux kernel
> does not allow the access to a file in the device driver? For example,
> for debugging purpose, if a device driver want to log some data in a
> file by using open/write/read method like in user application, how a
> driver can access to a file in a specific filesystem? Any comment or
> docs or web pages would be appreciated.

Hi Dan, 

As per my understanding goes, its is not good practice of doing any of
sys_ calls form within the kernel space.  
Here is a useful link:
http://kernelnewbies.org/FAQ/WhyWritingFilesFromKernelIsBad

~Anil


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at 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