Communications kernel -> userland

Daniel Eischen eischen at vigrid.com
Fri Jul 18 12:17:36 PDT 2003


On Fri, 18 Jul 2003, Marc Ramirez wrote:
> I asked this in -questions, but got no response; sorry for the repost.
> 
> I have a device driver that needs to make requests for data from a
> userland daemon.  What's the preferred method for doing this in 4.8R and
> 5.1R?  I'm assuming the answer is Unix-domain sockets...

I think you got it backwards.  Not that you can't
do what you want to do, but it's usually the other
way around.

Your daemon should listen on the device (blocking
ioctl or read) and send data to the device when
it is ready for it (using write or ioctl).

-- 
Dan Eischen



More information about the freebsd-hackers mailing list