[EMAIL PROTECTED] said: > Except this isn't possible with the hardware in question! If it were, > there would be no problem. In cases where the hardware doesn't support > the functionality userspace "needs", why put the kludge in the kernel? > If userspace wants to know what settings it set last time, it should > store those values somewhere. No. You have to reset the hardware fully each time you load the module. Although you _expect_ it to be in the state in which you left it, you can't be sure of that. [EMAIL PROTECTED] said: > Eh? You just load the driver once, probably on boot, to configure sane > values. This time round, you use an argument (or an ioctl or whatever) > to specify the values you want. (cat /etc/sysconfig/sound/ > defaultvolume > /dev/sound/mixer or whatever). After that, the module > can be unloaded and loaded as needed, without any need to touch the > mixer settings except in response to *explicit* "set volume" commands > from userspace. Agreed. Where 'whatever' == persistent storage of some form. I care not what form that takes. If you can store the data entirely in userspace and still have them present at the time the driver initialises the hardware, that's fine. -- dwmw2 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Persistent module storage [was Linux 2.4 Status /... Paul Jakma
- Re: Persistent module storage [was Linux 2.4 Status /... Horst von Brand
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Gerhard Mack
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Gerhard Mack
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Gerhard Mack
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Horst von Brand
- Re: Persistent module storage [was Linux 2.4 Status /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Evan Jeffrey
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Martin Dalecki
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... Oliver Xymoron
- Re: Persistent module storage [was Linux 2.4 Status /... Jeff Garzik
- Re: Persistent module storage [was Linux 2.4 Status /... Oliver Xymoron
- Re: Persistent module storage [was Linux 2.4 Status /... Horst von Brand