Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/lockmgr.h
Show First 20 Lines • Show All 137 Lines • ▼ Show 20 Lines | #define lockmgr_assert(lk, what) \ | ||||
_lockmgr_assert((lk), (what), LOCK_FILE, LOCK_LINE) | _lockmgr_assert((lk), (what), LOCK_FILE, LOCK_LINE) | ||||
#else | #else | ||||
#define lockmgr_assert(lk, what) | #define lockmgr_assert(lk, what) | ||||
#endif | #endif | ||||
/* | /* | ||||
* Flags for lockinit(). | * Flags for lockinit(). | ||||
*/ | */ | ||||
#define LK_INIT_MASK 0x0000FF | #define LK_INIT_MASK 0x0001FF | ||||
#define LK_CANRECURSE 0x000001 | #define LK_CANRECURSE 0x000001 | ||||
#define LK_NODUP 0x000002 | #define LK_NODUP 0x000002 | ||||
#define LK_NOPROFILE 0x000004 | #define LK_NOPROFILE 0x000004 | ||||
#define LK_NOSHARE 0x000008 | #define LK_NOSHARE 0x000008 | ||||
#define LK_NOWITNESS 0x000010 | #define LK_NOWITNESS 0x000010 | ||||
#define LK_QUIET 0x000020 | #define LK_QUIET 0x000020 | ||||
#define LK_ADAPTIVE 0x000040 | #define LK_ADAPTIVE 0x000040 | ||||
#define LK_IS_VNODE 0x000080 /* Tell WITNESS about a VNODE lock */ | #define LK_IS_VNODE 0x000080 /* Tell WITNESS about a VNODE lock */ | ||||
#define LK_NEW 0x000100 | |||||
/* | /* | ||||
* Additional attributes to be used in lockmgr(). | * Additional attributes to be used in lockmgr(). | ||||
*/ | */ | ||||
#define LK_EATTR_MASK 0x00FF00 | #define LK_EATTR_MASK 0x00FF00 | ||||
#define LK_INTERLOCK 0x000100 | #define LK_INTERLOCK 0x000100 | ||||
#define LK_NOWAIT 0x000200 | #define LK_NOWAIT 0x000200 | ||||
#define LK_RETRY 0x000400 | #define LK_RETRY 0x000400 | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |