Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jan 2003 15:01:53 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        current@freebsd.org
Cc:        net@freebsd.org
Subject:   Proper -current if_attach locking?
Message-ID:  <Pine.BSF.4.21.0301031458210.99923-100000@root.org>

next in thread | raw e-mail | index | archive | help
I was looking into some "could sleep messages" and found some bogus
locking in the attach routine of many drivers.  Several init a mtx in
their softc and then lock/unlock it in their attach routine.  This, of
course, does nothing to provide exclusive access to a device.  I assume
there is going to be a global IF_LOCK or something to be used in attach
routines.  Can someone fill me in on the intended design?

-Nate


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0301031458210.99923-100000>