Struct cgroups_rs::freezer::FreezerController [−][src]
pub struct FreezerController { /* fields omitted */ }
Expand description
A controller that allows controlling the freezer
subsystem of a Cgroup.
In essence, this subsystem allows the user to freeze and thaw (== “un-freeze”) the processes in the control group. This is done transparently so that neither the parent, nor the children of the processes can observe the freeze.
Note that if the control group is currently in the Frozen
or Freezing
state, then no
processes can be added to it.
Implementations
Contructs a new FreezerController
with root
serving as the root of the control group.
Retrieve the state of processes in the control group.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for FreezerController
impl Send for FreezerController
impl Sync for FreezerController
impl Unpin for FreezerController
impl UnwindSafe for FreezerController
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.