Searched refs:lockref (Results 1 – 6 of 6) sorted by relevance
42 void lockref_get(struct lockref *lockref) in lockref_get() argument51 lockref->count++; in lockref_get()61 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument76 lockref->count++; in lockref_get_not_zero()89 int lockref_put_not_zero(struct lockref *lockref) in lockref_put_not_zero() argument104 lockref->count--; in lockref_put_not_zero()119 int lockref_put_return(struct lockref *lockref) in lockref_put_return() argument137 int lockref_put_or_lock(struct lockref *lockref) in lockref_put_or_lock() argument150 lockref->count--; in lockref_put_or_lock()160 void lockref_mark_dead(struct lockref *lockref) in lockref_mark_dead() argument[all …]
43 obj-y += lockref.o
25 struct lockref { struct37 extern void lockref_get(struct lockref *); argument38 extern int lockref_put_return(struct lockref *);39 extern int lockref_get_not_zero(struct lockref *);40 extern int lockref_put_not_zero(struct lockref *);41 extern int lockref_put_or_lock(struct lockref *);43 extern void lockref_mark_dead(struct lockref *);44 extern int lockref_get_not_dead(struct lockref *);47 static inline bool __lockref_is_dead(const struct lockref *l) in __lockref_is_dead()
94 struct lockref d_lockref; /* per-dentry lock and refcount */
341 struct lockref gl_lockref;445 struct lockref qd_lockref;
167 This uses the lockref primitive to provide both a spinlock and a
Completed in 14 milliseconds