Skip to main content

setup_memory_policy

Function setup_memory_policy 

Source
pub fn setup_memory_policy(
    memory_policy: &Option<LinuxMemoryPolicy>,
    syscall: &dyn Syscall,
) -> Result<(), MemoryPolicyError>
Expand description

Configure the memory policy for the process using set_mempolicy(2).

See: https://man7.org/linux/man-pages/man2/set_mempolicy.2.html