lkml.org 
[lkml]   [2004]   [Feb]   [2]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSun, 1 Feb 2004 21:21:00 -0800
FromGreg KH <>
SubjectRe: module-init-tools/udev and module auto-loading
On Mon, Feb 02, 2004 at 12:31:58AM +0200, Martin Schlemmer wrote:
> Hi
> 
> A quick question on module-init-tools/udev and module auto-loading ...
> lets say I have a module called 'foo', that I want the kernel to
> auto-load.

Wait, stop right there.  When do you want the module autoloaded?

If you want it loaded when the device is plugged in, then great, the
hotplug scripts will do that.

If you want the module loaded when you try to access the /dev node, then
see the FAQ about udev for that :)

> Then a distant related issue - anybody thought about dynamic major
> numbers of 2.7/2.8 (?) and the 'alias char-major-<whatever>-* whatever'
> type modprobe rules (as the whole fact of them being dynamic, will make
> that alias type worthless ...)?

Yes, it will make the char-major-* stuff worthless, however the distro
I use has not used that style of alias for years, why would yours?  :)

Rusty had it correct in that you need to try to load for the type of
module:
	alias eth1 tulip
	alias usb-controller usb-ohci
and so on.  That's the much better way.

thanks,

greg (I hate kmod) k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:00    [from the cache]
©2003-2008