Searched refs:mutex (Results 1 - 25 of 55) sorted by relevance

123

/kernel/locking/
H A Dmutex-debug.h8 * 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 Dmutex.h8 * 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 Dmutex-debug.c2 * 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 Dmutex.c2 * 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 DMakefile2 obj-y += mutex.o semaphore.o rwsem.o mcs_spinlock.o
11 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
H A Drtmutex-tester.c139 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 Dkcmp.c73 static void kcmp_unlock(struct mutex *m1, struct mutex *m2)
80 static int kcmp_lock(struct mutex *m1, struct mutex *m2)
H A Dextable.c21 #include <linux/mutex.h>
28 * mutex protecting text section modification (dynamic code patching).
H A Dnotifier.c407 * 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 Dworkqueue.c130 * 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 Daudit.h267 extern struct mutex audit_filter_mutex;
338 extern struct mutex audit_cmd_mutex;
H A Dcpu.c19 #include <linux/mutex.h>
61 struct mutex lock; /* Synchronizes accesses to refcount, */
H A Dkprobes.c134 .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 Dcgroup_freezer.c24 #include <linux/mutex.h>
H A Dtracepoint.c19 #include <linux/mutex.h>
38 * Tracepoint module list mutex protects the local module list.
/kernel/power/
H A Dautosleep.c10 #include <linux/mutex.h>
/kernel/gcov/
H A Dbase.c20 #include <linux/mutex.h>
/kernel/rcu/
H A Dtree.h460 struct mutex onoff_mutex; /* Coordinate hotplug & GPs. */
462 struct mutex barrier_mutex; /* Guards barrier fields. */
H A Dtiny.c31 #include <linux/mutex.h>
H A Dsrcu.c30 #include <linux/mutex.h>
H A Dupdate.c45 #include <linux/mutex.h>
/kernel/events/
H A Dcore.c1128 * 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 Dtrace_printk.c14 #include <linux/mutex.h>
H A Dtrace_stat.c35 struct mutex stat_mutex;
H A Dtrace_uprobe.c679 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);

Completed in 156 milliseconds

123