brlock_is_locked()?

From: Brad Chapman (kakadu_croc@yahoo.com)
Date: Wed Aug 22 2001 - 08:04:28 EST


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



This archive was generated by hypermail 2b29 : Thu Aug 23 2001 - 21:00:48 EST