Changeset 622 for GPL/branches/uniaud32-next/include/linux/refcount.h
- Timestamp:
- Jan 2, 2021, 1:29:57 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/refcount.h
r615 r622 37 37 } 38 38 39 static inline __must_check bool refcount_add_not_zero(unsigned int i, refcount_t *r)40 {41 return atomic_add_unless(&r->refs, i, 0);42 }43 44 39 static inline void refcount_add(unsigned int i, refcount_t *r) 45 40 { 46 41 atomic_add(i, &r->refs); 47 }48 49 static inline __must_check bool refcount_inc_not_zero(refcount_t *r)50 {51 return atomic_add_unless(&r->refs, 1, 0);52 42 } 53 43
Note:
See TracChangeset
for help on using the changeset viewer.