Kernel module signalling
Hi,
I need to signal a user mode app from a kernel module in kernel 2.6.7. I'm confused on how to do this properly. I see two functions for this, "force_sig()" and "send_sig()". I'm passing the user mode PID via IOCTL to the driver.
For example sake, the user mode PID = 1234 and the signal I want to use is 50. So I will have a callback function in my user mode to hook signal 50.
1) Which is the best function to use, force_sig() or send_sig().
2) for the task_struct, what is the minimum I need to fill in?
3) Anyone have any good example code for this?
Any help would be greatly appreciated!
-John
|