Home
last modified time | relevance | path

Searched refs:mutex (Results 1 – 25 of 26) sorted by relevance

12

/kernel/locking/
Dmutex-debug.h16 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); \
Dmutex.c50 __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 …]
Dmutex-debug.c30 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()
Dmutex.h20 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()
DMakefile5 obj-y += mutex.o semaphore.o rwsem.o percpu-rwsem.o
14 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
/kernel/
Dworkqueue.c168 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 …]
Dkcmp.c73 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()
Dnotifier.c434 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()
Dkexec_internal.h15 extern struct mutex kexec_mutex;
Daudit.h255 extern struct mutex audit_filter_mutex;
346 extern struct mutex audit_cmd_mutex;
Dkprobes.c134 .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),
Dacct.c84 struct mutex lock;
Dcpu.c69 struct mutex lock;
/kernel/rcu/
Dtree.h251 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/
Dcore.c987 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 …]
Duprobes.c57 static struct mutex uprobes_mmap_mutex[UPROBES_HASH_SZ];
/kernel/trace/
Dtrace_uprobe.c703 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()
Dring_buffer.c484 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()
Dtrace_stat.c35 struct mutex stat_mutex;
Dtrace.c425 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 …]
Dtrace.h261 extern struct mutex trace_types_lock;
1148 extern struct mutex event_mutex;
/kernel/time/
Dtimer.c127 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/
Dcpufreq_schedutil.c55 struct mutex work_lock;
Dcore.c8560 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()
Dsched.h213 extern struct mutex sched_domains_mutex;

12