Re: [PATCH 3/9 v2] cgroup: implement generic child / descendant walk macros

2012-11-09 Thread Li Zefan
On 2012/11/9 1:59, Tejun Heo wrote: > Currently, cgroup doesn't provide any generic helper for walking a > given cgroup's children or descendants. This patch adds the following > three macros. > > * cgroup_for_each_child() - walk immediate children of a cgroup. > > *

Re: [PATCH 3/9 v2] cgroup: implement generic child / descendant walk macros

2012-11-09 Thread Li Zefan
On 2012/11/9 1:59, Tejun Heo wrote: Currently, cgroup doesn't provide any generic helper for walking a given cgroup's children or descendants. This patch adds the following three macros. * cgroup_for_each_child() - walk immediate children of a cgroup. * cgroup_for_each_descendant_pre() -

[PATCH 3/9 v2] cgroup: implement generic child / descendant walk macros

2012-11-08 Thread Tejun Heo
Currently, cgroup doesn't provide any generic helper for walking a given cgroup's children or descendants. This patch adds the following three macros. * cgroup_for_each_child() - walk immediate children of a cgroup. * cgroup_for_each_descendant_pre() - visit all descendants of a cgroup in

[PATCH 3/9 v2] cgroup: implement generic child / descendant walk macros

2012-11-08 Thread Tejun Heo
Currently, cgroup doesn't provide any generic helper for walking a given cgroup's children or descendants. This patch adds the following three macros. * cgroup_for_each_child() - walk immediate children of a cgroup. * cgroup_for_each_descendant_pre() - visit all descendants of a cgroup in