Searched refs:sem (Results 1 – 4 of 4) sorted by relevance
/kernel/locking/ |
D | rwsem.c | 70 # define DEBUG_RWSEMS_WARN_ON(c, sem) do { \ argument 73 #c, atomic_long_read(&(sem)->count), \ 74 (unsigned long) sem->magic, \ 75 atomic_long_read(&(sem)->owner), (long)current, \ 76 list_empty(&(sem)->wait_list) ? "" : "not ")) \ 80 # define DEBUG_RWSEMS_WARN_ON(c, sem) argument 142 static inline void rwsem_set_owner(struct rw_semaphore *sem) in rwsem_set_owner() argument 145 atomic_long_set(&sem->owner, (long)current); in rwsem_set_owner() 148 static inline void rwsem_clear_owner(struct rw_semaphore *sem) in rwsem_clear_owner() argument 151 atomic_long_set(&sem->owner, 0); in rwsem_clear_owner() [all …]
|
D | percpu-rwsem.c | 37 unsigned long settime, struct percpu_rw_semaphore *sem) in _trace_android_vh_record_pcpu_rwsem_time_early() argument 39 trace_android_vh_record_pcpu_rwsem_time_early(settime, sem); in _trace_android_vh_record_pcpu_rwsem_time_early() 43 int __percpu_init_rwsem(struct percpu_rw_semaphore *sem, in __percpu_init_rwsem() argument 46 sem->read_count = alloc_percpu(int); in __percpu_init_rwsem() 47 if (unlikely(!sem->read_count)) in __percpu_init_rwsem() 50 rcu_sync_init(&sem->rss); in __percpu_init_rwsem() 51 rcuwait_init(&sem->writer); in __percpu_init_rwsem() 52 init_waitqueue_head(&sem->waiters); in __percpu_init_rwsem() 53 atomic_set(&sem->block, 0); in __percpu_init_rwsem() 55 debug_check_no_locks_freed((void *)sem, sizeof(*sem)); in __percpu_init_rwsem() [all …]
|
D | semaphore.c | 37 static noinline void __down(struct semaphore *sem); 38 static noinline int __down_interruptible(struct semaphore *sem); 39 static noinline int __down_killable(struct semaphore *sem); 40 static noinline int __down_timeout(struct semaphore *sem, long timeout); 41 static noinline void __up(struct semaphore *sem); 54 void __sched down(struct semaphore *sem) in down() argument 59 raw_spin_lock_irqsave(&sem->lock, flags); in down() 60 if (likely(sem->count > 0)) in down() 61 sem->count--; in down() 63 __down(sem); in down() [all …]
|
/kernel/ |
D | taskstats.c | 55 struct rw_semaphore sem; member 121 down_read(&listeners->sem); in send_cpu_listeners() 138 up_read(&listeners->sem); in send_cpu_listeners() 147 down_write(&listeners->sem); in send_cpu_listeners() 154 up_write(&listeners->sem); in send_cpu_listeners() 324 down_write(&listeners->sem); in add_del_listener() 332 up_write(&listeners->sem); in add_del_listener() 342 down_write(&listeners->sem); in add_del_listener() 350 up_write(&listeners->sem); in add_del_listener() 703 init_rwsem(&(per_cpu(listener_array, i).sem)); in taskstats_init_early()
|