Re: Show stoppers

Stefan Monnier (monnier+lists/linux/kernel@TEQUILA.SYSTEMSZ.CS.YALE.EDU)
Mon, 12 Oct 1998 16:34:37 -0400


> "A month of sundays ago Stefan Monnier wrote:"
> >
> > It doesn't seem to work with 2.0 and kerneld (apparently) because of a
>
> Works fine here.
>
> > fundamental problem regarding dependencies: the features requesting `sound' are
> > provided by `sound.o' which prevents kerneld from being involved when sound.o
>
>
> ?? fix your conf.modules to point to cs4232.o for the device in question!

Well, don't worry, that's what I have but:

examine the following situation:

- cat /dev/sndstat
- the `sound' feature is requested from kerneld
- using modules.conf, kerneld loads up cs4232.o and all the things it
depends on
- a minute passes
- kerneld sees that cs4232.o is not used and unloads it.
The key point here is that it doesn't unload the other modules yet
(they'll have to wait for the next minute)
- cat /dev/sndstat
- kerneld is *not* contacted to load cs4232.o since sound.o is already loaded
and already provides the requested kernel symbols

Same problem with `midi' vs `sound'. As long as sound.o is loaded, no `midi'
or `sound' request will ever make it to kerneld even though the midi feature
might not have been loaded yet (or might have been unloaded already).

So how do you fix that ? I know `options -k sound cs4232.o' "solves"
part of the problem by preventing unloading. But I *want* the sound
modules to be unloaded

Stefan

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