From owner-freebsd-drivers@FreeBSD.ORG Tue Nov 4 15:50:35 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 525F7106568F for ; Tue, 4 Nov 2008 15:50:35 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 40D348FC1F for ; Tue, 4 Nov 2008 15:50:35 +0000 (UTC) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 20E701A3C4C; Tue, 4 Nov 2008 07:50:35 -0800 (PST) Date: Tue, 4 Nov 2008 07:50:35 -0800 From: Alfred Perlstein To: Joe Pellegrino Message-ID: <20081104155035.GS60438@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-drivers@freebsd.org Subject: Re: Basic Driver Development Questions. X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Nov 2008 15:50:35 -0000 * Joe Pellegrino [081103 16:30] wrote: > I am trying to develop a small kernel module and I wanted to ask some > questions about implementation. First, there is a component of Linux, > called netlink, which permits IPC communication between a userspace app > and kernel module using sockets. Is there a FreeBSD equivalent? I know you > can do this with IOCTL and perhaps through proc but I would prefer using a > technique similar to netlink. > > Toward that I am looking at netgraph (ng_socket) but have run into some > trouble mostly related to inexperience with netgraph. So basically: > > 1. Is there something similar to netlink? > > 2. Would that be NetGraph? > > 3. If not what is it? > > I do have further questions depending on how these are answered. Thanks > for your help. :) Hey Joe, can you give a link to us that explains what "netlink" is and how to use it? examples and such? thank you, -- - Alfred Perlstein