View Single Post
  #7   (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,983
Default

One last thing: The only user->kernel communication tool that I use regularly is PF (I'm an OpenBSD user). It has a pseudo device driver, pf(4), which use ioctl(2) syscalls. The userland program is pfctl(8).

So ioctl appears to be the right tool for the job.

Reviewing the source for the driver and the userland program may be helpful.
Reply With Quote