/kernel/locking/ |
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.c | 50 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) in __mutex_init() 95 void __sched mutex_lock(struct mutex *lock) in mutex_lock() 225 bool mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner) in mutex_spin_on_owner() 254 static inline int mutex_can_spin_on_owner(struct mutex *lock) in mutex_can_spin_on_owner() 277 static inline bool mutex_try_to_acquire(struct mutex *lock) in mutex_try_to_acquire() 306 static bool mutex_optimistic_spin(struct mutex *lock, in mutex_optimistic_spin() 402 static bool mutex_optimistic_spin(struct mutex *lock, in mutex_optimistic_spin() 423 void __sched mutex_unlock(struct mutex *lock) in mutex_unlock() 481 __ww_mutex_lock_check_stamp(struct mutex *lock, struct ww_acquire_ctx *ctx) in __ww_mutex_lock_check_stamp() 505 __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, in __mutex_lock_common() [all …]
|
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() 93 void debug_mutex_init(struct mutex *lock, const char *name, in debug_mutex_init() 114 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 | Makefile | 5 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o 14 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
|
/kernel/ |
D | workqueue.c | 168 struct mutex attach_mutex; /* attach/detach exclusion */ 241 struct mutex mutex; /* protects this wq */ member 348 !lockdep_is_held(&wq->mutex), \ 353 !lockdep_is_held(&wq->mutex) && \ 2523 mutex_lock(&wq->mutex); in flush_workqueue() 2568 mutex_unlock(&wq->mutex); in flush_workqueue() 2581 mutex_lock(&wq->mutex); in flush_workqueue() 2653 mutex_unlock(&wq->mutex); in flush_workqueue() 2678 mutex_lock(&wq->mutex); in drain_workqueue() 2681 mutex_unlock(&wq->mutex); in drain_workqueue() [all …]
|
D | kcmp.c | 73 static void kcmp_unlock(struct mutex *m1, struct mutex *m2) in kcmp_unlock() 80 static int kcmp_lock(struct mutex *m1, struct mutex *m2) in kcmp_lock()
|
D | notifier.c | 434 mutex_lock(&nh->mutex); in srcu_notifier_chain_register() 436 mutex_unlock(&nh->mutex); in srcu_notifier_chain_register() 464 mutex_lock(&nh->mutex); in srcu_notifier_chain_unregister() 466 mutex_unlock(&nh->mutex); in srcu_notifier_chain_unregister() 525 mutex_init(&nh->mutex); in srcu_init_notifier_head()
|
D | kexec_internal.h | 15 extern struct mutex kexec_mutex;
|
D | audit.h | 255 extern struct mutex audit_filter_mutex; 346 extern struct mutex audit_cmd_mutex;
|
D | kprobes.c | 134 .mutex = __MUTEX_INITIALIZER(kprobe_insn_slots.mutex), 152 mutex_lock(&c->mutex); in __get_insn_slot() 199 mutex_unlock(&c->mutex); in __get_insn_slot() 252 mutex_lock(&c->mutex); in __free_insn_slot() 271 mutex_unlock(&c->mutex); in __free_insn_slot() 277 .mutex = __MUTEX_INITIALIZER(kprobe_optinsn_slots.mutex),
|
D | acct.c | 84 struct mutex lock;
|
D | cpu.c | 69 struct mutex lock;
|
/kernel/rcu/ |
D | tree.h | 251 struct mutex exp_funnel_mutex ____cacheline_internodealigned_in_smp; 386 struct mutex exp_funnel_mutex; 493 struct mutex barrier_mutex; /* Guards barrier fields. */
|
/kernel/events/ |
D | core.c | 987 mutex_lock_nested(&ctx->mutex, nesting); in perf_event_ctx_lock_nested() 989 mutex_unlock(&ctx->mutex); in perf_event_ctx_lock_nested() 1006 mutex_unlock(&ctx->mutex); in perf_event_ctx_unlock() 1720 lockdep_assert_held(&ctx->mutex); in perf_remove_from_context() 2186 lockdep_assert_held(&ctx->mutex); in perf_install_in_context() 3427 mutex_init(&ctx->mutex); in __perf_event_init_context() 3892 mutex_lock(&ctx->mutex); in orphans_remove_work() 3912 mutex_unlock(&ctx->mutex); in orphans_remove_work() 4002 lockdep_assert_held(&ctx->mutex); in perf_read_group() 4173 lockdep_assert_held(&ctx->mutex); in perf_event_for_each() [all …]
|
D | uprobes.c | 57 static struct mutex uprobes_mmap_mutex[UPROBES_HASH_SZ];
|
/kernel/trace/ |
D | trace_uprobe.c | 703 struct mutex mutex; member 725 mutex_init(&per_cpu_ptr(uprobe_cpu_buffer, cpu)->mutex); in uprobe_buffer_init() 784 mutex_lock(&ucb->mutex); in uprobe_buffer_get() 791 mutex_unlock(&ucb->mutex); in uprobe_buffer_put()
|
D | ring_buffer.c | 484 struct mutex mutex; member 1369 mutex_init(&buffer->mutex); in __ring_buffer_alloc() 1694 mutex_lock(&buffer->mutex); in ring_buffer_resize() 1814 mutex_unlock(&buffer->mutex); in ring_buffer_resize() 1833 mutex_unlock(&buffer->mutex); in ring_buffer_resize() 1840 mutex_lock(&buffer->mutex); in ring_buffer_change_overwrite() 1845 mutex_unlock(&buffer->mutex); in ring_buffer_change_overwrite() 4318 mutex_lock(&buffer->mutex); in ring_buffer_reset_cpu() 4343 mutex_unlock(&buffer->mutex); in ring_buffer_reset_cpu()
|
D | trace_stat.c | 35 struct mutex stat_mutex;
|
D | trace.c | 425 static DEFINE_PER_CPU(struct mutex, cpu_access_lock); 3138 mutex_init(&iter->mutex); in __tracing_open() 3255 mutex_destroy(&iter->mutex); in tracing_release() 4728 mutex_init(&iter->mutex); in tracing_open_pipe() 4763 mutex_destroy(&iter->mutex); in tracing_release_pipe() 4822 mutex_unlock(&iter->mutex); in tracing_wait_pipe() 4826 mutex_lock(&iter->mutex); in tracing_wait_pipe() 4850 mutex_lock(&iter->mutex); in tracing_read_pipe() 4929 mutex_unlock(&iter->mutex); in tracing_read_pipe() 5020 mutex_lock(&iter->mutex); in tracing_splice_read_pipe() [all …]
|
D | trace.h | 261 extern struct mutex trace_types_lock; 1148 extern struct mutex event_mutex;
|
/kernel/time/ |
D | timer.c | 127 static DEFINE_MUTEX(mutex); in timer_migration_handler() 130 mutex_lock(&mutex); in timer_migration_handler() 134 mutex_unlock(&mutex); in timer_migration_handler()
|
/kernel/sched/ |
D | cpufreq_schedutil.c | 55 struct mutex work_lock;
|
D | core.c | 8560 static DEFINE_MUTEX(mutex); in sched_rt_handler() 8563 mutex_lock(&mutex); in sched_rt_handler() 8590 mutex_unlock(&mutex); in sched_rt_handler() 8600 static DEFINE_MUTEX(mutex); in sched_rr_handler() 8602 mutex_lock(&mutex); in sched_rr_handler() 8611 mutex_unlock(&mutex); in sched_rr_handler()
|
D | sched.h | 213 extern struct mutex sched_domains_mutex;
|