Lines Matching refs:cfile
913 const struct cgroup_file *cfile; in cgroup_file_find() local
938 for (cfile = ctrl->files; cfile->file_name; cfile++) { in cgroup_file_find()
939 if (!strcmp(file_name, cfile->file_name)) in cgroup_file_find()
943 if (!cfile->file_name) { in cgroup_file_find()
950 return cfile; in cgroup_file_find()
986 static const char *cgroup_file_alias(const struct cgroup_file *const cfile, in cgroup_file_alias() argument
990 return cfile->file_name; in cgroup_file_alias()
992 if (cfile->ctrl_indx == CTRL_CPUSET && in cgroup_file_alias()
994 cfile->file_name_v1) { in cgroup_file_alias()
995 return strchr(cfile->file_name_v1, '.') + 1; in cgroup_file_alias()
998 return cfile->file_name_v1; in cgroup_file_alias()
1005 const struct cgroup_file *const cfile = in safe_cgroup_has() local
1010 if (!cfile) in safe_cgroup_has()
1013 for_each_dir(cg, cfile->ctrl_indx, dir) { in safe_cgroup_has()
1014 alias = cgroup_file_alias(cfile, *dir); in safe_cgroup_has()
1075 const struct cgroup_file *const cfile = in safe_cgroup_read() local
1083 for_each_dir(cg, cfile->ctrl_indx, dir) { in safe_cgroup_read()
1084 alias = cgroup_file_alias(cfile, *dir); in safe_cgroup_read()
1116 const struct cgroup_file *const cfile = in safe_cgroup_printf() local
1122 for_each_dir(cg, cfile->ctrl_indx, dir) { in safe_cgroup_printf()
1123 alias = cgroup_file_alias(cfile, *dir); in safe_cgroup_printf()