[][src]Function linux::syscall::sched_getaffinity

pub fn sched_getaffinity(tid: pid_t, set: &mut [d8]) -> c_int

Retrieves a thread's CPU affinity mask.

[argument, tid] The id of the thread.

[argument, set] The buffer into which the mask will be stored.

[return_value] Returns success or an error value.

= Remarks

The set size must be a multiple of the size of k_long.

= See also

  • link:man:sched_getaffinity(2)