LOR in if_detach

Matthew N. Dodd mdodd at FreeBSD.ORG
Thu Apr 10 15:02:25 PDT 2003


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 at jurai.net |       2 x '84 Volvo 245DL        | ix86,sparc,pmax |
| http://www.jurai.net/~winter |  For Great Justice!  | ISO8802.5 4ever |


More information about the freebsd-current mailing list