Lines Matching refs:mutex
50 struct mutex { struct
93 # define mutex_init(mutex) \ argument
97 __mutex_init((mutex), #mutex, &__key); \
99 static inline void mutex_destroy(struct mutex *lock) {} in mutex_destroy()
117 struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
119 extern void __mutex_init(struct mutex *lock, const char *name,
128 static inline int mutex_is_locked(struct mutex *lock) in mutex_is_locked()
138 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
139 extern void _mutex_lock_nest_lock(struct mutex *lock, struct lockdep_map *nest_lock);
141 extern int __must_check mutex_lock_interruptible_nested(struct mutex *lock,
143 extern int __must_check mutex_lock_killable_nested(struct mutex *lock,
157 extern void mutex_lock(struct mutex *lock);
158 extern int __must_check mutex_lock_interruptible(struct mutex *lock);
159 extern int __must_check mutex_lock_killable(struct mutex *lock);
173 extern int mutex_trylock(struct mutex *lock);
174 extern void mutex_unlock(struct mutex *lock);
176 extern int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock);