kernel notification to user space task
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 5 lines
I want my driver running in kernel to send a notification to this task when it detects some event.
for example..if my driver detects that interface 'eth0' is coming up, it should send a indication to user task saying 'network interface eth0 is up'
I think it's kind of FAQ. Have a thread waiting in your driver with add_wait_queue and schedule(). When awoken, the even thread can signal the main worker thread or do the job itself.
But first, make sure you are not served better with an event driven main thread (e.g. open a file descriptor into your driver, then use select() on it together with all other of your descriptors).
-- Pete