Searched defs:sem (Results 1 – 4 of 4) sorted by relevance
/kernel/locking/ |
D | rwsem.c | 70 # define DEBUG_RWSEMS_WARN_ON(c, sem) do { \ argument 80 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument 142 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner() 148 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner() 157 static inline bool rwsem_test_oflags(struct rw_semaphore *sem, long flags) in rwsem_test_oflags() 172 static inline void __rwsem_set_reader_owned(struct rw_semaphore *sem, in __rwsem_set_reader_owned() 181 static inline void rwsem_set_reader_owned(struct rw_semaphore *sem) in rwsem_set_reader_owned() 189 static inline bool is_rwsem_reader_owned(struct rw_semaphore *sem) in is_rwsem_reader_owned() 210 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() 221 static inline void rwsem_clear_reader_owned(struct rw_semaphore *sem) in rwsem_clear_reader_owned() [all …]
|
D | percpu-rwsem.c | 29 int __percpu_init_rwsem(struct percpu_rw_semaphore *sem, in __percpu_init_rwsem() 48 void percpu_free_rwsem(struct percpu_rw_semaphore *sem) in percpu_free_rwsem() 63 static bool __percpu_down_read_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_read_trylock() 99 static inline bool __percpu_down_write_trylock(struct percpu_rw_semaphore *sem) in __percpu_down_write_trylock() 107 static bool __percpu_rwsem_trylock(struct percpu_rw_semaphore *sem, bool reader) in __percpu_rwsem_trylock() 139 struct percpu_rw_semaphore *sem = key; in percpu_rwsem_wake_function() local 156 static void percpu_rwsem_wait(struct percpu_rw_semaphore *sem, bool reader) in percpu_rwsem_wait() 183 bool __sched __percpu_down_read(struct percpu_rw_semaphore *sem, bool try) in __percpu_down_read() 217 static bool readers_active_check(struct percpu_rw_semaphore *sem) in readers_active_check() 232 void __sched percpu_down_write(struct percpu_rw_semaphore *sem) in percpu_down_write() [all …]
|
D | semaphore.c | 53 void down(struct semaphore *sem) in down() 76 int down_interruptible(struct semaphore *sem) in down_interruptible() 103 int down_killable(struct semaphore *sem) in down_killable() 133 int down_trylock(struct semaphore *sem) in down_trylock() 158 int down_timeout(struct semaphore *sem, long timeout) in down_timeout() 182 void up(struct semaphore *sem) in up() 208 static inline int __sched __down_common(struct semaphore *sem, long state, in __down_common() 239 static noinline void __sched __down(struct semaphore *sem) in __down() 244 static noinline int __sched __down_interruptible(struct semaphore *sem) in __down_interruptible() 249 static noinline int __sched __down_killable(struct semaphore *sem) in __down_killable() [all …]
|
/kernel/ |
D | taskstats.c | 54 struct rw_semaphore sem; member
|