From: Jon S. <jon...@ya...> - 2003-03-14 20:11:54
|
I noticed the email but I wasn't sure if you knew about the code from the way your mail was worded. I used fasync and poll to implement user space communications in a driver I just finished. Use kill_fasync(&fasync, SIGIO) from the device driver to signal the user app. The signal causes the app to poll which the driver replies POLLIN to. Polling identifies which device caused the signal. Now the user app knows it needs to IOCTL the handle to do whatever the driver needs it to. It only takes about 100 lines of code to implement the communication. google for: fasync sigio user ===== Jon Smirl jon...@ya... __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com |