Welcome! Log In Create A New Profile

Advanced

Interrupt a kernel module when a user process terminates/receives a signal?

Posted by yaronshr 
Interrupt a kernel module when a user process terminates/receives a signal?
April 10, 2017 12:20PM
I am working on a kernel module where I need to be "aware" that a given process has crashed.

Right now my approach is to set up a periodic timer interrupt in the kernel module; on every timer interrupt, I check the task_struct.state and task_struct.exitstate values for that process.

I am wondering if there's a way to set up an interrupt in the kernel module that would go off when the process terminates, or, when the process receives a given signal (e.g., SIGINT or SIGHUP).

Thanks!
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 16 plus 10?
Message: