Linux Kernel
3.7.1
|
#include <linux/linkage.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/atomic.h>
#include <asm/rwsem.h>
Go to the source code of this file.
Data Structures | |
struct | rw_semaphore |
Macros | |
#define | __RWSEM_DEP_MAP_INIT(lockname) |
#define | __RWSEM_INITIALIZER(name) |
#define | DECLARE_RWSEM(name) struct rw_semaphore name = __RWSEM_INITIALIZER(name) |
#define | init_rwsem(sem) |
#define | down_read_nested(sem, subclass) down_read(sem) |
#define | down_write_nested(sem, subclass) down_write(sem) |
#define __RWSEM_INITIALIZER | ( | name | ) |
#define DECLARE_RWSEM | ( | name | ) | struct rw_semaphore name = __RWSEM_INITIALIZER(name) |
#define init_rwsem | ( | sem | ) |
void __init_rwsem | ( | struct rw_semaphore * | sem, |
const char * | name, | ||
struct lock_class_key * | key | ||
) |
Definition at line 36 of file rwsem-spinlock.c.
void down_read | ( | struct rw_semaphore * | sem | ) |
int down_read_trylock | ( | struct rw_semaphore * | sem | ) |
void down_write | ( | struct rw_semaphore * | sem | ) |
int down_write_trylock | ( | struct rw_semaphore * | sem | ) |
void downgrade_write | ( | struct rw_semaphore * | sem | ) |
|
read |
|
read |
|
read |
|
read |
void up_read | ( | struct rw_semaphore * | sem | ) |
void up_write | ( | struct rw_semaphore * | sem | ) |