Copyright © 2016-2020 Michael Truog
Version: 2.0.1 Nov 26 2020 14:26:58 ------------------------------------------------------------------------
Authors: Michael Truog (mjtruog at protonmail dot com).
new_error_reasons() = {version_default, Version::pos_integer()} | {path_mounts, Status::pos_integer(), Output::[binary()]} | {path_v1, Status::pos_integer(), Output::[binary()]} | {path_v2, Status::pos_integer(), Output::[binary()]}
options() = [{version_default, pos_integer()} | {version_default_required, boolean()} | {path_v1, string()} | {path_v2, string()} | {path_mounts, string() | undefined}]
create/4 |
Create a specific cgroup.With cgroups v1, files cpuset.cpus and cpuset.mems are set if they are not initialized due to cgroup.clone_children (using the root values). |
delete/2 |
Delete a specific cgroup.The cgroup must not contain any OS processes for this function to succeed. |
delete_recursive/2 |
Delete a specific cgroup and as many non-leaf cgroups as possible.The cgroup must not contain any OS processes for this function to succeed. |
destroy/1 |
Destroy cgroups state data.. |
new/0 |
Create new cgroups state data.. |
new/1 |
Create new cgroups state data with local options.. |
shell/2 |
Execute a command with the default shell.. |
update/4 |
Update a cgroup path.May be used on the cgroup root path. |
update_or_create/4 |
Update or create a specific cgroup.. |
version/1 |
The cgroup version used.. |
create(CGroupPath::nonempty_string(), OSPids::[pos_integer()], CGroupParameters::[{string(), string()}], State::#cgroups{version = pos_integer(), path = string(), mounted = boolean()}) -> ok | {error, any()}
delete(CGroupPath::nonempty_string(), State::#cgroups{version = pos_integer(), path = string(), mounted = boolean()}) -> ok | {error, any()}
delete_recursive(CGroupPath::nonempty_string(), State::#cgroups{version = pos_integer(), path = string(), mounted = boolean()}) -> ok | {error, any()}
destroy(Cgroups::#cgroups{version = pos_integer(), path = string(), mounted = boolean()}) -> ok
new() -> {ok, #cgroups{version = pos_integer(), path = string(), mounted = boolean()}} | {error, new_error_reasons()}
new(Options0::options()) -> {ok, #cgroups{version = pos_integer(), path = string(), mounted = boolean()}} | {error, new_error_reasons()}
shell(Command::string(), Arguments::list()) -> {non_neg_integer(), [binary()]}
update(CGroupPath::string(), OSPids::[pos_integer()], CGroupParameters::[{string(), string()}], State::#cgroups{version = pos_integer(), path = string(), mounted = boolean()}) -> ok | {error, any()}
update_or_create(CGroupPath::nonempty_string(), OSPids::[pos_integer()], CGroupParameters::[{string(), string()}], State::#cgroups{version = pos_integer(), path = string(), mounted = boolean()}) -> ok | {error, any()}
version(Cgroups::#cgroups{version = pos_integer(), path = string(), mounted = boolean()}) -> pos_integer()
Generated by EDoc