Linux Kernel
3.7.1
|
#include <asm/spinlock_types.h>
#include <asm/processor.h>
Go to the source code of this file.
Macros | |
#define | arch_spin_is_locked(x) ((x)->lock != 0) |
#define | arch_spin_unlock_wait(lock) do { while (arch_spin_is_locked(lock)) cpu_relax(); } while (0) |
#define | arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) |
#define | arch_write_can_lock(x) ((x)->lock == 0) |
#define | arch_read_can_lock(x) ((x)->lock < 0x80000000) |
#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() |
Definition at line 193 of file spinlock.h.
#define arch_read_lock_flags | ( | lock, | |
flags | |||
) | arch_read_lock(lock) |
Definition at line 195 of file spinlock.h.
Definition at line 199 of file spinlock.h.
Definition at line 35 of file spinlock.h.
#define arch_spin_lock_flags | ( | lock, | |
flags | |||
) | arch_spin_lock(lock) |
Definition at line 39 of file spinlock.h.
Definition at line 198 of file spinlock.h.
#define arch_spin_unlock_wait | ( | lock | ) | do { while (arch_spin_is_locked(lock)) cpu_relax(); } while (0) |
Definition at line 36 of file spinlock.h.
Definition at line 130 of file spinlock.h.
#define arch_write_lock_flags | ( | lock, | |
flags | |||
) | arch_write_lock(lock) |
Definition at line 196 of file spinlock.h.
Definition at line 200 of file spinlock.h.