Home
last modified time | relevance | path

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

/linux/lib/
H A Dpercpu-refcount.c42 static unsigned long __percpu *percpu_count_ptr(struct percpu_ref *ref) in percpu_count_ptr() function
45 (ref->percpu_count_ptr & ~__PERCPU_REF_ATOMIC_DEAD); in percpu_count_ptr()
71 ref->percpu_count_ptr = (unsigned long) in percpu_ref_init()
73 if (!ref->percpu_count_ptr) in percpu_ref_init()
78 free_percpu((void __percpu *)ref->percpu_count_ptr); in percpu_ref_init()
79 ref->percpu_count_ptr = 0; in percpu_ref_init()
87 ref->percpu_count_ptr |= __PERCPU_REF_ATOMIC; in percpu_ref_init()
94 ref->percpu_count_ptr |= __PERCPU_REF_DEAD; in percpu_ref_init()
110 unsigned long __percpu *percpu_count = percpu_count_ptr(ref); in __percpu_ref_exit()
116 ref->percpu_count_ptr = __PERCPU_REF_ATOMIC_DEAD; in __percpu_ref_exit()
[all …]
/linux/include/linux/
H A Dpercpu-refcount.h110 unsigned long percpu_count_ptr; member
174 percpu_ptr = READ_ONCE(ref->percpu_count_ptr); in __ref_is_percpu()
285 } else if (!(ref->percpu_count_ptr & __PERCPU_REF_DEAD)) { in percpu_ref_tryget_live_rcu()
365 return ref->percpu_count_ptr & __PERCPU_REF_DEAD; in percpu_ref_is_dying()