Synchronizing driver with user mode application

2006-10-29 Thread Michael Sternberg
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

Re: Synchronizing driver with user mode application

2006-10-29 Thread Oron Peled
On Sunday, 29 בOctober 2006 09:34, Michael Sternberg wrote: I want to ask how reliable to use signals to notify user mode application from driver ? An indirect answer... I think you look at the problem from the wrong side. It is much more complicated (though possible) to synchronize user space

Re: Synchronizing driver with user mode application

2006-10-29 Thread Baruch Even
* 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

Re: Synchronizing driver with user mode application

2006-10-29 Thread Shachar Shemesh
Oron Peled wrote: * aio_* API (in modern 2.6 kernels) A complete sidetracking here. Are you sure it's 2.6 kernels only? The man page lists aio_read under section 3 (library functions), while Advanced Programming in the UNIX Environment - Second Edition states that Linux version 2.4.22

Re: Synchronizing driver with user mode application

2006-10-29 Thread Muli Ben-Yehuda
On Sun, Oct 29, 2006 at 11:17:47AM +0200, Shachar Shemesh wrote: Oron Peled wrote: * aio_* API (in modern 2.6 kernels) A complete sidetracking here. Are you sure it's 2.6 kernels only? The man page lists aio_read under section 3 (library functions), while Advanced Programming in the