diff options
author | Daniel Mack <github@zonque.org> | 2015-09-10 19:11:29 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-09-10 19:11:29 +0200 |
commit | a18f3caa5613196700062e5f4cf55f36a3f76f2c (patch) | |
tree | 248315bbd774c6111b5e1c10ba52e6ba5e0c499b /src/basic/cgroup-util.c | |
parent | 786c5bf957f8f7b78c7a0999908ff822e712b53e (diff) | |
parent | 03a7b521e3ffb7f5d153d90480ba5d4bc29d1e8f (diff) |
Merge pull request #1239 from poettering/cgroup-pids
core: add support for the "pids" cgroup controller
Diffstat (limited to 'src/basic/cgroup-util.c')
-rw-r--r-- | src/basic/cgroup-util.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/basic/cgroup-util.c b/src/basic/cgroup-util.c index 94a25585b2..6099dc8721 100644 --- a/src/basic/cgroup-util.c +++ b/src/basic/cgroup-util.c @@ -2018,9 +2018,10 @@ int cg_mask_supported(CGroupMask *ret) { mask |= CGROUP_CONTROLLER_TO_MASK(v); } - /* Currently, we only support the memory controller in - * the unified hierarchy, mask everything else off. */ - mask &= CGROUP_MASK_MEMORY; + /* Currently, we only support the memory and pids + * controller in the unified hierarchy, mask + * everything else off. */ + mask &= CGROUP_MASK_MEMORY | CGROUP_MASK_PIDS; } else { CGroupController c; @@ -2212,6 +2213,7 @@ static const char *cgroup_controller_table[_CGROUP_CONTROLLER_MAX] = { [CGROUP_CONTROLLER_BLKIO] = "blkio", [CGROUP_CONTROLLER_MEMORY] = "memory", [CGROUP_CONTROLLER_DEVICES] = "devices", + [CGROUP_CONTROLLER_PIDS] = "pids", }; DEFINE_STRING_TABLE_LOOKUP(cgroup_controller, CGroupController); |