From owner-freebsd-net@FreeBSD.ORG Mon Mar 19 20:23:18 2007 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5EF5E16A404 for ; Mon, 19 Mar 2007 20:23:18 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outD.internet-mail-service.net (outD.internet-mail-service.net [216.240.47.227]) by mx1.freebsd.org (Postfix) with ESMTP id 4E2AE13C4E3 for ; Mon, 19 Mar 2007 20:23:18 +0000 (UTC) (envelope-from julian@elischer.org) Received: from mx0.idiom.com (HELO idiom.com) (216.240.32.160) by out.internet-mail-service.net (qpsmtpd/0.32) with ESMTP; Mon, 19 Mar 2007 12:55:31 -0700 Received: from [10.251.22.38] (nat.ironport.com [63.251.108.100]) by idiom.com (Postfix) with ESMTP id B6277125AE4; Mon, 19 Mar 2007 13:23:17 -0700 (PDT) Message-ID: <45FEF135.2050203@elischer.org> Date: Mon, 19 Mar 2007 13:23:17 -0700 From: Julian Elischer User-Agent: Thunderbird 1.5.0.10 (Macintosh/20070221) MIME-Version: 1.0 To: Ignacio Rey References: <20070319203709.1272a470@debian> In-Reply-To: <20070319203709.1272a470@debian> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org Subject: Re: networking code and splx() X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Mar 2007 20:23:18 -0000 Ignacio Rey wrote: > Hello everyone, > > I'm studying a bit the FreeBSD networking code. > > I've read "TCP/IP illustrated vol 2" by G. R. Wright and W. R. Stevens, > which describes code in 4.4BSD-lite. > > Now I'm taking a look at FreeBSD 6.2 release. Some things are different, > many others kept the same. What I'm confused about is that in 4.4BSD > there are many calls to the splx() family of functions, and I didn't see > any of them in the networking code in FreeBSD. However the 'grep' program > showed me that they are used in other parts of the kernel. There was a major change in the way that synchronization was done bewteen FreeBSD 4.x and FreeBSD 5.X. The changes were to support real multiprocessor operation and were extensive. The 'spl" method of operation was only able to protect operation on a single CPU. You should probably get a copy of "The design of the FreeBSD (um 5.2 I think) Operating System by Kirk McKusick and George Neville-Neil. It goes into some of the changes. (many changes have happenned since then too). the New locking largely depends on Mutexes. > > > The question is: Have calls to these functions been wrapped? or are they > simply not used in this context? > > > Thanks in advance, > > Ignacio > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"