/kernel/ |
D | mutex.c | 44 #define MUTEX_SHOW_NO_WAITER(mutex) (atomic_read(&(mutex)->count) >= 0) argument 47 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) in __mutex_init() 93 void __sched mutex_lock(struct mutex *lock) in mutex_lock() 120 #define MLOCK(mutex) ((struct mspin_node **)&((mutex)->spin_mlock)) argument 166 static inline bool owner_running(struct mutex *lock, struct task_struct *owner) in owner_running() 187 int mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner) in mutex_spin_on_owner() 209 static inline int mutex_can_spin_on_owner(struct mutex *lock) in mutex_can_spin_on_owner() 238 void __sched mutex_unlock(struct mutex *lock) in mutex_unlock() 261 __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, in __mutex_lock_common() 411 mutex_lock_nested(struct mutex *lock, unsigned int subclass) in mutex_lock_nested() [all …]
|
D | mutex-debug.h | 16 extern void debug_mutex_lock_common(struct mutex *lock, 18 extern void debug_mutex_wake_waiter(struct mutex *lock, 21 extern void debug_mutex_add_waiter(struct mutex *lock, 24 extern void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, 26 extern void debug_mutex_unlock(struct mutex *lock); 27 extern void debug_mutex_init(struct mutex *lock, const char *name, 30 static inline void mutex_set_owner(struct mutex *lock) in mutex_set_owner() 35 static inline void mutex_clear_owner(struct mutex *lock) in mutex_clear_owner() 42 struct mutex *l = container_of(lock, struct mutex, wait_lock); \
|
D | mutex-debug.c | 30 void debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_lock_common() 37 void debug_mutex_wake_waiter(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_wake_waiter() 51 void debug_mutex_add_waiter(struct mutex *lock, struct mutex_waiter *waiter, in debug_mutex_add_waiter() 60 void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, in mutex_remove_waiter() 72 void debug_mutex_unlock(struct mutex *lock) in debug_mutex_unlock() 83 void debug_mutex_init(struct mutex *lock, const char *name, in debug_mutex_init() 104 void mutex_destroy(struct mutex *lock) in mutex_destroy()
|
D | mutex.h | 20 static inline void mutex_set_owner(struct mutex *lock) in mutex_set_owner() 25 static inline void mutex_clear_owner(struct mutex *lock) in mutex_clear_owner() 30 static inline void mutex_set_owner(struct mutex *lock) in mutex_set_owner() 34 static inline void mutex_clear_owner(struct mutex *lock) in mutex_clear_owner() 46 debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_lock_common()
|
D | workqueue.c | 164 struct mutex manager_arb; /* manager arbitration */ 165 struct mutex manager_mutex; /* manager exclusion */ 235 struct mutex mutex; /* protects this wq */ member 323 lockdep_is_held(&wq->mutex), \ 2569 mutex_lock(&wq->mutex); in flush_workqueue() 2614 mutex_unlock(&wq->mutex); in flush_workqueue() 2627 mutex_lock(&wq->mutex); in flush_workqueue() 2699 mutex_unlock(&wq->mutex); in flush_workqueue() 2724 mutex_lock(&wq->mutex); in drain_workqueue() 2727 mutex_unlock(&wq->mutex); in drain_workqueue() [all …]
|
D | kcmp.c | 72 static void kcmp_unlock(struct mutex *m1, struct mutex *m2) in kcmp_unlock() 79 static int kcmp_lock(struct mutex *m1, struct mutex *m2) in kcmp_lock()
|
D | notifier.c | 430 mutex_lock(&nh->mutex); in srcu_notifier_chain_register() 432 mutex_unlock(&nh->mutex); in srcu_notifier_chain_register() 460 mutex_lock(&nh->mutex); in srcu_notifier_chain_unregister() 462 mutex_unlock(&nh->mutex); in srcu_notifier_chain_unregister() 521 mutex_init(&nh->mutex); in srcu_init_notifier_head()
|
D | rtmutex-tester.c | 139 void schedule_rt_mutex_test(struct rt_mutex *mutex) in schedule_rt_mutex_test() argument 162 if (mutex != &mutexes[dat]) in schedule_rt_mutex_test() 182 if (mutex != &mutexes[dat]) in schedule_rt_mutex_test() 194 if (mutex != &mutexes[dat]) in schedule_rt_mutex_test()
|
D | audit.h | 253 extern struct mutex audit_filter_mutex; 324 extern struct mutex audit_cmd_mutex;
|
D | rcutree.h | 408 struct mutex onoff_mutex; /* Coordinate hotplug & GPs. */ 410 struct mutex barrier_mutex; /* Guards barrier fields. */
|
D | Makefile | 10 kthread.o wait.o sys_ni.o posix-cpu-timers.o mutex.o \ 34 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
|
D | cgroup.c | 3373 struct rw_semaphore mutex; member 3455 down_write(&l->mutex); in cgroup_pidlist_find() 3466 init_rwsem(&l->mutex); in cgroup_pidlist_find() 3467 down_write(&l->mutex); in cgroup_pidlist_find() 3530 up_write(&l->mutex); in pidlist_array_load() 3608 down_read(&l->mutex); in cgroup_pidlist_start() 3635 up_read(&l->mutex); in cgroup_pidlist_stop() 3681 down_write(&l->mutex); in cgroup_release_pid_array() 3689 up_write(&l->mutex); in cgroup_release_pid_array() 3694 up_write(&l->mutex); in cgroup_release_pid_array()
|
D | cpu.c | 61 struct mutex lock; /* Synchronizes accesses to refcount, */
|
D | printk.c | 422 struct mutex lock;
|
/kernel/events/ |
D | core.c | 769 mutex_lock(&ctx->mutex); in perf_event_ctx_lock() 771 mutex_unlock(&ctx->mutex); in perf_event_ctx_lock() 782 mutex_unlock(&ctx->mutex); in perf_event_ctx_unlock() 1346 lockdep_assert_held(&ctx->mutex); in perf_remove_from_context() 1784 lockdep_assert_held(&ctx->mutex); in perf_install_in_context() 2883 mutex_init(&ctx->mutex); in __perf_event_init_context() 3114 mutex_lock_nested(&ctx->mutex, SINGLE_DEPTH_NESTING); in perf_event_release_kernel() 3119 mutex_unlock(&ctx->mutex); in perf_event_release_kernel() 3223 lockdep_assert_held(&ctx->mutex); in perf_event_read_group() 3380 lockdep_assert_held(&ctx->mutex); in perf_event_for_each() [all …]
|
D | uprobes.c | 55 static struct mutex uprobes_mmap_mutex[UPROBES_HASH_SZ];
|
/kernel/trace/ |
D | ring_buffer.c | 503 struct mutex mutex; member 1331 mutex_init(&buffer->mutex); in __ring_buffer_alloc() 1650 mutex_lock(&buffer->mutex); in ring_buffer_resize() 1786 mutex_unlock(&buffer->mutex); in ring_buffer_resize() 1805 mutex_unlock(&buffer->mutex); in ring_buffer_resize() 1812 mutex_lock(&buffer->mutex); in ring_buffer_change_overwrite() 1817 mutex_unlock(&buffer->mutex); in ring_buffer_change_overwrite()
|
D | trace.c | 269 static DEFINE_PER_CPU(struct mutex, cpu_access_lock); 2862 mutex_init(&iter->mutex); in __tracing_open() 2955 mutex_destroy(&iter->mutex); in tracing_release() 3923 mutex_init(&iter->mutex); in tracing_open_pipe() 3953 mutex_destroy(&iter->mutex); in tracing_release_pipe() 4015 mutex_unlock(&iter->mutex); in tracing_wait_pipe() 4019 mutex_lock(&iter->mutex); in tracing_wait_pipe() 4069 mutex_lock(&iter->mutex); in tracing_read_pipe() 4138 mutex_unlock(&iter->mutex); in tracing_read_pipe() 4231 mutex_lock(&iter->mutex); in tracing_splice_read_pipe() [all …]
|
D | trace_stat.c | 35 struct mutex stat_mutex;
|
D | trace.h | 1026 extern struct mutex event_mutex;
|
/kernel/sched/ |
D | core.c | 7622 static DEFINE_MUTEX(mutex); in sched_rr_handler() 7624 mutex_lock(&mutex); in sched_rr_handler() 7632 mutex_unlock(&mutex); in sched_rr_handler() 7642 static DEFINE_MUTEX(mutex); in sched_rt_handler() 7644 mutex_lock(&mutex); in sched_rt_handler() 7661 mutex_unlock(&mutex); in sched_rt_handler()
|
D | sched.h | 103 extern struct mutex sched_domains_mutex;
|