Crate cgroups_rs[][src]

Modules

blkio

This module contains the implementation of the blkio cgroup subsystem.

cgroup

This module handles cgroup operations. Start here!

cgroup_builder

This module allows the user to create a control group using the Builder pattern.

cpu

This module contains the implementation of the cpu cgroup subsystem.

cpuacct

This module contains the implementation of the cpuacct cgroup subsystem.

cpuset

This module contains the implementation of the cpuset cgroup subsystem.

devices

This module contains the implementation of the devices cgroup subsystem.

error
events
freezer

This module contains the implementation of the freezer cgroup subsystem.

hierarchies

This module represents the various control group hierarchies the Linux kernel supports.

hugetlb

This module contains the implementation of the hugetlb cgroup subsystem.

memory

This module contains the implementation of the memory cgroup subsystem.

net_cls

This module contains the implementation of the net_cls cgroup subsystem.

net_prio

This module contains the implementation of the net_prio cgroup subsystem.

perf_event

This module contains the implementation of the perf_event cgroup subsystem.

pid

This module contains the implementation of the pids cgroup subsystem.

rdma

This module contains the implementation of the rdma cgroup subsystem.

systemd

This module contains the implementation of the systemd cgroup subsystem.

Structs

BlkIoDeviceResource

Weight for a particular block device.

BlkIoDeviceThrottleResource

Provides the ability to throttle a device (both byte/sec, and IO op/s)

BlkIoResources

General block I/O resource limits.

Cgroup

A control group is the central structure to this crate.

CgroupPid

A structure representing a pid. Currently implementations exist for u64 and std::process::Child.

CpuResources

Resources limits about how the tasks can use the CPU.

DeviceResource

A device resource that can be allowed or denied access to.

DeviceResources

Limit the usage of devices for the control group’s tasks.

HugePageResource

A hugepage type and its consumption limit for the control group.

HugePageResources

Provides the ability to set consumption limit on each type of hugepages.

MemoryResources

Resource limits for the memory subsystem.

NetworkPriority

Assigned priority for a network device.

NetworkResources

Collections of limits and tags that can be imposed on packets emitted by the tasks in the control group.

PidResources

Resources limits on the number of processes.

Resources

The resource limits and constraints that will be set on the control group.

Enums

MaxValue

The values for memory.hight or pids.max

Subsystem

Contains all the subsystems that are available in this crate.

Traits

Controller

A Controller is a subsystem attached to the control group.

Hierarchy

Control group hierarchy (right now, only V1 is supported, but in the future Unified will be implemented as well).

Functions

flat_keyed_to_hashmap
flat_keyed_to_vec
nested_keyed_to_hashmap
parse_max_value