/kernel/locking/ |
H A D | mutex-debug.h | 8 * This file contains mutex debugging related internal declarations, 10 * More details are in kernel/mutex-debug.c. 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) 35 static inline void mutex_clear_owner(struct mutex *loc [all...] |
H A D | mutex.h | 8 * This file contains mutex debugging related internal prototypes, for the 20 static inline void mutex_set_owner(struct mutex *lock) 25 static inline void mutex_clear_owner(struct mutex *lock) 30 static inline void mutex_set_owner(struct mutex *lock) 34 static inline void mutex_clear_owner(struct mutex *lock) 46 debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter)
|
H A D | mutex-debug.c | 2 * kernel/mutex-debug.c 15 #include <linux/mutex.h> 25 #include "mutex-debug.h" 30 void debug_mutex_lock_common(struct mutex *lock, struct mutex_waiter *waiter) 37 void debug_mutex_wake_waiter(struct mutex *lock, struct mutex_waiter *waiter) 51 void debug_mutex_add_waiter(struct mutex *lock, struct mutex_waiter *waiter, 60 void mutex_remove_waiter(struct mutex *lock, struct mutex_waiter *waiter, 72 void debug_mutex_unlock(struct mutex *lock) 93 void debug_mutex_init(struct mutex *lock, const char *name, 107 * mutex_destroy - mark a mutex unusabl [all...] |
H A D | mutex.c | 2 * kernel/locking/mutex.c 18 * Also see Documentation/locking/mutex-design.txt. 20 #include <linux/mutex.h> 35 # include "mutex-debug.h" 36 # include <asm-generic/mutex-null.h> 45 # include "mutex.h" 46 # include <asm/mutex.h> 50 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) 67 * We split the mutex lock/unlock logic into separate fastpath and 75 * mutex_lock - acquire the mutex [all...] |
H A D | Makefile | 2 obj-y += mutex.o semaphore.o rwsem.o mcs_spinlock.o 11 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
|
H A D | rtmutex-tester.c | 139 void schedule_rt_mutex_test(struct rt_mutex *mutex) argument 162 if (mutex != &mutexes[dat]) 182 if (mutex != &mutexes[dat]) 194 if (mutex != &mutexes[dat])
|
/kernel/ |
H A D | kcmp.c | 73 static void kcmp_unlock(struct mutex *m1, struct mutex *m2) 80 static int kcmp_lock(struct mutex *m1, struct mutex *m2)
|
H A D | extable.c | 21 #include <linux/mutex.h> 28 * mutex protecting text section modification (dynamic code patching).
|
H A D | notifier.c | 407 * use a mutex, and call_chain is synchronized by SRCU (no locks). 433 mutex_lock(&nh->mutex); 435 mutex_unlock(&nh->mutex); 463 mutex_lock(&nh->mutex); 465 mutex_unlock(&nh->mutex); 524 mutex_init(&nh->mutex);
|
H A D | workqueue.c | 130 * WQ: wq->mutex protected. 132 * WR: wq->mutex protected for writes. Sched-RCU protected for reads. 161 struct mutex manager_arb; /* manager arbitration */ 162 struct mutex attach_mutex; /* attach/detach exclusion */ 210 * determined without grabbing wq->mutex. 235 struct mutex mutex; /* protects this wq */ member in struct:workqueue_struct 338 lockdep_is_held(&wq->mutex), \ 339 "sched RCU or wq->mutex should be held") 383 * This must be called either with wq->mutex hel [all...] |
H A D | audit.h | 267 extern struct mutex audit_filter_mutex; 338 extern struct mutex audit_cmd_mutex;
|
H A D | cpu.c | 19 #include <linux/mutex.h> 61 struct mutex lock; /* Synchronizes accesses to refcount, */
|
H A D | kprobes.c | 134 .mutex = __MUTEX_INITIALIZER(kprobe_insn_slots.mutex), 152 mutex_lock(&c->mutex); 199 mutex_unlock(&c->mutex); 252 mutex_lock(&c->mutex); 271 mutex_unlock(&c->mutex); 277 .mutex = __MUTEX_INITIALIZER(kprobe_optinsn_slots.mutex),
|
H A D | cgroup_freezer.c | 24 #include <linux/mutex.h>
|
H A D | tracepoint.c | 19 #include <linux/mutex.h> 38 * Tracepoint module list mutex protects the local module list.
|
/kernel/power/ |
H A D | autosleep.c | 10 #include <linux/mutex.h>
|
/kernel/gcov/ |
H A D | base.c | 20 #include <linux/mutex.h>
|
/kernel/rcu/ |
H A D | tree.h | 460 struct mutex onoff_mutex; /* Coordinate hotplug & GPs. */ 462 struct mutex barrier_mutex; /* Guards barrier fields. */
|
H A D | tiny.c | 31 #include <linux/mutex.h>
|
H A D | srcu.c | 30 #include <linux/mutex.h>
|
H A D | update.c | 45 #include <linux/mutex.h>
|
/kernel/events/ |
H A D | core.c | 1128 * Must be called with ctx->mutex and ctx->lock held. 1293 * Must be called with ctx->mutex and ctx->lock held. 1561 lockdep_assert_held(&ctx->mutex); 1935 * Must be called with ctx->mutex held 2010 lockdep_assert_held(&ctx->mutex); 3144 mutex_init(&ctx->mutex); 3257 * we must see PF_EXITING, it takes this mutex too. 3427 * we raced with perf_event_exit_task(), acquiring the mutex 3460 * holding ctx->mutex, however this is called after 3464 mutex_lock_nested(&ctx->mutex, SINGLE_DEPTH_NESTIN [all...] |
/kernel/trace/ |
H A D | trace_printk.c | 14 #include <linux/mutex.h>
|
H A D | trace_stat.c | 35 struct mutex stat_mutex;
|
H A D | trace_uprobe.c | 679 struct mutex mutex; member in struct:uprobe_cpu_buffer 701 mutex_init(&per_cpu_ptr(uprobe_cpu_buffer, cpu)->mutex); 758 * so the mutex makes sure we have sole access to it. 760 mutex_lock(&ucb->mutex); 767 mutex_unlock(&ucb->mutex);
|