Lines Matching refs:css
30 struct cgroup_subsys_state css; member
36 static inline struct cpuacct *css_ca(struct cgroup_subsys_state *css) in css_ca() argument
38 return css ? container_of(css, struct cpuacct, css) : NULL; in css_ca()
49 return css_ca(ca->css.parent); in parent_ca()
65 return &root_cpuacct.css; in cpuacct_css_alloc()
79 return &ca->css; in cpuacct_css_alloc()
90 static void cpuacct_css_free(struct cgroup_subsys_state *css) in cpuacct_css_free() argument
92 struct cpuacct *ca = css_ca(css); in cpuacct_css_free()
156 static u64 __cpuusage_read(struct cgroup_subsys_state *css, in __cpuusage_read() argument
159 struct cpuacct *ca = css_ca(css); in __cpuusage_read()
169 static u64 cpuusage_user_read(struct cgroup_subsys_state *css, in cpuusage_user_read() argument
172 return __cpuusage_read(css, CPUACCT_STAT_USER); in cpuusage_user_read()
175 static u64 cpuusage_sys_read(struct cgroup_subsys_state *css, in cpuusage_sys_read() argument
178 return __cpuusage_read(css, CPUACCT_STAT_SYSTEM); in cpuusage_sys_read()
181 static u64 cpuusage_read(struct cgroup_subsys_state *css, struct cftype *cft) in cpuusage_read() argument
183 return __cpuusage_read(css, CPUACCT_STAT_NSTATS); in cpuusage_read()
186 static int cpuusage_write(struct cgroup_subsys_state *css, struct cftype *cft, in cpuusage_write() argument
189 struct cpuacct *ca = css_ca(css); in cpuusage_write()