From owner-freebsd-questions@FreeBSD.ORG Wed Jul 17 18:07:14 2013 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 00A353BC for ; Wed, 17 Jul 2013 18:07:13 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id BB11D15B for ; Wed, 17 Jul 2013 18:07:13 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.7/8.14.7) with ESMTP id r6HI7DIw091890; Wed, 17 Jul 2013 12:07:13 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.7/8.14.7/Submit) with ESMTP id r6HI7CVG091887; Wed, 17 Jul 2013 12:07:12 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Wed, 17 Jul 2013 12:07:12 -0600 (MDT) From: Warren Block To: Michel Behr Subject: Re: Bill Paul's network drivers In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 17 Jul 2013 12:07:13 -0600 (MDT) Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Jul 2013 18:07:14 -0000 On Wed, 17 Jul 2013, Michel Behr wrote: > Hi > > I'm considering learning how to build drivers, so I can make my Lenovo S400 > wireless card get detected by FreeBSD. > > The Architecture Handbook cites these "Bill Paul's network drivers". > > 9.5 Network Drivers: Drivers for network devices do not use device nodes in > order to be accessed. Their selection is based on other decisions made > inside the kernel and instead of calling open(), use of a network device is > generally introduced by using the system call socket(2). > > For more information see ifnet(9), the source of the loopback device, and > Bill Paul's network drivers. > > Where can I find those Bill Paul's network drivers? In the source tree, mostly: find /usr/src -path "*/sys/dev/*" -exec grep -l "Bill Paul" {} \+ Joseph Kong's book "FreeBSD Device Drivers" will likely be useful, too: http://nostarch.com/bsddrivers.htm