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§
Sourcefn procs(&self) -> Box<dyn AttrFile<Vec<Pid>, Pid> + '_>
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.
Sourcefn tasks(&self) -> Box<dyn AttrFile<Vec<Pid>, Pid> + '_>
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.
Sourcefn notify_on_release(&self) -> Box<dyn AttrFile<bool> + '_>
fn notify_on_release(&self) -> Box<dyn AttrFile<bool> + '_>
Flag if run the release agent on exit?
Sourcefn release_agent(&self) -> Box<dyn AttrFile<PathBuf, Path> + '_>
fn release_agent(&self) -> Box<dyn AttrFile<PathBuf, Path> + '_>
The path to use for release notifications (exists in the top cgroup only)