- From: David Schleef <ds_at_schleef.org>
- Date: Wed, 18 Sep 2002 12:04:01 -0700
On Wed, Sep 18, 2002 at 02:56:04PM +0200, Guenter Gebhardt wrote: > Is this only true for modules programmed to fit into the comedi driver, or is > it generally not possible for kernel code to access a file on the hard disk? It is possible in the kernel, but unwise. Fixed path names in the kernel are very bad. Comedi has relatively strict (but unwritten!) rules about what can go in a driver. (Don't worry, I don't expect people to read my mind, so I fix the drivers myself.) Code that opens a file would only be allowed in an _attach function (since it can/will call schedule()), and since there's an existing Comedi mechanism to transfer files to a driver, it's not allowed. dave...
Received on 2002-09-18Z18:04:01