Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rwsem-spinlock.c File Reference
#include <linux/rwsem.h>
#include <linux/sched.h>
#include <linux/export.h>

Go to the source code of this file.

Data Structures

struct  rwsem_waiter
 

Macros

#define RWSEM_WAITING_FOR_READ   0x00000001
 
#define RWSEM_WAITING_FOR_WRITE   0x00000002
 

Functions

int rwsem_is_locked (struct rw_semaphore *sem)
 
 EXPORT_SYMBOL (rwsem_is_locked)
 
void __init_rwsem (struct rw_semaphore *sem, const char *name, struct lock_class_key *key)
 
 EXPORT_SYMBOL (__init_rwsem)
 
void __sched __down_read (struct rw_semaphore *sem)
 
int __down_read_trylock (struct rw_semaphore *sem)
 
void __sched __down_write_nested (struct rw_semaphore *sem, int subclass)
 
void __sched __down_write (struct rw_semaphore *sem)
 
int __down_write_trylock (struct rw_semaphore *sem)
 
void __up_read (struct rw_semaphore *sem)
 
void __up_write (struct rw_semaphore *sem)
 
void __downgrade_write (struct rw_semaphore *sem)
 

Macro Definition Documentation

#define RWSEM_WAITING_FOR_READ   0x00000001

Definition at line 16 of file rwsem-spinlock.c.

#define RWSEM_WAITING_FOR_WRITE   0x00000002

Definition at line 17 of file rwsem-spinlock.c.

Function Documentation

void __sched __down_read ( struct rw_semaphore sem)

Definition at line 142 of file rwsem-spinlock.c.

int __down_read_trylock ( struct rw_semaphore sem)

Definition at line 186 of file rwsem-spinlock.c.

void __sched __down_write ( struct rw_semaphore sem)

Definition at line 250 of file rwsem-spinlock.c.

void __sched __down_write_nested ( struct rw_semaphore sem,
int  subclass 
)

Definition at line 209 of file rwsem-spinlock.c.

int __down_write_trylock ( struct rw_semaphore sem)

Definition at line 258 of file rwsem-spinlock.c.

void __downgrade_write ( struct rw_semaphore sem)

Definition at line 311 of file rwsem-spinlock.c.

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 __up_read ( struct rw_semaphore sem)

Definition at line 279 of file rwsem-spinlock.c.

void __up_write ( struct rw_semaphore sem)

Definition at line 294 of file rwsem-spinlock.c.

EXPORT_SYMBOL ( rwsem_is_locked  )
EXPORT_SYMBOL ( __init_rwsem  )
int rwsem_is_locked ( struct rw_semaphore sem)

Definition at line 20 of file rwsem-spinlock.c.