pub struct DevicesController { /* private fields */ }
Expand description

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

In essence, using the devices controller, it is possible to allow or disallow sets of devices to be used by the control group’s tasks.

Implementations§

Constructs a new DevicesController with root serving as the root of the control group.

Allow a (possibly, set of) device(s) to be used by the tasks in the control group.

When -1 is passed as major or minor, the kernel interprets that value as “any”, meaning that it will match any device.

Deny the control group’s tasks access to the devices covered by dev.

When -1 is passed as major or minor, the kernel interprets that value as “any”, meaning that it will match any device.

Get the current list of allowed devices.

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

Set notify_on_release

Set release_agent

Does this controller already exist?

Delete the controller.

Attach a task to this controller.

Attach a task to this controller by thread group id.

Get the list of procs that this controller has.

Get the list of tasks that this controller has.

set cgroup.type

get cgroup.type

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.