Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Nov 2001 00:39:00 +0900 (JST)
From:      kaz@kobe1995.net (NAKAMURA Kazushi)
To:        rizzo@aciri.org
Cc:        current@freebsd.org
Subject:   Re: when to use XX_LOCK() ?
Message-ID:  <200111081539.AAA14862@ns.kobe1995.net>
In-Reply-To: Your message of "Mon, 5 Nov 2001 14:26:48 -0800". <20011105142648.E76687@iguana.aciri.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20011105142648.E76687@iguana.aciri.org>
rizzo@aciri.org writes:
>In if_dc.c and other places, i see sequences like this:
>
>	dc_intr(arg) {
>		struct dc_softc sc;
>
>		sc = arg;
>		DC_LOCK(sc);
>		ifp = &sc->arpcom.ac_if;
>		...
>
>Wondering: any reason to call DC_LOCK before assigning a value to ifp ?
  It is a lock for the SMPng, isn't it?  I see that 5-current is
removing the giant-lock, replace into small locks.
-- 
<mailto:kaz@kobe1995.net>	NAKAMURA Kazushi@KOBE
<http://kobe1995.net/~kaz/index-e.html>;
- Break the hate chain. No more kill!

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?200111081539.AAA14862>