cgroup: document how cgroup IDs are assigned
authorLi Zefan <lizefan@huawei.com>
Wed, 31 Jul 2013 01:51:06 +0000 (09:51 +0800)
committerTejun Heo <tj@kernel.org>
Wed, 31 Jul 2013 11:47:34 +0000 (07:47 -0400)
commitb414dc09a31d41d696093a4cce9fb2853a5ecd4e
tree63cf081d600fff0d271130b8578f17d4fb90fe49
parent4e96ee8e981b5140a2bcc5fff0d5c0eef39a62ee
cgroup: document how cgroup IDs are assigned

As cgroup id has been used in netprio cgroup and will be used in memcg,
it's important to make it clear how a cgroup id is allocated.

For example, in netprio cgroup, the id is used as index of anarray.

Signed-off-by: Li Zefan <lizefan@huwei.com>
Reviewed-by: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Tejun Heo <tj@kernel.org>
include/linux/cgroup.h