From owner-freebsd-hackers@FreeBSD.ORG Fri Jul 18 12:17:35 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C3CA37B43B for ; Fri, 18 Jul 2003 12:17:35 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3100143FB1 for ; Fri, 18 Jul 2003 12:17:34 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h6IJHUAI014922; Fri, 18 Jul 2003 15:17:30 -0400 (EDT) Date: Fri, 18 Jul 2003 15:17:30 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Marc Ramirez In-Reply-To: <20030718150047.O61759@www.bluecirclesoft.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-hackers@freebsd.org Subject: Re: Communications kernel -> userland X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Jul 2003 19:17:36 -0000 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