pub fn set_current_affinity(cpumask: AxCpuMask) -> boolExpand 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.