Lines Matching refs:cgroup
2 * device_cgroup.c - device cgroup subsystem
8 #include <linux/cgroup.h>
52 static inline struct dev_cgroup *cgroup_to_devcgroup(struct cgroup *cgroup)
54 return css_to_devcgroup(cgroup_subsys_state(cgroup, devices_subsys_id));
65 struct cgroup *new_cgroup, struct task_struct *task,
165 * called from kernel/cgroup.c with cgroup_lock() held.
168 struct cgroup *cgroup)
171 struct cgroup *parent_cgroup;
178 parent_cgroup = cgroup->parent;
207 struct cgroup *cgroup)
212 dev_cgroup = cgroup_to_devcgroup(cgroup);
258 static int devcgroup_seq_read(struct cgroup *cgroup, struct cftype *cft,
261 struct dev_cgroup *devcgroup = cgroup_to_devcgroup(cgroup);
316 struct cgroup *pcg = childcg->css.cgroup->parent;
335 * new access is only allowed if you're in the top-level cgroup, or your
336 * parent cgroup has the access you're asking for.
432 static int devcgroup_access_write(struct cgroup *cgrp, struct cftype *cft,
463 struct cgroup *cgroup)
465 return cgroup_add_files(cgroup, ss, dev_cgroup_files,