Lines Matching refs:cfts

249 			      struct cgroup *cgrp, struct cftype cfts[],
1681 struct cftype *cfts; in css_clear_dir() local
1700 list_for_each_entry(cfts, &css->ss->cfts, node) in css_clear_dir()
1701 cgroup_addrm_files(css, cgrp, cfts, false); in css_clear_dir()
1714 struct cftype *cfts, *failed_cfts; in css_populate_dir() local
1738 list_for_each_entry(cfts, &css->ss->cfts, node) { in css_populate_dir()
1739 ret = cgroup_addrm_files(css, cgrp, cfts, true); in css_populate_dir()
1741 failed_cfts = cfts; in css_populate_dir()
1751 list_for_each_entry(cfts, &css->ss->cfts, node) { in css_populate_dir()
1752 if (cfts == failed_cfts) in css_populate_dir()
1754 cgroup_addrm_files(css, cgrp, cfts, false); in css_populate_dir()
4231 struct cgroup *cgrp, struct cftype cfts[], in cgroup_addrm_files() argument
4240 for (cft = cfts; cft != cft_end && cft->name[0] != '\0'; cft++) { in cgroup_addrm_files()
4268 static int cgroup_apply_cftypes(struct cftype *cfts, bool is_add) in cgroup_apply_cftypes() argument
4270 struct cgroup_subsys *ss = cfts[0].ss; in cgroup_apply_cftypes()
4284 ret = cgroup_addrm_files(css, cgrp, cfts, is_add); in cgroup_apply_cftypes()
4294 static void cgroup_exit_cftypes(struct cftype *cfts) in cgroup_exit_cftypes() argument
4298 for (cft = cfts; cft->name[0] != '\0'; cft++) { in cgroup_exit_cftypes()
4311 static int cgroup_init_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_init_cftypes() argument
4316 for (cft = cfts; cft->name[0] != '\0'; cft++) { in cgroup_init_cftypes()
4350 cgroup_exit_cftypes(cfts); in cgroup_init_cftypes()
4354 static void cgroup_rm_cftypes_locked(struct cftype *cfts) in cgroup_rm_cftypes_locked() argument
4358 list_del(&cfts->node); in cgroup_rm_cftypes_locked()
4359 cgroup_apply_cftypes(cfts, false); in cgroup_rm_cftypes_locked()
4360 cgroup_exit_cftypes(cfts); in cgroup_rm_cftypes_locked()
4374 int cgroup_rm_cftypes(struct cftype *cfts) in cgroup_rm_cftypes() argument
4376 if (!cfts || cfts[0].name[0] == '\0') in cgroup_rm_cftypes()
4379 if (!(cfts[0].flags & __CFTYPE_ADDED)) in cgroup_rm_cftypes()
4383 cgroup_rm_cftypes_locked(cfts); in cgroup_rm_cftypes()
4402 static int cgroup_add_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_cftypes() argument
4409 if (!cfts || cfts[0].name[0] == '\0') in cgroup_add_cftypes()
4412 ret = cgroup_init_cftypes(ss, cfts); in cgroup_add_cftypes()
4418 list_add_tail(&cfts->node, &ss->cfts); in cgroup_add_cftypes()
4419 ret = cgroup_apply_cftypes(cfts, true); in cgroup_add_cftypes()
4421 cgroup_rm_cftypes_locked(cfts); in cgroup_add_cftypes()
4435 int cgroup_add_dfl_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_dfl_cftypes() argument
4439 for (cft = cfts; cft && cft->name[0] != '\0'; cft++) in cgroup_add_dfl_cftypes()
4441 return cgroup_add_cftypes(ss, cfts); in cgroup_add_dfl_cftypes()
4452 int cgroup_add_legacy_cftypes(struct cgroup_subsys *ss, struct cftype *cfts) in cgroup_add_legacy_cftypes() argument
4456 for (cft = cfts; cft && cft->name[0] != '\0'; cft++) in cgroup_add_legacy_cftypes()
4458 return cgroup_add_cftypes(ss, cfts); in cgroup_add_legacy_cftypes()
5985 INIT_LIST_HEAD(&ss->cfts); in cgroup_init_subsys()