pub fn preferred_path(entries: &[CgroupEntry]) -> Option<&str>Expand description
Choose which cgroup path to display when /proc/<pid>/cgroup lists several.
On a hybrid host (v1 controllers plus a v2 entry) the v2 line has an empty controller list and its path is the one shared by every hierarchy, so it is the honest answer for “which cgroup is this process in”. Falling back to the first entry keeps v1-only hosts working.