Messages in this thread | | | Subject | Re: Saving device driver state during shutdown | Date | Tue, 3 Aug 1999 08:28:13 +0200 (MEST) | From | (Rogier Wolff) |
| |
Joe Cotellese wrote: > Can anyone tell me if a method exists for saving device driver state > during shutdown. It seems to me that there may be instances where > devices might need to save some state information (in my case, audio > mixer settings) during shutdown. Searching through the kernel > sources and various on-line references I didn't see anything like > this. Does anyone think this is a good idea? If not, does another > method exists for saving state, for example an ioctl interface to a > ring 3 component?
The "unix way" to do this is to run a program at shutdown that does this. Conveniently all distributions have a sysv-init setup that allows this.
Indeed all it needs are the ioctls that allow it to read the current settings. If you run "xmix" you can see it read the current state from the driver, as it moves the sliders when another application changes them.
I even think that OSS comes with an application to do this.
Roger.
-- ** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 ** *-- BitWizard writes Linux device drivers for any device you may have! --* ------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------
- 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/
| |