From owner-freebsd-drivers@FreeBSD.ORG Tue Nov 4 17:15:20 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 4D8001065676; Tue, 4 Nov 2008 17:15:20 +0000 (UTC) (envelope-from jdp@elvis.rowan.edu) Received: from elvis.rowan.edu (elvis.rowan.edu [150.250.64.69]) by mx1.freebsd.org (Postfix) with ESMTP id B2C1C8FC14; Tue, 4 Nov 2008 17:15:19 +0000 (UTC) (envelope-from jdp@elvis.rowan.edu) Received: from elvis.rowan.edu (localhost [127.0.0.1]) by elvis.rowan.edu (8.13.8+Sun/8.13.8) with ESMTP id mA4HFJm4016237; Tue, 4 Nov 2008 12:15:19 -0500 (EST) Received: from localhost (jdp@localhost) by elvis.rowan.edu (8.13.8+Sun/8.13.8/Submit) with ESMTP id mA4HFJRk016233; Tue, 4 Nov 2008 12:15:19 -0500 (EST) Date: Tue, 4 Nov 2008 12:15:19 -0500 (EST) From: Joe Pellegrino To: Nikolay Denev In-Reply-To: <19FD5239-C9C8-4F2A-A320-D58F8002CE42@gmail.com> Message-ID: References: <20081104155035.GS60438@elvis.mu.org> <19FD5239-C9C8-4F2A-A320-D58F8002CE42@gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 17:15:20 -0000 i was just going to post those myself. Funny thing is, according to the article, this has been available since the 2.2 kernel version but it isn't in the device driver development book (oreilly) In any case I am looking for a similar component for FreeBSD. And if there isn't a precise match what would the closest way be to get that functionality? ---jdp On Tue, 4 Nov 2008, Nikolay Denev wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > On 4 Nov, 2008, at 17:50 , Alfred Perlstein wrote: > >> * 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 >> _______________________________________________ >> freebsd-drivers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-drivers >> To unsubscribe, send any mail to "freebsd-drivers-unsubscribe@freebsd.org" > > > Hi, > > http://www.ietf.org/rfc/rfc3549.txt > > http://en.wikipedia.org/wiki/Netlink > > http://www.linuxjournal.com/article/7356 (this one is a bit dated, but has > some examples) > > > - -- > Regards, > Nikolay Denev > > > > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (Darwin) > > iEYEARECAAYFAkkQd78ACgkQHNAJ/fLbfrkhfQCgu0EM6qM3qQM7PhOf6n8tUX+3 > ewoAnAmADfsS3Mf9Cnq7ssbXPYf5E/ZE > =Sz8R > -----END PGP SIGNATURE-----