Lines Matching full:cn
211 struct cgroup_name *cn; in add_cgroup_name() local
216 cn = malloc(sizeof(*cn) + strlen(fpath) + 1); in add_cgroup_name()
217 if (cn == NULL) in add_cgroup_name()
220 cn->used = false; in add_cgroup_name()
221 strcpy(cn->name, fpath); in add_cgroup_name()
223 list_add_tail(&cn->list, &cgroup_list); in add_cgroup_name()
229 struct cgroup_name *cn; in release_cgroup_list() local
232 cn = list_first_entry(&cgroup_list, struct cgroup_name, list); in release_cgroup_list()
233 list_del(&cn->list); in release_cgroup_list()
234 free(cn); in release_cgroup_list()
242 struct cgroup_name *cn; in list_cgroups() local
272 list_for_each_entry(cn, &cgroup_list, list) in list_cgroups()
273 cn->used = true; in list_cgroups()
283 struct cgroup_name *cn; in match_cgroups() local
314 list_for_each_entry(cn, &cgroup_list, list) { in match_cgroups()
315 char *name = cn->name + prefix_len; in match_cgroups()
320 cn->used = true; in match_cgroups()
326 cn = list_first_entry(&cgroup_list, struct cgroup_name, in match_cgroups()
328 cn->used = true; in match_cgroups()
402 struct cgroup_name *cn; in evlist__expand_cgroup() local
437 list_for_each_entry(cn, &cgroup_list, list) { in evlist__expand_cgroup()
440 if (!cn->used) in evlist__expand_cgroup()
444 name = cn->name + prefix_len; in evlist__expand_cgroup()