Re: Module Ideas: Persistence, PnP, and more...

David Woodhouse (David.Woodhouse@mvhi.com)
Fri, 04 Sep 1998 09:12:08 +0100


alonz@cs.Technion.AC.IL said:
> The persistence mechanism itself will be implemented by having rmmod
> save the settings it's read into some file (probably indexed by module
> name); modprobe will consult this file, in addition to /etc/
> modules.conf, to determine module parameters when it invokes insmod.

> One caveat on this approach is that any state saved must be settable
> by insmod parameters; still, I think this is acceptable.

One thing to watch here is that it really must be at insmod time, not later.
With stuff like mixer settings, for example, the saved levels _must_ be
available before the initialisation of the hardware. If it's initialised to the
default settings and restored afterwards from userspace, then it's too late -
there's already been an unacceptable glitch in the sound levels.

---- ---- ----
David Woodhouse David.Woodhouse@mvhi.com Office: (+44) 1223 810302
Project Leader, Process Information Systems Mobile: (+44) 976 658355
Axiom (Cambridge) Ltd., Swaffham Bulbeck, Cambridge, CB5 0NA, UK.
finger dwmw2@ferret.lmh.ox.ac.uk for PGP key.

-
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/faq.html