Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
rwsem.c File Reference
#include <linux/rwsem.h>
#include <linux/sched.h>
#include <linux/init.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
 
#define RWSEM_WAKE_ANY   0 /* Wake whatever's at head of wait list */
 
#define RWSEM_WAKE_NO_ACTIVE   1 /* rwsem was observed with no active thread */
 
#define RWSEM_WAKE_READ_OWNED   2 /* rwsem was observed to be read owned */
 

Functions

void __init_rwsem (struct rw_semaphore *sem, const char *name, struct lock_class_key *key)
 
 EXPORT_SYMBOL (__init_rwsem)
 
struct rw_semaphore __schedrwsem_down_read_failed (struct rw_semaphore *sem)
 
struct rw_semaphore __schedrwsem_down_write_failed (struct rw_semaphore *sem)
 
struct rw_semaphorerwsem_wake (struct rw_semaphore *sem)
 
struct rw_semaphorerwsem_downgrade_wake (struct rw_semaphore *sem)
 
 EXPORT_SYMBOL (rwsem_down_read_failed)
 
 EXPORT_SYMBOL (rwsem_down_write_failed)
 
 EXPORT_SYMBOL (rwsem_wake)
 
 EXPORT_SYMBOL (rwsem_downgrade_wake)
 

Macro Definition Documentation

#define RWSEM_WAITING_FOR_READ   0x00000001

Definition at line 35 of file rwsem.c.

#define RWSEM_WAITING_FOR_WRITE   0x00000002

Definition at line 36 of file rwsem.c.

#define RWSEM_WAKE_ANY   0 /* Wake whatever's at head of wait list */

Definition at line 43 of file rwsem.c.

#define RWSEM_WAKE_NO_ACTIVE   1 /* rwsem was observed with no active thread */

Definition at line 44 of file rwsem.c.

#define RWSEM_WAKE_READ_OWNED   2 /* rwsem was observed to be read owned */

Definition at line 45 of file rwsem.c.

Function Documentation

void __init_rwsem ( struct rw_semaphore sem,
const char name,
struct lock_class_key key 
)

Definition at line 14 of file rwsem.c.

EXPORT_SYMBOL ( __init_rwsem  )
EXPORT_SYMBOL ( rwsem_down_read_failed  )
EXPORT_SYMBOL ( rwsem_down_write_failed  )
EXPORT_SYMBOL ( rwsem_wake  )
EXPORT_SYMBOL ( rwsem_downgrade_wake  )
struct rw_semaphore __sched* rwsem_down_read_failed ( struct rw_semaphore sem)
read

Definition at line 225 of file rwsem.c.

struct rw_semaphore __sched* rwsem_down_write_failed ( struct rw_semaphore sem)
read

Definition at line 234 of file rwsem.c.

struct rw_semaphore* rwsem_downgrade_wake ( struct rw_semaphore sem)
read

Definition at line 264 of file rwsem.c.

struct rw_semaphore* rwsem_wake ( struct rw_semaphore sem)
read

Definition at line 244 of file rwsem.c.