Skip to main content

container_of

Function container_of 

Source
pub fn container_of(pid: u32) -> Option<String>
Expand description

Container identity for a live PID by reading /proc/<pid>/cgroup. Any IO error (PID gone, foreign user, no procfs) reads as “host / unknown” → None; this never fails.