]> git.baikalelectronics.ru Git - kernel.git/commit
cgroups: include hierarchy ids in /proc/<pid>/cgroup
authorPaul Menage <menage@google.com>
Fri, 11 Apr 2008 04:29:16 +0000 (21:29 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 11 Apr 2008 15:06:43 +0000 (08:06 -0700)
commit0fd40e8659b604725846886acd65f6c13f58ce90
treef8f4487b8fe5dedb804c876c3e6f7df90f6b209d
parent757f979bd17fc370cf3d8dbdbe46a9e45e09a934
cgroups: include hierarchy ids in /proc/<pid>/cgroup

Extend the /proc/<pid>/cgroup file to include the appropriate hierarchy ID on
each line.

Currently this ID isn't really needed since a hierarchy can be completely
identified by the set of subsystems bound to it, but this is likely to change
in the near future in order to support stateless subsystems and
merging/rebinding of subsystems.  Getting this change into 2.6.25 reduces the
need for an API change later.

Signed-off-by: Paul Menage <menage@google.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup.c