Trait Controller

Source
pub trait Controller {
    // Required methods
    fn procs(&self) -> Box<dyn AttrFile<Vec<Pid>, Pid> + '_>;
    fn tasks(&self) -> Box<dyn AttrFile<Vec<Pid>, Pid> + '_>;
    fn notify_on_release(&self) -> Box<dyn AttrFile<bool> + '_>;
    fn release_agent(&self) -> Box<dyn AttrFile<PathBuf, Path> + '_>;
}

Required Methods§

Source

fn procs(&self) -> Box<dyn AttrFile<Vec<Pid>, Pid> + '_>

List of thread group IDs in the cgroup. This list is not guaranteed to be sorted or free of duplicate TGIDs, and userspace should sort/uniquify the list if this property is required. Writing a thread group ID into this file moves all threads in that group into this cgroup.

Source

fn tasks(&self) -> Box<dyn AttrFile<Vec<Pid>, Pid> + '_>

List of tasks (by PID) attached to that cgroup. This list is not guaranteed to be sorted. Writing a thread ID into this file moves the thread into this cgroup.

Source

fn notify_on_release(&self) -> Box<dyn AttrFile<bool> + '_>

Flag if run the release agent on exit?

Source

fn release_agent(&self) -> Box<dyn AttrFile<PathBuf, Path> + '_>

The path to use for release notifications (exists in the top cgroup only)

Implementors§