• Home
  • Raw
  • Download

Lines Matching refs:sem

87 static inline int rwsem_is_locked(struct rw_semaphore *sem)  in rwsem_is_locked()  argument
89 return atomic_long_read(&sem->count) != 0; in rwsem_is_locked()
121 extern void __init_rwsem(struct rw_semaphore *sem, const char *name,
124 #define init_rwsem(sem) \ argument
128 __init_rwsem((sem), #sem, &__key); \
137 static inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() argument
139 return !list_empty(&sem->wait_list); in rwsem_is_contended()
165 #define init_rwsem(sem) \ argument
169 __init_rwsem((sem), #sem, &__key); \
172 static __always_inline int rwsem_is_locked(struct rw_semaphore *sem) in rwsem_is_locked() argument
174 return rw_base_is_locked(&sem->rwbase); in rwsem_is_locked()
177 static __always_inline int rwsem_is_contended(struct rw_semaphore *sem) in rwsem_is_contended() argument
179 return rw_base_is_contended(&sem->rwbase); in rwsem_is_contended()
192 extern void down_read(struct rw_semaphore *sem);
193 extern int __must_check down_read_interruptible(struct rw_semaphore *sem);
194 extern int __must_check down_read_killable(struct rw_semaphore *sem);
199 extern int down_read_trylock(struct rw_semaphore *sem);
204 extern void down_write(struct rw_semaphore *sem);
205 extern int __must_check down_write_killable(struct rw_semaphore *sem);
210 extern int down_write_trylock(struct rw_semaphore *sem);
215 extern void up_read(struct rw_semaphore *sem);
220 extern void up_write(struct rw_semaphore *sem);
225 extern void downgrade_write(struct rw_semaphore *sem);
241 extern void down_read_nested(struct rw_semaphore *sem, int subclass);
242 extern int __must_check down_read_killable_nested(struct rw_semaphore *sem, int subclass);
243 extern void down_write_nested(struct rw_semaphore *sem, int subclass);
244 extern int down_write_killable_nested(struct rw_semaphore *sem, int subclass);
245 extern void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *nest_lock);
247 # define down_write_nest_lock(sem, nest_lock) \ argument
250 _down_write_nest_lock(sem, &(nest_lock)->dep_map); \
259 extern void down_read_non_owner(struct rw_semaphore *sem);
260 extern void up_read_non_owner(struct rw_semaphore *sem);
262 # define down_read_nested(sem, subclass) down_read(sem) argument
263 # define down_read_killable_nested(sem, subclass) down_read_killable(sem) argument
264 # define down_write_nest_lock(sem, nest_lock) down_write(sem) argument
265 # define down_write_nested(sem, subclass) down_write(sem) argument
266 # define down_write_killable_nested(sem, subclass) down_write_killable(sem) argument
267 # define down_read_non_owner(sem) down_read(sem) argument
268 # define up_read_non_owner(sem) up_read(sem) argument