* Michael Sternberg <[EMAIL PROTECTED]> [061029 09:43]:
> Hello everybody.
> 
> I want to ask how reliable to use signals to notify user mode
> application from driver ? I have a driver that stops every I/O and
> sends a signal to user mode application. After that user mode
> application send ioctl to release that I/O. Driver is not supposed to
> send another signal until it did not received ioctl from user mode.
> I've added some traces and have seen that sometimes signal is sent by
> driver but never reaches the application. Of course that could be my
> bug but still - how reliable the signals are ? What another mechanisms
> are exist to synchronize driver with user mode application ?

A better method would be to have an open file descriptor from the
application to the driver, possibly in the form of a character driver so
the driver can write to device and the application will read it. It will
give you a signalling system and the driver will be notified once the
user program died for some reason since the device will be closed.

Cheers,
Baruch

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to