Changeset View
Changeset View
Standalone View
Standalone View
head/sys/compat/linuxkpi/common/include/linux/mutex.h
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
#define mutex_lock_nested(_m, _s) mutex_lock(_m) | #define mutex_lock_nested(_m, _s) mutex_lock(_m) | ||||
#define mutex_lock_nest_lock(_m, _s) mutex_lock(_m) | #define mutex_lock_nest_lock(_m, _s) mutex_lock(_m) | ||||
#define mutex_lock_interruptible(_m) ({ \ | #define mutex_lock_interruptible(_m) ({ \ | ||||
MUTEX_SKIP() ? 0 : \ | MUTEX_SKIP() ? 0 : \ | ||||
linux_mutex_lock_interruptible(_m); \ | linux_mutex_lock_interruptible(_m); \ | ||||
}) | }) | ||||
#define mutex_lock_interruptible_nested(m, c) mutex_lock_interruptible(m) | |||||
/* | /* | ||||
* Reuse the interruptable method since the SX | * Reuse the interruptable method since the SX | ||||
* lock handles both signals and interrupts: | * lock handles both signals and interrupts: | ||||
*/ | */ | ||||
#define mutex_lock_killable(_m) ({ \ | #define mutex_lock_killable(_m) ({ \ | ||||
MUTEX_SKIP() ? 0 : \ | MUTEX_SKIP() ? 0 : \ | ||||
linux_mutex_lock_interruptible(_m); \ | linux_mutex_lock_interruptible(_m); \ | ||||
}) | }) | ||||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |