Skip to main content

select_ops

Function select_ops 

Source
pub fn select_ops(
    name: &str,
    open: &mut OpenObject,
    object: &[u8],
    cgroup_ops: Option<&'static str>,
    dump_len: u32,
) -> Result<&'static str>
Expand description

Pick the struct_ops map of the object name the kernel can take: the one whose cgroup callbacks it knows, cgroup_ops, or rust_ops without the callbacks it lacks, which are zeroed in the map’s initial value. The exit dump buffer is sized to dump_len and the map told so. Returns the map’s name.