Lines Matching refs:css
94 bool css_has_online_children(struct cgroup_subsys_state *css);
134 struct cgroup_subsys_state *css);
137 struct cgroup_subsys_state *css);
144 void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags,
227 #define css_for_each_descendant_pre(pos, css) \ argument
228 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
229 (pos) = css_next_descendant_pre((pos), (css)))
250 #define css_for_each_descendant_post(pos, css) \ argument
251 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
252 (pos) = css_next_descendant_post((pos), (css)))
304 static inline void css_get(struct cgroup_subsys_state *css) in css_get() argument
306 if (!(css->flags & CSS_NO_REF)) in css_get()
307 percpu_ref_get(&css->refcnt); in css_get()
317 static inline void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in css_get_many() argument
319 if (!(css->flags & CSS_NO_REF)) in css_get_many()
320 percpu_ref_get_many(&css->refcnt, n); in css_get_many()
334 static inline bool css_tryget(struct cgroup_subsys_state *css) in css_tryget() argument
336 if (!(css->flags & CSS_NO_REF)) in css_tryget()
337 return percpu_ref_tryget(&css->refcnt); in css_tryget()
351 static inline bool css_tryget_online(struct cgroup_subsys_state *css) in css_tryget_online() argument
353 if (!(css->flags & CSS_NO_REF)) in css_tryget_online()
354 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online()
373 static inline bool css_is_dying(struct cgroup_subsys_state *css) in css_is_dying() argument
375 return !(css->flags & CSS_NO_REF) && percpu_ref_is_dying(&css->refcnt); in css_is_dying()
384 static inline void css_put(struct cgroup_subsys_state *css) in css_put() argument
386 if (!(css->flags & CSS_NO_REF)) in css_put()
387 percpu_ref_put(&css->refcnt); in css_put()
397 static inline void css_put_many(struct cgroup_subsys_state *css, unsigned int n) in css_put_many() argument
399 if (!(css->flags & CSS_NO_REF)) in css_put_many()
400 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
492 struct cgroup_subsys_state *css; in task_get_css() local
496 css = task_css(task, subsys_id); in task_get_css()
497 if (likely(css_tryget_online(css))) in task_get_css()
502 return css; in task_get_css()
691 static inline void css_put(struct cgroup_subsys_state *css) {} in css_put() argument