Lines Matching full:cn
219 struct cgroup_name *cn; in add_cgroup_name() local
224 cn = malloc(sizeof(*cn) + strlen(fpath) + 1); in add_cgroup_name()
225 if (cn == NULL) in add_cgroup_name()
228 cn->used = false; in add_cgroup_name()
229 strcpy(cn->name, fpath); in add_cgroup_name()
231 list_add_tail(&cn->list, &cgroup_list); in add_cgroup_name()
237 struct cgroup_name *cn; in check_and_add_cgroup_name() local
239 list_for_each_entry(cn, &cgroup_list, list) { in check_and_add_cgroup_name()
240 if (!strcmp(cn->name, fpath)) in check_and_add_cgroup_name()
250 struct cgroup_name *cn; in release_cgroup_list() local
253 cn = list_first_entry(&cgroup_list, struct cgroup_name, list); in release_cgroup_list()
254 list_del(&cn->list); in release_cgroup_list()
255 free(cn); in release_cgroup_list()
263 struct cgroup_name *cn; in list_cgroups() local
293 list_for_each_entry(cn, &cgroup_list, list) in list_cgroups()
294 cn->used = true; in list_cgroups()
304 struct cgroup_name *cn; in match_cgroups() local
335 list_for_each_entry(cn, &cgroup_list, list) { in match_cgroups()
336 char *name = cn->name + prefix_len; in match_cgroups()
341 cn->used = true; in match_cgroups()
347 cn = list_first_entry(&cgroup_list, struct cgroup_name, in match_cgroups()
349 cn->used = true; in match_cgroups()
423 struct cgroup_name *cn; in evlist__expand_cgroup() local
458 list_for_each_entry(cn, &cgroup_list, list) { in evlist__expand_cgroup()
461 if (!cn->used) in evlist__expand_cgroup()
465 name = cn->name + prefix_len; in evlist__expand_cgroup()
609 struct cgroup_name *cn; in read_all_cgroups() local
622 list_for_each_entry(cn, &cgroup_list, list) { in read_all_cgroups()
627 name = cn->name + prefix_len; in read_all_cgroups()
631 cgrp_id = __read_cgroup_id(cn->name); in read_all_cgroups()