carta

sched_setaffinity(2) on Linux

The text 9572214a70ec, as Debian 12 (Bookworm) shipped it.

set and get a thread's CPU affinity mask

sched_setaffinity(2) on Linux now