lkml.org 
[lkml]   [1999]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Saving device driver state during shutdown
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.209 / U:0.176 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site