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.