Lines Matching refs:css

103 bool css_has_online_children(struct cgroup_subsys_state *css);
151 struct cgroup_subsys_state *css);
154 struct cgroup_subsys_state *css);
161 void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags,
244 #define css_for_each_descendant_pre(pos, css) \ argument
245 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
246 (pos) = css_next_descendant_pre((pos), (css)))
267 #define css_for_each_descendant_post(pos, css) \ argument
268 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
269 (pos) = css_next_descendant_post((pos), (css)))
326 static inline void css_get(struct cgroup_subsys_state *css) in css_get() argument
328 if (!(css->flags & CSS_NO_REF)) in css_get()
329 percpu_ref_get(&css->refcnt); in css_get()
339 static inline void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in css_get_many() argument
341 if (!(css->flags & CSS_NO_REF)) in css_get_many()
342 percpu_ref_get_many(&css->refcnt, n); in css_get_many()
356 static inline bool css_tryget(struct cgroup_subsys_state *css) in css_tryget() argument
358 if (!(css->flags & CSS_NO_REF)) in css_tryget()
359 return percpu_ref_tryget(&css->refcnt); in css_tryget()
373 static inline bool css_tryget_online(struct cgroup_subsys_state *css) in css_tryget_online() argument
375 if (!(css->flags & CSS_NO_REF)) in css_tryget_online()
376 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online()
395 static inline bool css_is_dying(struct cgroup_subsys_state *css) in css_is_dying() argument
397 return !(css->flags & CSS_NO_REF) && percpu_ref_is_dying(&css->refcnt); in css_is_dying()
406 static inline void css_put(struct cgroup_subsys_state *css) in css_put() argument
408 if (!(css->flags & CSS_NO_REF)) in css_put()
409 percpu_ref_put(&css->refcnt); in css_put()
419 static inline void css_put_many(struct cgroup_subsys_state *css, unsigned int n) in css_put_many() argument
421 if (!(css->flags & CSS_NO_REF)) in css_put_many()
422 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
514 struct cgroup_subsys_state *css; in task_get_css() local
518 css = task_css(task, subsys_id); in task_get_css()
525 if (likely(css_tryget(css))) in task_get_css()
530 return css; in task_get_css()
712 static inline void css_get(struct cgroup_subsys_state *css) {} in css_get() argument
713 static inline void css_put(struct cgroup_subsys_state *css) {} in css_put() argument