From owner-freebsd-current@FreeBSD.ORG Thu Apr 10 15:02:24 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CEE5037B404; Thu, 10 Apr 2003 15:02:24 -0700 (PDT) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by mx1.FreeBSD.org (Postfix) with ESMTP id CEAAE43F85; Thu, 10 Apr 2003 15:02:23 -0700 (PDT) (envelope-from mdodd@FreeBSD.ORG) Received: from sasami.jurai.net (sasami.jurai.net [66.92.160.223]) by sasami.jurai.net (8.12.9/8.12.9) with ESMTP id h3AM2MEF040894; Thu, 10 Apr 2003 18:02:23 -0400 (EDT) (envelope-from mdodd@FreeBSD.ORG) Date: Thu, 10 Apr 2003 18:02:22 -0400 (EDT) From: "Matthew N. Dodd" X-X-Sender: winter@sasami.jurai.net To: harti@FreeBSD.ORG In-Reply-To: <20030410150609.U1863@beagle.fokus.fraunhofer.de> Message-ID: <20030410175703.O39446@sasami.jurai.net> References: <200304101251.h3ACphHo021011@mta7.pltn13.pbi.net> <20030410150609.U1863@beagle.fokus.fraunhofer.de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: Jeffrey Hsu cc: freebsd-current@FreeBSD.ORG Subject: Re: LOR in if_detach X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Apr 2003 22:02:25 -0000 On Thu, 10 Apr 2003, Harti Brandt wrote: > What would that lock do? I mean, which, if any, of the exported driver > functions would be called with that lock held? If we're sure that nobody will be caching our function pointers we can call another helper function before if_detach() that sets the function pointers to 'invalid' functions (that is, ones that return an error). -- | Matthew N. Dodd | '78 Datsun 280Z | '75 Volvo 164E | FreeBSD/NetBSD | | winter@jurai.net | 2 x '84 Volvo 245DL | ix86,sparc,pmax | | http://www.jurai.net/~winter | For Great Justice! | ISO8802.5 4ever |