Lines Matching defs:cn
219 struct cgroup_name *cn;
224 cn = malloc(sizeof(*cn) + strlen(fpath) + 1);
225 if (cn == NULL)
228 cn->used = false;
229 strcpy(cn->name, fpath);
231 list_add_tail(&cn->list, &cgroup_list);
237 struct cgroup_name *cn;
239 list_for_each_entry(cn, &cgroup_list, list) {
240 if (!strcmp(cn->name, fpath))
250 struct cgroup_name *cn;
253 cn = list_first_entry(&cgroup_list, struct cgroup_name, list);
254 list_del(&cn->list);
255 free(cn);
263 struct cgroup_name *cn;
293 list_for_each_entry(cn, &cgroup_list, list)
294 cn->used = true;
304 struct cgroup_name *cn;
335 list_for_each_entry(cn, &cgroup_list, list) {
336 char *name = cn->name + prefix_len;
341 cn->used = true;
347 cn = list_first_entry(&cgroup_list, struct cgroup_name,
349 cn->used = true;
423 struct cgroup_name *cn;
458 list_for_each_entry(cn, &cgroup_list, list) {
461 if (!cn->used)
465 name = cn->name + prefix_len;
607 struct cgroup_name *cn;
620 list_for_each_entry(cn, &cgroup_list, list) {
625 name = cn->name + prefix_len;
629 cgrp_id = __read_cgroup_id(cn->name);