Home
last modified time | relevance | path

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

/lib/
Dlockref.c13 struct lockref old; \
15 old.lock_count = READ_ONCE(lockref->lock_count); \
17 struct lockref new = old, prev = old; \
19 old.lock_count = cmpxchg64_relaxed(&lockref->lock_count, \
44 void lockref_get(struct lockref *lockref) in lockref_get() argument
52 spin_lock(&lockref->lock); in lockref_get()
53 lockref->count++; in lockref_get()
54 spin_unlock(&lockref->lock); in lockref_get()
63 int lockref_get_not_zero(struct lockref *lockref) in lockref_get_not_zero() argument
75 spin_lock(&lockref->lock); in lockref_get_not_zero()
[all …]
DMakefile41 obj-y += lockref.o