Re: [PATCH 59/70] USB Input: Added kernel module to support all GTCO CalComp USB InterWrite Sc hool products
Dmitry Torokhov <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
On Tuesday 13 February 2007 18:52, Jeremy Roberson wrote: > Can you give me example syntax for using EVIOCGRAB ioctl or point me to > the documentation? This may very well solve my problem. I wasn't aware > that it could be issued after the device node had already been created. > You basically do: ret = ioctl(fd, EVIOCGRAB, 1); to "grab" device for exclusive access and ret = ioctl(fd, EVIOCGRAB, 0); to release it after you are done with it. fd is a file descriptor you get when you open /dev/input/eventX. -- Dmitry ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel