diff options
author | jeff <jeff@FreeBSD.org> | 2005-04-22 22:37:41 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-04-22 22:37:41 +0000 |
commit | 5310acaed04a785eaf62ce20cf36a26f0a964776 (patch) | |
tree | 058a7515231b639a45e5b1aa001420e4cec3032e /sys/sys/mutex.h | |
parent | fb18830743d510b14e5adc4c6ae1061ef8c0c67f (diff) | |
download | FreeBSD-src-5310acaed04a785eaf62ce20cf36a26f0a964776.zip FreeBSD-src-5310acaed04a785eaf62ce20cf36a26f0a964776.tar.gz |
- Define LOP_DUPOK in lock.h so that we may pass it to individual
witness calls rather than as a flag on the lock object.
- Define MTX_DUPOK in terms of LOP_DUPOK in mutex.h.
Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/sys/mutex.h')
-rw-r--r-- | sys/sys/mutex.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/mutex.h b/sys/sys/mutex.h index 45eb504..3942a5a 100644 --- a/sys/sys/mutex.h +++ b/sys/sys/mutex.h @@ -49,20 +49,20 @@ #ifdef _KERNEL /* - * Mutex types and options passed to mtx_init(). MTX_QUIET can also be - * passed in. + * Mutex types and options passed to mtx_init(). MTX_QUIET and MTX_DUPOK + * can also be passed in. */ #define MTX_DEF 0x00000000 /* DEFAULT (sleep) lock */ #define MTX_SPIN 0x00000001 /* Spin lock (disables interrupts) */ #define MTX_RECURSE 0x00000004 /* Option: lock allowed to recurse */ #define MTX_NOWITNESS 0x00000008 /* Don't do any witness checking. */ -#define MTX_DUPOK 0x00000020 /* Don't log a duplicate acquire */ /* * Option flags passed to certain lock/unlock routines, through the use * of corresponding mtx_{lock,unlock}_flags() interface macros. */ #define MTX_QUIET LOP_QUIET /* Don't log a mutex event */ +#define MTX_DUPOK LOP_DUPOK /* Don't log a duplicate acquire */ /* * State bits kept in mutex->mtx_lock, for the DEFAULT lock type. None of this, |