Thread (4 messages) 4 messages, 3 authors, 2002-10-01

Re: Location for Linux kernel module support files

From: David Gibson <hidden>
Date: 2002-10-01 00:32:23

On Mon, Sep 30, 2002 at 11:46:22AM -0400, Tim Moloney wrote:
I have written a device driver (module) that needs a configuration
file.  Where is the standard place to put such files?
There isn't.  Device drivers, being part of the kernel, should not be
reading random files from the user's file system.  If the driver needs
configuration, the normal method is for userland scripts (either
startup or hotplug) to issue commands to poke the configuration into
the driver at runtime.
I originally put it in the same directory as the .o file but
'depmod -a' complains that it's not an ELF file.

--
David Gibson			| For every complex problem there is a
david@gibson.dropbear.id.au	| solution which is simple, neat and
				| wrong.
http://www.ozlabs.org/people/dgibson

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help