> 1. Before auto-unload of the driver, run a small utility which will read > mixer settings > and save them somewhere > 2. When auto-loading the driver, use driver arguments which are initialized > from the > settings saved above > All that's missing is the method of passing data from step 1 to step 2. A simple more generic solution is to do this struct things_to_keep my_bits { .. }; struct things_to_keep __persistent card_info[NUM_CARDS] { } and have insmod do load module up open /var/run/moduledata/$modname if exists && is from this boot then && is right size read data into __persistent ELF section endif load into kernel init module and rmmod cleanup module open /var/run/moduledata/$modname write data from __persistent segment into file - 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 /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... Petko Manolov
- 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 /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... Horst von Brand
- Re: Persistent module storage [was Linux 2.4 Status /... Alon Ziv
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... Rogier Wolff
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... Jamie Lokier
- Re: Persistent module storage [was Linux 2.4 Status /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... Tim Riker
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- 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 /... James A . Sutherland