Lines Matching defs:percpu_ref

33  * removes the kioctx from the proccess's table of kioctxs and kills percpu_ref.
38 * to synchronize with RCU protected lookup_ioctx(). percpu_ref operations don't
39 * imply RCU grace periods of any kind and if a user wants to combine percpu_ref
59 struct percpu_ref;
60 typedef void (percpu_ref_func_t)(struct percpu_ref *);
62 /* flags set in the lower bits of percpu_ref->percpu_count_ptr */
102 struct percpu_ref *ref;
105 struct percpu_ref {
113 * 'percpu_ref' is often embedded into user structure, and only
121 int __must_check percpu_ref_init(struct percpu_ref *ref,
124 void percpu_ref_exit(struct percpu_ref *ref);
125 void percpu_ref_switch_to_atomic(struct percpu_ref *ref,
127 void percpu_ref_switch_to_atomic_sync(struct percpu_ref *ref);
128 void percpu_ref_switch_to_percpu(struct percpu_ref *ref);
129 void percpu_ref_kill_and_confirm(struct percpu_ref *ref,
131 void percpu_ref_resurrect(struct percpu_ref *ref);
132 void percpu_ref_reinit(struct percpu_ref *ref);
133 bool percpu_ref_is_zero(struct percpu_ref *ref);
137 * @ref: percpu_ref to kill
147 static inline void percpu_ref_kill(struct percpu_ref *ref)
158 static inline bool __ref_is_percpu(struct percpu_ref *ref,
191 * @ref: percpu_ref to get
198 static inline void percpu_ref_get_many(struct percpu_ref *ref, unsigned long nr)
214 * @ref: percpu_ref to get
220 static inline void percpu_ref_get(struct percpu_ref *ref)
227 * @ref: percpu_ref to try-get
235 static inline bool percpu_ref_tryget_many(struct percpu_ref *ref,
257 * @ref: percpu_ref to try-get
264 static inline bool percpu_ref_tryget(struct percpu_ref *ref)
275 static inline bool percpu_ref_tryget_live_rcu(struct percpu_ref *ref)
293 * @ref: percpu_ref to try-get
306 static inline bool percpu_ref_tryget_live(struct percpu_ref *ref)
318 * @ref: percpu_ref to put
326 static inline void percpu_ref_put_many(struct percpu_ref *ref, unsigned long nr)
342 * @ref: percpu_ref to put
349 static inline void percpu_ref_put(struct percpu_ref *ref)
356 * @ref: percpu_ref to test
363 static inline bool percpu_ref_is_dying(struct percpu_ref *ref)