Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | arch_spin_is_locked(x) ((x)->lock <= 0) |
#define | arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) |
#define | arch_spin_unlock_wait(x) do { while (arch_spin_is_locked(x)) cpu_relax(); } while (0) |
#define | arch_read_can_lock(x) ((x)->lock > 0) |
#define | arch_write_can_lock(x) ((x)->lock == RW_LOCK_BIAS) |
#define | arch_read_lock_flags(lock, flags) arch_read_lock(lock) |
#define | arch_write_lock_flags(lock, flags) arch_write_lock(lock) |
#define | arch_spin_relax(lock) cpu_relax() |
#define | arch_read_relax(lock) cpu_relax() |
#define | arch_write_relax(lock) cpu_relax() |
read_can_lock - would read_trylock() succeed? : the rwlock in question.
Definition at line 103 of file spinlock.h.
#define arch_read_lock_flags | ( | lock, | |
flags | |||
) | arch_read_lock(lock) |
Definition at line 219 of file spinlock.h.
Definition at line 223 of file spinlock.h.
Definition at line 26 of file spinlock.h.
#define arch_spin_lock_flags | ( | lock, | |
flags | |||
) | arch_spin_lock(lock) |
Definition at line 27 of file spinlock.h.
Definition at line 222 of file spinlock.h.
#define arch_spin_unlock_wait | ( | x | ) | do { while (arch_spin_is_locked(x)) cpu_relax(); } while (0) |
Definition at line 28 of file spinlock.h.
#define arch_write_can_lock | ( | x | ) | ((x)->lock == RW_LOCK_BIAS) |
write_can_lock - would write_trylock() succeed? : the rwlock in question.
Definition at line 109 of file spinlock.h.
#define arch_write_lock_flags | ( | lock, | |
flags | |||
) | arch_write_lock(lock) |
Definition at line 220 of file spinlock.h.
Definition at line 224 of file spinlock.h.