Struct cgroups_rs::pid::PidController [−][src]
pub struct PidController { /* fields omitted */ }
Expand description
A controller that allows controlling the pids
subsystem of a Cgroup.
Implementations
Constructors a new PidController
instance, with root
serving as the controller’s root
directory.
The number of times fork
failed because the limit was hit.
The number of processes currently.
The maximum number of processes that can exist at one time in the control group.
Set the maximum number of processes that can exist in this control group.
Note that if get_pid_current()
returns a higher number than what you
are about to set (max_pid
), then no processess will be killed. Additonally, attaching
extra processes to a control group disregards the limit.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PidController
impl Send for PidController
impl Sync for PidController
impl Unpin for PidController
impl UnwindSafe for PidController
Blanket Implementations
Mutably borrows from an owned value. Read more
Apply a set of resources to the Controller, invoking its internal functions to pass the kernel the information.
Attach a task to this controller by thread group id.