From owner-freebsd-drivers@FreeBSD.ORG Tue Nov 4 16:26:45 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 7F5BA10656A5; Tue, 4 Nov 2008 16:26:45 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.freebsd.org (Postfix) with ESMTP id D6C5B8FC3F; Tue, 4 Nov 2008 16:26:44 +0000 (UTC) (envelope-from ndenev@gmail.com) Received: by nf-out-0910.google.com with SMTP id h3so1303025nfh.33 for ; Tue, 04 Nov 2008 08:26:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-pgp-agent:x-mailer; bh=uk4IaGdeY37PCUx/grxyiILQyGDy7VDyQqH4HwB/VVA=; b=NIDq2RNJsLPE6649VpYZQq/0msh283Sin7ENCq+Qs5mG+1Je379tQslt8CR9dLi4uv G1PiiS9AVabaIAajg9ZDzkQhPveOKH9VWyEbPvkfM5LhMQSva9ZvC3A6jyGuKVKNL154 /vVyFrtCtEiFtqbe28U8bNXcReKU1FJt73cB4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-pgp-agent:x-mailer; b=bjBrNiU0bARJAOPpE3mI4g2ALxUYRl1Yh1RtrIN3snJ+mCslXvqpJW0x1FNgPpthm7 lnfRpc7WlQ4xSntkpFzMdwj8fYbtSygxr7iOX15EVaA+0z6URcr8STaeoSb4evYomITJ 9kfCy38G0GAJ/NtOlRVNLzxXrphM5vMBgrwN0= Received: by 10.103.227.13 with SMTP id e13mr789981mur.49.1225816003500; Tue, 04 Nov 2008 08:26:43 -0800 (PST) Received: from ndenev.cmotd.com (blah.sun-fish.com [217.18.249.150]) by mx.google.com with ESMTPS id j2sm33392989mue.4.2008.11.04.08.26.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 04 Nov 2008 08:26:42 -0800 (PST) Message-Id: <19FD5239-C9C8-4F2A-A320-D58F8002CE42@gmail.com> From: Nikolay Denev To: Alfred Perlstein In-Reply-To: <20081104155035.GS60438@elvis.mu.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Date: Tue, 4 Nov 2008 18:26:39 +0200 References: <20081104155035.GS60438@elvis.mu.org> X-Pgp-Agent: GPGMail d53 (v53, Leopard) X-Mailer: Apple Mail (2.929.2) 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 16:26:45 -0000 -----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-----