Retrieves a thread's CPU affinity mask.
fn sched_getaffinity(tid: i32, set: &mut [u8]) -> i32
| Name | Description |
|---|---|
| tid | The id of the thread. |
| set | The buffer into which the mask will be stored. |
Returns success or an error value.
The set size must be a multiple of the size of k_long.