Lines Matching refs:css
42 static inline void css_get(struct cgroup_subsys_state *css) in css_get() argument
44 if (!(css->flags & CSS_NO_REF)) in css_get()
45 percpu_ref_get(&css->refcnt); in css_get()
55 static inline void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in css_get_many() argument
57 if (!(css->flags & CSS_NO_REF)) in css_get_many()
58 percpu_ref_get_many(&css->refcnt, n); in css_get_many()
72 static inline bool css_tryget(struct cgroup_subsys_state *css) in css_tryget() argument
74 if (!(css->flags & CSS_NO_REF)) in css_tryget()
75 return percpu_ref_tryget(&css->refcnt); in css_tryget()
89 static inline bool css_tryget_online(struct cgroup_subsys_state *css) in css_tryget_online() argument
91 if (!(css->flags & CSS_NO_REF)) in css_tryget_online()
92 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online()
102 static inline void css_put(struct cgroup_subsys_state *css) in css_put() argument
104 if (!(css->flags & CSS_NO_REF)) in css_put()
105 percpu_ref_put(&css->refcnt); in css_put()
115 static inline void css_put_many(struct cgroup_subsys_state *css, unsigned int n) in css_put_many() argument
117 if (!(css->flags & CSS_NO_REF)) in css_put_many()
118 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
374 struct cgroup_subsys_state *css);
435 #define css_for_each_descendant_pre(pos, css) \ argument
436 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
437 (pos) = css_next_descendant_pre((pos), (css)))
441 struct cgroup_subsys_state *css);
462 #define css_for_each_descendant_post(pos, css) \ argument
463 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
464 (pos) = css_next_descendant_post((pos), (css)))
466 bool css_has_online_children(struct cgroup_subsys_state *css);
480 void css_task_iter_start(struct cgroup_subsys_state *css,
509 static inline void css_put(struct cgroup_subsys_state *css) {} in css_put() argument