Restoring kernel module settings

From: Nuno Santos <hidden>
Date: 2011-12-06 18:34:37

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help