Function lrs::syscall::sched_getaffinity

Retrieves a thread's CPU affinity mask.

Syntax

fn sched_getaffinity(tid: i32, set: &mut [u8]) -> i32

Arguments

NameDescription
tid

The id of the thread.

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