pub fn get_cpu_affinity(
tid: Option<Tid>,
cpus: &mut CpuSet,
) -> Result<(), Errno>Expand description
Lit l’affinité CPU courante d’une tâche (sched_getaffinity(2)) dans
cpus (buffer fourni, zéro allocation). tid = None cible la tâche appelante.
§Errors
- [
Errno::ESRCH] : aucune tâche ne porte cetid. - [
Errno::EINVAL] : taille de masque incohérente (ne se produit pas avec unCpuSetde [air_sys_types::system::CPU_SETSIZE] bits).