-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cgroup: Optionally add process and task to a subsystems subset
In some cases, one may want to add processes and task only to certain subsystems in a cgroup. For example, when a cgroup is created to only limit a given subsystem usage, but leaves all other subsystems unconstrained, there may be a need to move a process to only the contrained cgroup subsystem while leaving it in another cgroup for other subsystems. This commit makes the Control interface process and task addition functions variadic, in order to pass an optional list of subsystems that behave as s subsystems filter. Signed-off-by: Samuel Ortiz <samuel.e.ortiz@protonmail.com>
- Loading branch information
Showing
3 changed files
with
154 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters