Skip to contentSkip to conversation

udev 021 release

ANNOUNCE Greg KH 3 participants 4 messages Mar 9, 2004 – Mar 10, 2004 2 messages not in the archive

lore
Share & tools
lore

Greg KH

author
#2 lore raw
In reply to a message not in the archive
Quoted 9 lines · rihad

Date: Wed, 3 Mar 2004 07:14:33 -0800
From: Greg KH <[email protected]>

Quoted 3 lines

Users need to learn that the kernel is changing models from one which automatically loaded modules when userspace tried to access the device, to one where the proper modules are loaded when the hardware is found.

Does this mean that I will have modules for all my hardware hanging around even if I'm not, say, using cdrom at the moment?

Yup, why not?

Quoted 2 lines

And does it mean that if I rmmod -a the unused cdrom module and later try to mount /cdrom, the correct module won't be magically insmod'ed?

If you don't have the /dev entry there, how would anything know to load the module?

Quoted 2 lines

I like the idea of lazy module loading, and it seems that your model doesn't fit in nicely, I could be wrong.

How about "loading the modules for the hardware present"? What's wrong with that?

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#3 lore raw
Quoted 9 lines · Greg KH
Quoted 7 lines · rihad

Date: Wed, 3 Mar 2004 07:14:33 -0800
From: Greg KH <[email protected]>

Quoted 3 lines

Users need to learn that the kernel is changing models from one which automatically loaded modules when userspace tried to access the device, to one where the proper modules are loaded when the hardware is found.

Quoted 6 lines
Quoted 2 lines

Does this mean that I will have modules for all my hardware hanging around even if I'm not, say, using cdrom at the moment?

Yup, why not?

I suspect there's nothing wrong with that under many common scenarios (apart from the one thing I seem to dislike so much that if a cdrom isn't being used, no driver for it should be loaded). But it does impose certain amount of strict policy that Unix (and Linux more so) has long been doing a great job of avoiding.

Quoted 8 lines
Quoted 3 lines

And does it mean that if I rmmod -a the unused cdrom module and later try to mount /cdrom, the correct module won't be magically insmod'ed?

If you don't have the /dev entry there, how would anything know to load the module?

Does the devfs/udev /dev entry get removed when doing rmmod? I though not. But since the module isn't there anymore, doing mount /dev/cdrom /cdrom would give "No such device". Not a problem per se, but then probably rmmod -a isn't as a wise thing to do with udev as it is with devfs. Bad.

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#4 lore raw

On Tue, 9 Mar 2004, rihad wrote:

[Snip]

Quoted 5 lines

Does the devfs/udev /dev entry get removed when doing rmmod? I though not. But since the module isn't there anymore, doing mount /dev/cdrom /cdrom would give "No such device". Not a problem per se, but then probably rmmod -a isn't as a wise thing to do with udev as it is with devfs. Bad.

See past linux-kernel threads on how problematic module unloading is (and how insanely hard it'd be to fix those problems). You really shouldn't be using rmmod unless you're a developer as it is.

Signature · 2 lines
Alex Goddard
agoddard at purdue dot edu
author
#5 lore raw
In reply to rihad
Quoted 3 lines · rihad

Does the devfs/udev /dev entry get removed when doing rmmod? I though not.

Yes it does. If the sysfs entry goes away.

Quoted 4 lines

But since the module isn't there anymore, doing mount /dev/cdrom /cdrom would give "No such device". Not a problem per se, but then probably rmmod -a isn't as a wise thing to do with udev as it is with devfs. Bad.

rmmod -a has not been a wise thing to do since 2.2 came out. It can easily take down a working box...

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel