Restoring kernel module settings
Hi,
I have developed a kernel module to act as driver for a multitouch input device,
It happens that the kernel module settings are setted and getted via binnary attributes.
I know that kernel modules can't save or read files. I need an alternative way of restoring a saved settings state.
Question:
Is there any way of calling a determined program when a device is connected to the computer?
My idea is to develop a really small application that sets the saved settings from the last time the device control panel interacted with the device.
I think someone has already suggested udev to do it. What functionality should I search within udev documentation? Is there any other way of achieving this?
Thank you in advance,
With my best regards,
Nuno