[−][src]Module controlgroup::v1
Operations on cgroups in a v1 hierarchy.
Operations for each subsystem are implemented in each module. See cpu::Subsystem
for
example. Currently this crate supports CPU, cpuset, cpuacct, memory, hugetlb,
devices, blkio, RDMA, net_prio, net_cls, pids, freezer, and perf_event
subsystems.
Cgroup
trait defines the common operations on a cgroup. Each subsystem handler implements
this trait and subsystem-specific operations.
UnifiedRepr
provides an access to a set of cgroups in the v1 hierarchies as if it is in a v2
hierarchy.
Builder
provides a way to configure a set of cgroups in the builder pattern.
For more information about cgroup v1, see the kernel's documentation Documentation/cgroup-v1/cgroups.txt.
Re-exports
pub use builder::Builder; |
Modules
blkio | Operations on a BlkIO subsystem. |
builder | Configuring a set of cgroups using the builder pattern. |
cpu | Operations on a CPU subsystem. |
cpuacct | Operations on a cpuacct (CPU accounting) subsystem. |
cpuset | Operations on a Cpuset subsystem. |
devices | Operations on a Devices subsystem. |
freezer | Operations on a Freezer subsystem. |
hugetlb | Operations on a HugeTLB subsystem. |
memory | Operations on a Memory subsystem. |
net_cls | Operations on a net_cls subsystem. |
net_prio | Operations on a net_prio subsystem. |
perf_event | Definition of a perf_event subsystem. |
pids | Operations on a Pids subsystem. |
rdma | Operations on an RDMA subsystem. |
Structs
CgroupPath | Path to a cgroup in a cgroup file system. |
Resources | Compound of resource limits and constraints for each subsystem. |
UnifiedRepr | Unified representation of a set of cgroups sharing the same name. |
Enums
SubsystemKind | Kinds of subsystems that are now available in this crate. |
Traits
Cgroup | Common operations on a cgroup. Each subsystem handler implements this trait. |