notify user space application from the kernel space
I need to write a device driver to monitor the battery. The driver will capture the interrupt whenever the battery is removed. My question is how to notify the user application from the interrupt handler? May I send a signal to all of applications? Or only send the signal to the specific application and how?