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

2010-01-15 Thread Jeffrey Cao
On 2010-01-15, Daniel (Youngwhan) Song wrote: > --000e0cd1b072cdfb11047d2a32af > Content-Type: text/plain; charset=ISO-8859-1 > > 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 pu

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

2010-01-14 Thread Greg KH
On Thu, Jan 14, 2010 at 05:48:21PM -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 fi

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

2010-01-14 Thread askb
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

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

2010-01-14 Thread Daniel (Youngwhan) Song
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 acces