Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 10 Apr 2003 18:02:22 -0400 (EDT)
From:      "Matthew N. Dodd" <mdodd@FreeBSD.ORG>
To:        harti@FreeBSD.ORG
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: LOR in if_detach 
Message-ID:  <20030410175703.O39446@sasami.jurai.net>
In-Reply-To: <20030410150609.U1863@beagle.fokus.fraunhofer.de>
References:  <200304101251.h3ACphHo021011@mta7.pltn13.pbi.net> <20030410150609.U1863@beagle.fokus.fraunhofer.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 |



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030410175703.O39446>