Searched defs:sem (Results 1 – 7 of 7) sorted by relevance
85 # define down_read_nested(sem, subclass) down_read(sem) argument86 # define down_write_nested(sem, subclass) down_write(sem) argument87 # define down_read_non_owner(sem) down_read(sem) argument88 # define up_read_non_owner(sem) up_read(sem) argument
32 static inline void sema_init(struct semaphore *sem, int val) in sema_init()39 #define init_MUTEX(sem) sema_init(sem, 1) argument40 #define init_MUTEX_LOCKED(sem) sema_init(sem, 0) argument
56 #define init_rwsem(sem) \ argument72 static inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked()
86 struct sem { struct87 int semval; /* current value */ argument88 int sempid; /* pid of last operation */ argument
60 struct semaphore sem; member
128 struct rw_semaphore sem; /* change vs change sem */ member
382 struct semaphore sem; /* semaphore to synchronize calls to member