Lines Matching refs:mutex
53 struct mutex { struct
86 extern void mutex_destroy(struct mutex *lock);
92 static inline void mutex_destroy(struct mutex *lock) {} in mutex_destroy()
104 #define mutex_init(mutex) \ argument
108 __mutex_init((mutex), #mutex, &__key); \
126 struct mutex mutexname = __MUTEX_INITIALIZER(mutexname)
128 extern void __mutex_init(struct mutex *lock, const char *name,
137 extern bool mutex_is_locked(struct mutex *lock);
144 extern void mutex_lock_nested(struct mutex *lock, unsigned int subclass);
145 extern void _mutex_lock_nest_lock(struct mutex *lock, struct lockdep_map *nest_lock);
147 extern int __must_check mutex_lock_interruptible_nested(struct mutex *lock,
149 extern int __must_check mutex_lock_killable_nested(struct mutex *lock,
151 extern void mutex_lock_io_nested(struct mutex *lock, unsigned int subclass);
165 extern void mutex_lock(struct mutex *lock);
166 extern int __must_check mutex_lock_interruptible(struct mutex *lock);
167 extern int __must_check mutex_lock_killable(struct mutex *lock);
168 extern void mutex_lock_io(struct mutex *lock);
183 extern int mutex_trylock(struct mutex *lock);
184 extern void mutex_unlock(struct mutex *lock);
186 extern int atomic_dec_and_mutex_lock(atomic_t *cnt, struct mutex *lock);
211 mutex_trylock_recursive(struct mutex *lock);