Lines Matching refs:lockref
25 struct lockref { struct
43 static inline void lockref_init(struct lockref *lockref) in lockref_init() argument
45 spin_lock_init(&lockref->lock); in lockref_init()
46 lockref->count = 1; in lockref_init()
49 void lockref_get(struct lockref *lockref);
50 int lockref_put_return(struct lockref *lockref);
51 bool lockref_get_not_zero(struct lockref *lockref);
52 bool lockref_put_or_lock(struct lockref *lockref);
54 void lockref_mark_dead(struct lockref *lockref);
55 bool lockref_get_not_dead(struct lockref *lockref);
58 static inline bool __lockref_is_dead(const struct lockref *l) in __lockref_is_dead()