Skip to main content

read_v2_memory_limit

Function read_v2_memory_limit 

Source
fn read_v2_memory_limit(
    cgroups: &[CgroupEntry],
    mounts: &[Mountinfo],
) -> Option<MemoryLimit>
Available on Linux only.
Expand description

Finds the mountpoint corresponding to the provided cgroup v2, and reads the memory limits within.