Date: Tue, 04 Nov 2008 11:00:56 -0700 (MST) From: "M. Warner Losh" <imp@bsdimp.com> To: jdp@elvis.rowan.edu Cc: freebsd-drivers@freebsd.org Subject: Re: Basic Driver Development Questions. Message-ID: <20081104.110056.-1350515023.imp@bsdimp.com> In-Reply-To: <Pine.GSO.4.64.0811041213490.16185@elvis.rowan.edu> References: <20081104155035.GS60438@elvis.mu.org> <19FD5239-C9C8-4F2A-A320-D58F8002CE42@gmail.com> <Pine.GSO.4.64.0811041213490.16185@elvis.rowan.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <Pine.GSO.4.64.0811041213490.16185@elvis.rowan.edu> Joe Pellegrino <jdp@elvis.rowan.edu> writes: : 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? Can you post a pointer to the article? Warner : ---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 <jdp@elvis.rowan.edu> [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----- : _______________________________________________ : 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" : :
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081104.110056.-1350515023.imp>