brlock_is_locked()?

Brad Chapman (kakadu_croc@yahoo.com)
Wed, 22 Aug 2001 06:04:28 -0700 (PDT)


--0-1771960962-998485468=:76457
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Everyone,

Is there a politically correct way to determine if a brlock
is in the locked or unlocked state, i.e. with something like this:

restart:
if (brlock_is_locked(BR_NETPROTO_LOCK)) {
CRITICAL_SECTION
br_write_unlock_bh(BR_NETPROTO_LOCK);
}
else {
/* Let's get dizzy */
br_write_lock_bh(BR_NETPROTO_LOCK);
goto restart;
}

Brad

=====
Brad Chapman

Permanent e-mail: kakadu_croc@yahoo.com
Current e-mail: kakadu@adelphia.net

Reply to the address I used in the message to you,
please!

__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/
--0-1771960962-998485468=:76457--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/