Lines Matching refs:cfts

226 			      struct cgroup *cgrp, struct cftype cfts[],
1653 struct cftype *cfts; in css_clear_dir() local
1662 cfts = cgroup_base_files; in css_clear_dir()
1664 cfts = cgroup1_base_files; in css_clear_dir()
1666 cgroup_addrm_files(css, cgrp, cfts, false); in css_clear_dir()
1668 list_for_each_entry(cfts, &css->ss->cfts, node) in css_clear_dir()
1669 cgroup_addrm_files(css, cgrp, cfts, false); in css_clear_dir()
1682 struct cftype *cfts, *failed_cfts; in css_populate_dir() local
1690 cfts = cgroup_base_files; in css_populate_dir()
1692 cfts = cgroup1_base_files; in css_populate_dir()
1694 ret = cgroup_addrm_files(&cgrp->self, cgrp, cfts, true); in css_populate_dir()
1698 list_for_each_entry(cfts, &css->ss->cfts, node) { in css_populate_dir()
1699 ret = cgroup_addrm_files(css, cgrp, cfts, true); in css_populate_dir()
1701 failed_cfts = cfts; in css_populate_dir()
1711 list_for_each_entry(cfts, &css->ss->cfts, node) { in css_populate_dir()
1712 if (cfts == failed_cfts) in css_populate_dir()
1714 cgroup_addrm_files(css, cgrp, cfts, false); in css_populate_dir()
3917 struct cgroup *cgrp, struct cftype cfts[], in cgroup_addrm_files() argument
3926 for (cft = cfts; cft != cft_end && cft->name[0] != '\0'; cft++) { in cgroup_addrm_files()
3954 static int cgroup_apply_cftypes(struct cftype *cfts, bool is_add) in cgroup_apply_cftypes() argument
3956 struct cgroup_subsys *ss = cfts[0].ss; in cgroup_apply_cftypes()
3970 ret = cgroup_addrm_files(css, cgrp, cfts, is_add); in cgroup_apply_cftypes()
3980 static void cgroup_exit_cftypes(struct cftype *cfts) in cgroup_exit_cftypes() argument
3984 for (cft = cfts; cft->name[0] != '\0'; cft++) { in cgroup_exit_cftypes()
3996 static int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_init_cftypes() argument
4000 for (cft = cfts; cft->name[0] != '\0'; cft++) { in cgroup_init_cftypes()
4017 cgroup_exit_cftypes(cfts); in cgroup_init_cftypes()
4030 static int cgroup_rm_cftypes_locked(struct cftype *cfts) in cgroup_rm_cftypes_locked() argument
4034 if (!cfts || !cfts[0].ss) in cgroup_rm_cftypes_locked()
4037 list_del(&cfts->node); in cgroup_rm_cftypes_locked()
4038 cgroup_apply_cftypes(cfts, false); in cgroup_rm_cftypes_locked()
4039 cgroup_exit_cftypes(cfts); in cgroup_rm_cftypes_locked()
4054 int cgroup_rm_cftypes(struct cftype *cfts) in cgroup_rm_cftypes() argument
4059 ret = cgroup_rm_cftypes_locked(cfts); in cgroup_rm_cftypes()
4078 static int cgroup_add_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_cftypes() argument
4085 if (!cfts || cfts[0].name[0] == '\0') in cgroup_add_cftypes()
4088 ret = cgroup_init_cftypes(ss, cfts); in cgroup_add_cftypes()
4094 list_add_tail(&cfts->node, &ss->cfts); in cgroup_add_cftypes()
4095 ret = cgroup_apply_cftypes(cfts, true); in cgroup_add_cftypes()
4097 cgroup_rm_cftypes_locked(cfts); in cgroup_add_cftypes()
4111 int cgroup_add_dfl_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_dfl_cftypes() argument
4115 for (cft = cfts; cft && cft->name[0] != '\0'; cft++) in cgroup_add_dfl_cftypes()
4117 return cgroup_add_cftypes(ss, cfts); in cgroup_add_dfl_cftypes()
4128 int cgroup_add_legacy_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_legacy_cftypes() argument
4132 for (cft = cfts; cft && cft->name[0] != '\0'; cft++) in cgroup_add_legacy_cftypes()
4134 return cgroup_add_cftypes(ss, cfts); in cgroup_add_legacy_cftypes()
5627 INIT_LIST_HEAD(&ss->cfts); in cgroup_init_subsys()