Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Mar 2003 13:03:41 -0500 (EST)
From:      "Matthew N. Dodd" <mdodd@FreeBSD.ORG>
To:        Nate Lawson <nate@root.org>
Cc:        current@FreeBSD.ORG, wpaul@FreeBSD.ORG
Subject:   Re: Updated if_* attach/detach patches
Message-ID:  <20030321130259.E8716@sasami.jurai.net>
In-Reply-To: <Pine.BSF.4.21.0303210958230.15977-100000@root.org>
References:  <Pine.BSF.4.21.0303210958230.15977-100000@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 21 Mar 2003, Nate Lawson wrote:
> Perhaps I should add a comment mentioning my assumption:  mtx_init is
> one of the first things called and since detach unconditionally locks
> the mtx, it should never be called unless the mutex is initialized.

This isn't the case for all drivers and the test would set a good example
for people reading the code.

-- 
| 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 |

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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