Re: Future devfs plans

From: Erik Steffl
Date: Tue Jul 27 2004 - 13:58:31 EST


David Bryson wrote:
On Sun, Jul 25, 2004 at 11:58:32PM -0700 or thereabouts, Erik Steffl wrote:

devfs allowes you to not have the driver loaded till you try to use it.
so udev _cannot_ do what devfs does.

still I agree that the way kernel/hotplug/udev work is much better and
supporting the old style devfs works is not necessary. but please be
honest about the differences.

which means that now iPod automatically connects to firewire (and looses info on random tracks, sometime some other settings), instead of only connecting when I try to actually access it (the device).

I have been using ipods with linux for about 3 years.
And I see that it says "do not disconnect" even after I have unmounted
the file system. I just disconnect it at this point and have not
had any problems.

me neither (well, few times iPod locked up and I had to do the two finger salute (hold, then menu&play)), I just don't want it to connect in the first place, the reason being that once it connects it looses the track of random tracks (so that they start from scratch and then i get repeated songs) and from time to time contrast (and I almost can't see display with default contrast so I have to set the contrast again). not really a big deal but inconvenient.

I know I can just handle the loading of the modules manually but I'd rather have it handled by the system (plus loading and unloading of modules manually has to be done by admin while automatic load/unload works for any user)

And, of course, what's the point in having drivers loaded for devices I only use occasionally (iPod, digital camera)

it looks like there is no user level (end user, not admin) control on when the device drivers are loaded anymore - or is there?

Is there any way to load drivers on demand (obviously it's not job of udev but whose job it is?). What about unloading them - I unmount the disk and i think the iPod is disconnecred but it still says connected - is there any way to disconnect it (I guess similar problems arise with other hotplug devices)

This has been discussed in length on lkml many times during the
writing of udev. IIRC the argument was something like:
"we shouldn't be unloading modules because the memory taken up by a
module in memory(a few k) isn't worth writing the code to save"

I also recall there was something about end user behavior, but I don't
remember the details. Read the archives.

yeah, I've read some of it on lkml and elsewhere, just don't think it's a good idea. Sometime you just don't want the module loaded (one example is my usage of iPod), memory is only one (sometime, maybe often, negligible) reason.

This looks like one of those 90% solutions that are so annoying (and that are fairly rare in free (libre) software which I personally use in large part because of its flexibility).

erik

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