Lines Matching refs:css

98 bool css_has_online_children(struct cgroup_subsys_state *css);
146 struct cgroup_subsys_state *css);
149 struct cgroup_subsys_state *css);
156 void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags,
239 #define css_for_each_descendant_pre(pos, css) \ argument
240 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
241 (pos) = css_next_descendant_pre((pos), (css)))
262 #define css_for_each_descendant_post(pos, css) \ argument
263 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
264 (pos) = css_next_descendant_post((pos), (css)))
321 static inline void css_get(struct cgroup_subsys_state *css) in css_get() argument
323 if (!(css->flags & CSS_NO_REF)) in css_get()
324 percpu_ref_get(&css->refcnt); in css_get()
334 static inline void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in css_get_many() argument
336 if (!(css->flags & CSS_NO_REF)) in css_get_many()
337 percpu_ref_get_many(&css->refcnt, n); in css_get_many()
351 static inline bool css_tryget(struct cgroup_subsys_state *css) in css_tryget() argument
353 if (!(css->flags & CSS_NO_REF)) in css_tryget()
354 return percpu_ref_tryget(&css->refcnt); in css_tryget()
368 static inline bool css_tryget_online(struct cgroup_subsys_state *css) in css_tryget_online() argument
370 if (!(css->flags & CSS_NO_REF)) in css_tryget_online()
371 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online()
390 static inline bool css_is_dying(struct cgroup_subsys_state *css) in css_is_dying() argument
392 return !(css->flags & CSS_NO_REF) && percpu_ref_is_dying(&css->refcnt); in css_is_dying()
401 static inline void css_put(struct cgroup_subsys_state *css) in css_put() argument
403 if (!(css->flags & CSS_NO_REF)) in css_put()
404 percpu_ref_put(&css->refcnt); in css_put()
414 static inline void css_put_many(struct cgroup_subsys_state *css, unsigned int n) in css_put_many() argument
416 if (!(css->flags & CSS_NO_REF)) in css_put_many()
417 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
509 struct cgroup_subsys_state *css; in task_get_css() local
513 css = task_css(task, subsys_id); in task_get_css()
520 if (likely(css_tryget(css))) in task_get_css()
525 return css; in task_get_css()
705 static inline void css_get(struct cgroup_subsys_state *css) {} in css_get() argument
706 static inline void css_put(struct cgroup_subsys_state *css) {} in css_put() argument