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 check_and_add_cgroup_name() local
231 list_for_each_entry(cn, &cgroup_list, list) { in check_and_add_cgroup_name()
232 if (!strcmp(cn->name, fpath)) in check_and_add_cgroup_name()
242 struct cgroup_name *cn; in release_cgroup_list() local
245 cn = list_first_entry(&cgroup_list, struct cgroup_name, list); in release_cgroup_list()
246 list_del(&cn->list); in release_cgroup_list()
247 free(cn); in release_cgroup_list()
255 struct cgroup_name *cn; in list_cgroups() local
285 list_for_each_entry(cn, &cgroup_list, list) in list_cgroups()
286 cn->used = true; in list_cgroups()
296 struct cgroup_name *cn; in match_cgroups() local
327 list_for_each_entry(cn, &cgroup_list, list) { in match_cgroups()
328 char *name = cn->name + prefix_len; in match_cgroups()
333 cn->used = true; in match_cgroups()
339 cn = list_first_entry(&cgroup_list, struct cgroup_name, in match_cgroups()
341 cn->used = true; in match_cgroups()
415 struct cgroup_name *cn; in evlist__expand_cgroup() local
450 list_for_each_entry(cn, &cgroup_list, list) { in evlist__expand_cgroup()
453 if (!cn->used) in evlist__expand_cgroup()
457 name = cn->name + prefix_len; in evlist__expand_cgroup()