Home
last modified time | relevance | path

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

/kernel/
Dmutex.c44 #define MUTEX_SHOW_NO_WAITER(mutex) (atomic_read(&(mutex)->count) >= 0) argument
47 __mutex_init(struct mutex *lock, const char *name, struct lock_class_key *key) in __mutex_init()
93 void __sched mutex_lock(struct mutex *lock) in mutex_lock()
120 #define MLOCK(mutex) ((struct mspin_node **)&((mutex)->spin_mlock)) argument
166 static inline bool owner_running(struct mutex *lock, struct task_struct *owner) in owner_running()
187 int mutex_spin_on_owner(struct mutex *lock, struct task_struct *owner) in mutex_spin_on_owner()
209 static inline int mutex_can_spin_on_owner(struct mutex *lock) in mutex_can_spin_on_owner()
238 void __sched mutex_unlock(struct mutex *lock) in mutex_unlock()
261 __mutex_lock_common(struct mutex *lock, long state, unsigned int subclass, in __mutex_lock_common()
411 mutex_lock_nested(struct mutex *lock, unsigned int subclass) in mutex_lock_nested()
[all …]
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-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()
83 void debug_mutex_init(struct mutex *lock, const char *name, in debug_mutex_init()
104 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()
Dworkqueue.c164 struct mutex manager_arb; /* manager arbitration */
165 struct mutex manager_mutex; /* manager exclusion */
235 struct mutex mutex; /* protects this wq */ member
323 lockdep_is_held(&wq->mutex), \
2569 mutex_lock(&wq->mutex); in flush_workqueue()
2614 mutex_unlock(&wq->mutex); in flush_workqueue()
2627 mutex_lock(&wq->mutex); in flush_workqueue()
2699 mutex_unlock(&wq->mutex); in flush_workqueue()
2724 mutex_lock(&wq->mutex); in drain_workqueue()
2727 mutex_unlock(&wq->mutex); in drain_workqueue()
[all …]
Dkcmp.c72 static void kcmp_unlock(struct mutex *m1, struct mutex *m2) in kcmp_unlock()
79 static int kcmp_lock(struct mutex *m1, struct mutex *m2) in kcmp_lock()
Dnotifier.c430 mutex_lock(&nh->mutex); in srcu_notifier_chain_register()
432 mutex_unlock(&nh->mutex); in srcu_notifier_chain_register()
460 mutex_lock(&nh->mutex); in srcu_notifier_chain_unregister()
462 mutex_unlock(&nh->mutex); in srcu_notifier_chain_unregister()
521 mutex_init(&nh->mutex); in srcu_init_notifier_head()
Drtmutex-tester.c139 void schedule_rt_mutex_test(struct rt_mutex *mutex) in schedule_rt_mutex_test() argument
162 if (mutex != &mutexes[dat]) in schedule_rt_mutex_test()
182 if (mutex != &mutexes[dat]) in schedule_rt_mutex_test()
194 if (mutex != &mutexes[dat]) in schedule_rt_mutex_test()
Daudit.h253 extern struct mutex audit_filter_mutex;
324 extern struct mutex audit_cmd_mutex;
Drcutree.h408 struct mutex onoff_mutex; /* Coordinate hotplug & GPs. */
410 struct mutex barrier_mutex; /* Guards barrier fields. */
DMakefile10 kthread.o wait.o sys_ni.o posix-cpu-timers.o mutex.o \
34 obj-$(CONFIG_DEBUG_MUTEXES) += mutex-debug.o
Dcgroup.c3373 struct rw_semaphore mutex; member
3455 down_write(&l->mutex); in cgroup_pidlist_find()
3466 init_rwsem(&l->mutex); in cgroup_pidlist_find()
3467 down_write(&l->mutex); in cgroup_pidlist_find()
3530 up_write(&l->mutex); in pidlist_array_load()
3608 down_read(&l->mutex); in cgroup_pidlist_start()
3635 up_read(&l->mutex); in cgroup_pidlist_stop()
3681 down_write(&l->mutex); in cgroup_release_pid_array()
3689 up_write(&l->mutex); in cgroup_release_pid_array()
3694 up_write(&l->mutex); in cgroup_release_pid_array()
Dcpu.c61 struct mutex lock; /* Synchronizes accesses to refcount, */
Dprintk.c422 struct mutex lock;
/kernel/events/
Dcore.c769 mutex_lock(&ctx->mutex); in perf_event_ctx_lock()
771 mutex_unlock(&ctx->mutex); in perf_event_ctx_lock()
782 mutex_unlock(&ctx->mutex); in perf_event_ctx_unlock()
1346 lockdep_assert_held(&ctx->mutex); in perf_remove_from_context()
1784 lockdep_assert_held(&ctx->mutex); in perf_install_in_context()
2883 mutex_init(&ctx->mutex); in __perf_event_init_context()
3114 mutex_lock_nested(&ctx->mutex, SINGLE_DEPTH_NESTING); in perf_event_release_kernel()
3119 mutex_unlock(&ctx->mutex); in perf_event_release_kernel()
3223 lockdep_assert_held(&ctx->mutex); in perf_event_read_group()
3380 lockdep_assert_held(&ctx->mutex); in perf_event_for_each()
[all …]
Duprobes.c55 static struct mutex uprobes_mmap_mutex[UPROBES_HASH_SZ];
/kernel/trace/
Dring_buffer.c503 struct mutex mutex; member
1331 mutex_init(&buffer->mutex); in __ring_buffer_alloc()
1650 mutex_lock(&buffer->mutex); in ring_buffer_resize()
1786 mutex_unlock(&buffer->mutex); in ring_buffer_resize()
1805 mutex_unlock(&buffer->mutex); in ring_buffer_resize()
1812 mutex_lock(&buffer->mutex); in ring_buffer_change_overwrite()
1817 mutex_unlock(&buffer->mutex); in ring_buffer_change_overwrite()
Dtrace.c269 static DEFINE_PER_CPU(struct mutex, cpu_access_lock);
2862 mutex_init(&iter->mutex); in __tracing_open()
2955 mutex_destroy(&iter->mutex); in tracing_release()
3923 mutex_init(&iter->mutex); in tracing_open_pipe()
3953 mutex_destroy(&iter->mutex); in tracing_release_pipe()
4015 mutex_unlock(&iter->mutex); in tracing_wait_pipe()
4019 mutex_lock(&iter->mutex); in tracing_wait_pipe()
4069 mutex_lock(&iter->mutex); in tracing_read_pipe()
4138 mutex_unlock(&iter->mutex); in tracing_read_pipe()
4231 mutex_lock(&iter->mutex); in tracing_splice_read_pipe()
[all …]
Dtrace_stat.c35 struct mutex stat_mutex;
Dtrace.h1026 extern struct mutex event_mutex;
/kernel/sched/
Dcore.c7622 static DEFINE_MUTEX(mutex); in sched_rr_handler()
7624 mutex_lock(&mutex); in sched_rr_handler()
7632 mutex_unlock(&mutex); in sched_rr_handler()
7642 static DEFINE_MUTEX(mutex); in sched_rt_handler()
7644 mutex_lock(&mutex); in sched_rt_handler()
7661 mutex_unlock(&mutex); in sched_rt_handler()
Dsched.h103 extern struct mutex sched_domains_mutex;