Skip to main content

set_current_affinity

Function set_current_affinity 

Source
pub fn set_current_affinity(cpumask: AxCpuMask) -> bool
Expand description

Set the affinity for the current task. AxCpuMask is used to specify the CPU affinity. Returns true if the affinity is set successfully.

TODO: support set the affinity for other tasks.