lkml.org 
[lkml]   [2001]   [Aug]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectbrlock_is_locked()?
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/
\
 
 \ /
  Last update: 2005-03-22 12:57    [W:0.050 / U:0.064 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site