Lines Matching refs:css

98 bool css_has_online_children(struct cgroup_subsys_state *css);
143 struct cgroup_subsys_state *css);
146 struct cgroup_subsys_state *css);
154 void css_task_iter_start(struct cgroup_subsys_state *css, unsigned int flags,
237 #define css_for_each_descendant_pre(pos, css) \ argument
238 for ((pos) = css_next_descendant_pre(NULL, (css)); (pos); \
239 (pos) = css_next_descendant_pre((pos), (css)))
260 #define css_for_each_descendant_post(pos, css) \ argument
261 for ((pos) = css_next_descendant_post(NULL, (css)); (pos); \
262 (pos) = css_next_descendant_post((pos), (css)))
314 static inline void css_get(struct cgroup_subsys_state *css) in css_get() argument
316 if (!(css->flags & CSS_NO_REF)) in css_get()
317 percpu_ref_get(&css->refcnt); in css_get()
327 static inline void css_get_many(struct cgroup_subsys_state *css, unsigned int n) in css_get_many() argument
329 if (!(css->flags & CSS_NO_REF)) in css_get_many()
330 percpu_ref_get_many(&css->refcnt, n); in css_get_many()
344 static inline bool css_tryget(struct cgroup_subsys_state *css) in css_tryget() argument
346 if (!(css->flags & CSS_NO_REF)) in css_tryget()
347 return percpu_ref_tryget(&css->refcnt); in css_tryget()
361 static inline bool css_tryget_online(struct cgroup_subsys_state *css) in css_tryget_online() argument
363 if (!(css->flags & CSS_NO_REF)) in css_tryget_online()
364 return percpu_ref_tryget_live(&css->refcnt); in css_tryget_online()
383 static inline bool css_is_dying(struct cgroup_subsys_state *css) in css_is_dying() argument
385 return !(css->flags & CSS_NO_REF) && percpu_ref_is_dying(&css->refcnt); in css_is_dying()
394 static inline void css_put(struct cgroup_subsys_state *css) in css_put() argument
396 if (!(css->flags & CSS_NO_REF)) in css_put()
397 percpu_ref_put(&css->refcnt); in css_put()
407 static inline void css_put_many(struct cgroup_subsys_state *css, unsigned int n) in css_put_many() argument
409 if (!(css->flags & CSS_NO_REF)) in css_put_many()
410 percpu_ref_put_many(&css->refcnt, n); in css_put_many()
502 struct cgroup_subsys_state *css; in task_get_css() local
506 css = task_css(task, subsys_id); in task_get_css()
513 if (likely(css_tryget(css))) in task_get_css()
518 return css; in task_get_css()
703 static inline void css_get(struct cgroup_subsys_state *css) {} in css_get() argument
704 static inline void css_put(struct cgroup_subsys_state *css) {} in css_put() argument