Lines Matching refs:cn
211 struct cgroup_name *cn;
216 cn = malloc(sizeof(*cn) + strlen(fpath) + 1);
217 if (cn == NULL)
220 cn->used = false;
221 strcpy(cn->name, fpath);
223 list_add_tail(&cn->list, &cgroup_list);
229 struct cgroup_name *cn;
231 list_for_each_entry(cn, &cgroup_list, list) {
232 if (!strcmp(cn->name, fpath))
242 struct cgroup_name *cn;
245 cn = list_first_entry(&cgroup_list, struct cgroup_name, list);
246 list_del(&cn->list);
247 free(cn);
255 struct cgroup_name *cn;
285 list_for_each_entry(cn, &cgroup_list, list)
286 cn->used = true;
296 struct cgroup_name *cn;
327 list_for_each_entry(cn, &cgroup_list, list) {
328 char *name = cn->name + prefix_len;
333 cn->used = true;
339 cn = list_first_entry(&cgroup_list, struct cgroup_name,
341 cn->used = true;
415 struct cgroup_name *cn;
450 list_for_each_entry(cn, &cgroup_list, list) {
453 if (!cn->used)
457 name = cn->name + prefix_len;