View Single Post
  #4   (View Single Post)  
Old 17th August 2009
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,977
Default

It does help, thanks!

IIRC, ioctl(2) is an interface to special files (/dev entries). You might be able to continue using ioctl, as you have designed your program, but instead of polling continuously, add notification through kqueue(2)/kevent(2) instead. Or, perhaps you could abandon ioctl (since it was intended for device control, not information gathering) and consider using the suite of socket(2)-based syscalls.
Reply With Quote