Lines Matching refs:mutex
53 struct mutex { struct
73 static inline struct task_struct *__mutex_owner(struct mutex *lock) in __mutex_owner()
96 extern void mutex_destroy(struct mutex *lock);
102 static inline void mutex_destroy(struct mutex *lock) {} in mutex_destroy()
114 #define mutex_init(mutex) \ argument
118 __mutex_init((mutex), #mutex, &__key); \
136 struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
138 extern void __mutex_init(struct mutex *lock, const char *name,
147 static inline bool mutex_is_locked(struct mutex *lock) in mutex_is_locked()
157 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
158 extern void _mutex_lock_nest_lock(struct mutex *lock, struct lockdep_map *nest_lock);
160 extern int __must_check mutex_lock_interruptible_nested(struct mutex *lock,
162 extern int __must_check mutex_lock_killable_nested(struct mutex *lock,
164 extern void mutex_lock_io_nested(struct mutex *lock, unsigned int subclass);
178 extern void mutex_lock(struct mutex *lock);
179 extern int __must_check mutex_lock_interruptible(struct mutex *lock);
180 extern int __must_check mutex_lock_killable(struct mutex *lock);
181 extern void mutex_lock_io(struct mutex *lock);
196 extern int mutex_trylock(struct mutex *lock);
197 extern void mutex_unlock(struct mutex *lock);
199 extern int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock);
224 mutex_trylock_recursive(struct mutex *lock) in mutex_trylock_recursive()