Lines Matching refs:cfts

248 			      struct cgroup *cgrp, struct cftype cfts[],
1709 struct cftype *cfts; in css_clear_dir() local
1728 list_for_each_entry(cfts, &css->ss->cfts, node) in css_clear_dir()
1729 cgroup_addrm_files(css, cgrp, cfts, false); in css_clear_dir()
1742 struct cftype *cfts, *failed_cfts; in css_populate_dir() local
1766 list_for_each_entry(cfts, &css->ss->cfts, node) { in css_populate_dir()
1767 ret = cgroup_addrm_files(css, cgrp, cfts, true); in css_populate_dir()
1769 failed_cfts = cfts; in css_populate_dir()
1779 list_for_each_entry(cfts, &css->ss->cfts, node) { in css_populate_dir()
1780 if (cfts == failed_cfts) in css_populate_dir()
1782 cgroup_addrm_files(css, cgrp, cfts, false); in css_populate_dir()
4223 struct cgroup *cgrp, struct cftype cfts[], in cgroup_addrm_files() argument
4232 for (cft = cfts; cft != cft_end && cft->name[0] != '\0'; cft++) { in cgroup_addrm_files()
4260 static int cgroup_apply_cftypes(struct cftype *cfts, bool is_add) in cgroup_apply_cftypes() argument
4262 struct cgroup_subsys *ss = cfts[0].ss; in cgroup_apply_cftypes()
4276 ret = cgroup_addrm_files(css, cgrp, cfts, is_add); in cgroup_apply_cftypes()
4286 static void cgroup_exit_cftypes(struct cftype *cfts) in cgroup_exit_cftypes() argument
4290 for (cft = cfts; cft->name[0] != '\0'; cft++) { in cgroup_exit_cftypes()
4303 static int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_init_cftypes() argument
4308 for (cft = cfts; cft->name[0] != '\0'; cft++) { in cgroup_init_cftypes()
4342 cgroup_exit_cftypes(cfts); in cgroup_init_cftypes()
4346 static int cgroup_rm_cftypes_locked(struct cftype *cfts) in cgroup_rm_cftypes_locked() argument
4350 list_del(&cfts->node); in cgroup_rm_cftypes_locked()
4351 cgroup_apply_cftypes(cfts, false); in cgroup_rm_cftypes_locked()
4352 cgroup_exit_cftypes(cfts); in cgroup_rm_cftypes_locked()
4367 int cgroup_rm_cftypes(struct cftype *cfts) in cgroup_rm_cftypes() argument
4371 if (!cfts || cfts[0].name[0] == '\0') in cgroup_rm_cftypes()
4374 if (!(cfts[0].flags & __CFTYPE_ADDED)) in cgroup_rm_cftypes()
4378 ret = cgroup_rm_cftypes_locked(cfts); in cgroup_rm_cftypes()
4397 static int cgroup_add_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_cftypes() argument
4404 if (!cfts || cfts[0].name[0] == '\0') in cgroup_add_cftypes()
4407 ret = cgroup_init_cftypes(ss, cfts); in cgroup_add_cftypes()
4413 list_add_tail(&cfts->node, &ss->cfts); in cgroup_add_cftypes()
4414 ret = cgroup_apply_cftypes(cfts, true); in cgroup_add_cftypes()
4416 cgroup_rm_cftypes_locked(cfts); in cgroup_add_cftypes()
4430 int cgroup_add_dfl_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_dfl_cftypes() argument
4434 for (cft = cfts; cft && cft->name[0] != '\0'; cft++) in cgroup_add_dfl_cftypes()
4436 return cgroup_add_cftypes(ss, cfts); in cgroup_add_dfl_cftypes()
4447 int cgroup_add_legacy_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_legacy_cftypes() argument
4451 for (cft = cfts; cft && cft->name[0] != '\0'; cft++) in cgroup_add_legacy_cftypes()
4453 return cgroup_add_cftypes(ss, cfts); in cgroup_add_legacy_cftypes()
5973 INIT_LIST_HEAD(&ss->cfts); in cgroup_init_subsys()