Struct cgroups::pid::PidController

source ·
pub struct PidController { /* private fields */ }
Expand description

A controller that allows controlling the pids subsystem of a Cgroup.

Implementations

Constructors a new PidController instance, with oroot 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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
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.

Create this controller

Does this controller already exist?

Delete the controller.

Attach a task to this controller.

Get the list of tasks that this controller has.

The file system path to the controller.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.