Home
last modified time | relevance | path

Searched refs:lockref (Results 1 – 2 of 2) sorted by relevance

/lib/
Dlockref.c11 struct lockref old; \
13 old.lock_count = READ_ONCE(lockref->lock_count); \
15 struct lockref new = old, prev = old; \
17 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \
40 void lockref_get(struct lockref *lockref) in lockref_get() argument
48 spin_lock(&lockref->lock); in lockref_get()
49 lockref->count++; in lockref_get()
50 spin_unlock(&lockref->lock); in lockref_get()
59 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument
71 spin_lock(&lockref->lock); in lockref_get_not_zero()
[all …]
DMakefile35 obj-y += lockref.o