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 [email protected]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to