Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- May 2006
how drivers store device informaiton
I will explain my problem clearly. I have one device which acts in both mouse and joystick modes according to bits set in the status register of the device. I wanted my driver to store that device mode information i.e whether it is in joy stick or mousmode and my bus mode information and whenever my user application wants the device information it calls the corresponding ioctls and the driver has to pass the information.
With your advice i have gone through sysfs but when i rebooted the information is lost so what i want is even if i rebooted my information want to be persistent. So explain me how can i proceed with this and also explain any tutorial about programming sysfs.
If the status register is not persistent between boots so you need a userland application that runs when your system is going to reboot or is going to shutdown. This application should store the current status in a file in persisten storage.
Then you will need an application that runs when your system boots. This application should stablish the state of the device through sysfs.
Originally Posted by raju82