Lines Matching defs:child
79 * @child: first child of the root
89 struct cgroup *child, int cpu)
91 struct cgroup *chead = child; /* Head of child cgroup level */
96 child->rstat_flush_next = NULL;
100 child = chead;
101 chead = child->rstat_flush_next;
102 parent = cgroup_parent(child);
105 while (child != parent) {
106 child->rstat_flush_next = head;
107 head = child;
108 crstatc = cgroup_rstat_cpu(child, cpu);
110 if (grandchild != child) {
111 /* Push the grand child to the next level */
112 crstatc->updated_children = child;
116 child = crstatc->updated_next;
138 * The only ordering guarantee is that, for a parent and a child pair
139 * covered by a given traversal, the child is before its parent in
143 * child cgroups if not empty. Whereas updated_next is like a sibling link
151 struct cgroup *head = NULL, *parent, *child;
194 child = rstatc->updated_children;
196 if (child != root)
197 head = cgroup_rstat_push_children(head, child, cpu);