All of lore.kernel.org
 help / color / mirror / Atom feed
* brlock_is_locked()?
@ 2001-08-22 13:04 Brad Chapman
  2001-08-22 16:33 ` brlock_is_locked()? Ben LaHaise
  0 siblings, 1 reply; 13+ messages in thread
From: Brad Chapman @ 2001-08-22 13:04 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

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/

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-08-24 14:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-22 13:04 brlock_is_locked()? Brad Chapman
2001-08-22 16:33 ` brlock_is_locked()? Ben LaHaise
2001-08-22 18:00   ` brlock_is_locked()? Brad Chapman
2001-08-22 18:03     ` brlock_is_locked()? David S. Miller
2001-08-22 18:17       ` brlock_is_locked()? Brad Chapman
2001-08-22 18:26         ` brlock_is_locked()? David S. Miller
2001-08-22 18:33           ` brlock_is_locked()? Brad Chapman
2001-08-22 18:47             ` brlock_is_locked()? David S. Miller
2001-08-22 18:53               ` brlock_is_locked()? Brad Chapman
2001-08-22 19:00                 ` brlock_is_locked()? David S. Miller
2001-08-22 19:08                   ` brlock_is_locked()? Brad Chapman
2001-08-24  6:49                     ` brlock_is_locked()? Jens Axboe
2001-08-24 14:11                       ` brlock_is_locked()? Brad Chapman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.