Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2003 15:17:30 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Marc Ramirez <marc.ramirez@bluecirclesoft.com>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Communications kernel -> userland
Message-ID:  <Pine.GSO.4.10.10307181512460.14292-100000@pcnet5.pcnet.com>
In-Reply-To: <20030718150047.O61759@www.bluecirclesoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10307181512460.14292-100000>