Linux Kernel
3.7.1
|
Go to the source code of this file.
Macros | |
#define | TICKET_QUANTUM 2 |
#define | arch_spin_lock_flags(lock, flags) arch_spin_lock(lock) |
#define | _WR_NEXT_SHIFT 8 |
#define | _WR_CURR_SHIFT 16 |
#define | _WR_WIDTH 8 |
#define | _RD_COUNT_SHIFT 24 |
#define | _RD_COUNT_WIDTH 8 |
#define | arch_read_lock_flags(lock, flags) arch_read_lock(lock) |
#define | arch_write_lock_flags(lock, flags) arch_write_lock(lock) |
Functions | |
void | arch_spin_lock (arch_spinlock_t *lock) |
int | arch_spin_trylock (arch_spinlock_t *lock) |
void | arch_spin_unlock_wait (arch_spinlock_t *lock) |
void | arch_read_lock (arch_rwlock_t *rwlock) |
void | arch_write_lock (arch_rwlock_t *rwlock) |
int | arch_read_trylock (arch_rwlock_t *rwlock) |
int | arch_write_trylock (arch_rwlock_t *rwlock) |
void | arch_read_unlock (arch_rwlock_t *rwlock) |
void | arch_write_unlock (arch_rwlock_t *rwlock) |
#define _RD_COUNT_SHIFT 24 |
Definition at line 77 of file spinlock_32.h.
#define _RD_COUNT_WIDTH 8 |
Definition at line 78 of file spinlock_32.h.
#define _WR_CURR_SHIFT 16 |
Definition at line 75 of file spinlock_32.h.
#define _WR_NEXT_SHIFT 8 |
Definition at line 74 of file spinlock_32.h.
#define _WR_WIDTH 8 |
Definition at line 76 of file spinlock_32.h.
#define arch_read_lock_flags | ( | lock, | |
flags | |||
) | arch_read_lock(lock) |
Definition at line 126 of file spinlock_32.h.
#define arch_spin_lock_flags | ( | lock, | |
flags | |||
) | arch_spin_lock(lock) |
Definition at line 51 of file spinlock_32.h.
#define arch_write_lock_flags | ( | lock, | |
flags | |||
) | arch_write_lock(lock) |
Definition at line 127 of file spinlock_32.h.
#define TICKET_QUANTUM 2 |
Definition at line 28 of file spinlock_32.h.
void arch_read_lock | ( | arch_rwlock_t * | rwlock | ) |
arch_read_lock() - acquire a read lock.
Definition at line 131 of file spinlock_32.c.
|
inline |
arch_read_trylock() - try to acquire a read lock.
Definition at line 104 of file spinlock_32.c.
void arch_read_unlock | ( | arch_rwlock_t * | rwlock | ) |
arch_read_unlock() - release a read lock.
Definition at line 139 of file spinlock_32.c.
void arch_spin_lock | ( | arch_spinlock_t * | lock | ) |
Definition at line 22 of file spinlock_32.c.
int arch_spin_trylock | ( | arch_spinlock_t * | lock | ) |
Definition at line 40 of file spinlock_32.c.
void arch_spin_unlock_wait | ( | arch_spinlock_t * | lock | ) |
void arch_write_lock | ( | arch_rwlock_t * | rwlock | ) |
arch_write_lock() - acquire a write lock.
Definition at line 163 of file spinlock_32.c.
int arch_write_trylock | ( | arch_rwlock_t * | rwlock | ) |
arch_write_trylock() - try to acquire a write lock.
Definition at line 218 of file spinlock_32.c.
void arch_write_unlock | ( | arch_rwlock_t * | rwlock | ) |
arch_write_unlock() - release a write lock.
Definition at line 238 of file spinlock_32.c.