Lines Matching refs:css
89 static u32 netprio_prio(struct cgroup_subsys_state *css, struct net_device *dev) in netprio_prio() argument
92 int id = css->cgroup->id; in netprio_prio()
108 static int netprio_set_prio(struct cgroup_subsys_state *css, in netprio_set_prio() argument
112 int id = css->cgroup->id; in netprio_set_prio()
132 struct cgroup_subsys_state *css; in cgrp_css_alloc() local
134 css = kzalloc(sizeof(*css), GFP_KERNEL); in cgrp_css_alloc()
135 if (!css) in cgrp_css_alloc()
138 return css; in cgrp_css_alloc()
141 static int cgrp_css_online(struct cgroup_subsys_state *css) in cgrp_css_online() argument
143 struct cgroup_subsys_state *parent_css = css->parent; in cgrp_css_online()
158 ret = netprio_set_prio(css, dev, prio); in cgrp_css_online()
166 static void cgrp_css_free(struct cgroup_subsys_state *css) in cgrp_css_free() argument
168 kfree(css); in cgrp_css_free()
171 static u64 read_prioidx(struct cgroup_subsys_state *css, struct cftype *cft) in read_prioidx() argument
173 return css->cgroup->id; in read_prioidx()
224 struct cgroup_subsys_state *css; in net_prio_attach() local
226 cgroup_taskset_for_each(p, css, tset) { in net_prio_attach()
227 void *v = (void *)(unsigned long)css->cgroup->id; in net_prio_attach()