/kernel/locking/ |
D | mutex.c | 40 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) in __mutex_init() 73 static inline struct task_struct *__mutex_owner(struct mutex *lock) in __mutex_owner() 83 bool mutex_is_locked(struct mutex *lock) in mutex_is_locked() 90 mutex_trylock_recursive(struct mutex *lock) in mutex_trylock_recursive() 107 static inline struct task_struct *__mutex_trylock_or_owner(struct mutex *lock) in __mutex_trylock_or_owner() 150 static inline bool __mutex_trylock(struct mutex *lock) in __mutex_trylock() 166 static __always_inline bool __mutex_trylock_fast(struct mutex *lock) in __mutex_trylock_fast() 177 static __always_inline bool __mutex_unlock_fast(struct mutex *lock) in __mutex_unlock_fast() 188 static inline void __mutex_set_flag(struct mutex *lock, unsigned long flag) in __mutex_set_flag() 193 static inline void __mutex_clear_flag(struct mutex *lock, unsigned long flag) in __mutex_clear_flag() [all …]
|
D | mutex-debug.h | 17 extern void debug_mutex_lock_common(struct mutex *lock, 19 extern void debug_mutex_wake_waiter(struct mutex *lock, 22 extern void debug_mutex_add_waiter(struct mutex *lock, 25 extern void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, 27 extern void debug_mutex_unlock(struct mutex *lock); 28 extern void debug_mutex_init(struct mutex *lock, const char *name,
|
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() 80 void debug_mutex_init(struct mutex *lock, const char *name, in debug_mutex_init() 101 void mutex_destroy(struct mutex *lock) in mutex_destroy()
|
D | test-ww_mutex.c | 21 struct ww_mutex mutex; member 39 while (!ww_mutex_trylock(&mtx->mutex)) in test_mutex_work() 42 ww_mutex_lock(&mtx->mutex, NULL); in test_mutex_work() 45 ww_mutex_unlock(&mtx->mutex); in test_mutex_work() 55 ww_mutex_init(&mtx.mutex, &ww_class); in __test_mutex() 67 ww_mutex_lock(&mtx.mutex, (flags & TEST_MTX_CTX) ? &ctx : NULL); in __test_mutex() 83 ww_mutex_unlock(&mtx.mutex); in __test_mutex() 114 struct ww_mutex mutex; in test_aa() local 118 ww_mutex_init(&mutex, &ww_class); in test_aa() 121 ww_mutex_lock(&mutex, &ctx); in test_aa() [all …]
|
D | Makefile | 6 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o 15 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
|
D | mutex.h | 23 debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) in debug_mutex_lock_common()
|
/kernel/ |
D | workqueue.c | 242 struct mutex mutex; /* protects this wq */ member 369 !lockdep_is_held(&wq->mutex), \ 374 !lockdep_is_held(&wq->mutex) && \ 429 lockdep_is_held(&wq->mutex)) \ 2784 mutex_lock(&wq->mutex); in flush_workqueue() 2831 mutex_unlock(&wq->mutex); in flush_workqueue() 2844 mutex_lock(&wq->mutex); in flush_workqueue() 2916 mutex_unlock(&wq->mutex); in flush_workqueue() 2941 mutex_lock(&wq->mutex); in drain_workqueue() 2944 mutex_unlock(&wq->mutex); in drain_workqueue() [all …]
|
D | kcmp.c | 78 static void kcmp_unlock(struct mutex *m1, struct mutex *m2) in kcmp_unlock() 85 static int kcmp_lock(struct mutex *m1, struct mutex *m2) in kcmp_lock()
|
D | notifier.c | 436 mutex_lock(&nh->mutex); in srcu_notifier_chain_register() 438 mutex_unlock(&nh->mutex); in srcu_notifier_chain_register() 466 mutex_lock(&nh->mutex); in srcu_notifier_chain_unregister() 468 mutex_unlock(&nh->mutex); in srcu_notifier_chain_unregister() 527 mutex_init(&nh->mutex); in srcu_init_notifier_head()
|
D | kexec_internal.h | 16 extern struct mutex kexec_mutex;
|
D | kprobes.c | 118 .mutex = __MUTEX_INITIALIZER(kprobe_insn_slots.mutex), 137 mutex_lock(&c->mutex); in __get_insn_slot() 187 mutex_unlock(&c->mutex); in __get_insn_slot() 241 mutex_lock(&c->mutex); in __free_insn_slot() 267 mutex_unlock(&c->mutex); in __free_insn_slot() 296 .mutex = __MUTEX_INITIALIZER(kprobe_optinsn_slots.mutex),
|
D | audit.h | 236 extern struct mutex audit_filter_mutex;
|
/kernel/rcu/ |
D | tree.h | 311 struct mutex barrier_mutex; /* Guards barrier fields. */ 318 struct mutex exp_mutex; /* Serialize expedited GP. */ 319 struct mutex exp_wake_mutex; /* Serialize wakeup. */
|
/kernel/events/ |
D | core.c | 264 lockdep_assert_held(&ctx->mutex); in event_function_call() 1278 mutex_lock_nested(&ctx->mutex, nesting); in perf_event_ctx_lock_nested() 1280 mutex_unlock(&ctx->mutex); in perf_event_ctx_lock_nested() 1297 mutex_unlock(&ctx->mutex); in perf_event_ctx_unlock() 2190 lockdep_assert_held(&ctx->mutex); in perf_remove_from_context() 2656 lockdep_assert_held(&ctx->mutex); in perf_install_in_context() 4169 mutex_init(&ctx->mutex); in __perf_event_init_context() 4521 lockdep_assert_held(&ctx->mutex); in exclusive_event_installable() 4737 mutex_lock(&ctx->mutex); in perf_event_release_kernel() 4758 mutex_unlock(&ctx->mutex); in perf_event_release_kernel() [all …]
|
/kernel/trace/ |
D | ftrace_internal.h | 29 extern struct mutex ftrace_lock;
|
D | trace_uprobe.c | 852 struct mutex mutex; member 874 mutex_init(&per_cpu_ptr(uprobe_cpu_buffer, cpu)->mutex); in uprobe_buffer_init() 933 mutex_lock(&ucb->mutex); in uprobe_buffer_get() 940 mutex_unlock(&ucb->mutex); in uprobe_buffer_put()
|
D | ring_buffer.c | 494 struct mutex mutex; member 1425 mutex_init(&buffer->mutex); in __ring_buffer_alloc() 1750 mutex_lock(&buffer->mutex); in ring_buffer_resize() 1870 mutex_unlock(&buffer->mutex); in ring_buffer_resize() 1889 mutex_unlock(&buffer->mutex); in ring_buffer_resize() 1896 mutex_lock(&buffer->mutex); in ring_buffer_change_overwrite() 1901 mutex_unlock(&buffer->mutex); in ring_buffer_change_overwrite()
|
D | trace_stat.c | 36 struct mutex stat_mutex;
|
D | trace_hwlat.c | 91 struct mutex lock; /* protect changes */
|
D | trace.c | 676 static DEFINE_PER_CPU(struct mutex, cpu_access_lock); 4113 mutex_init(&iter->mutex); in __tracing_open() 4232 mutex_destroy(&iter->mutex); in tracing_release() 5895 mutex_init(&iter->mutex); in tracing_open_pipe() 5930 mutex_destroy(&iter->mutex); in tracing_release_pipe() 5989 mutex_unlock(&iter->mutex); in tracing_wait_pipe() 5993 mutex_lock(&iter->mutex); in tracing_wait_pipe() 6017 mutex_lock(&iter->mutex); in tracing_read_pipe() 6096 mutex_unlock(&iter->mutex); in tracing_read_pipe() 6185 mutex_lock(&iter->mutex); in tracing_splice_read_pipe() [all …]
|
/kernel/livepatch/ |
D | core.h | 7 extern struct mutex klp_mutex;
|
/kernel/gcov/ |
D | gcov.h | 89 extern struct mutex gcov_lock;
|
/kernel/sched/ |
D | rt.c | 2707 static DEFINE_MUTEX(mutex); in sched_rt_handler() 2710 mutex_lock(&mutex); in sched_rt_handler() 2737 mutex_unlock(&mutex); in sched_rt_handler() 2747 static DEFINE_MUTEX(mutex); in sched_rr_handler() 2749 mutex_lock(&mutex); in sched_rr_handler() 2760 mutex_unlock(&mutex); in sched_rr_handler()
|
D | cpufreq_schedutil.c | 38 struct mutex work_lock; 920 extern struct mutex sched_energy_mutex;
|
/kernel/cgroup/ |
D | cgroup-internal.h | 149 extern struct mutex cgroup_mutex;
|