pub fn sched_setaffinity(pid: pid_t, set: *const cpu_set_t) !void
pid: pid_t
set: *const cpu_set_t
2796 2797 2798 2799 2800 2801 2802 2803 2804
pub fn sched_setaffinity(pid: pid_t, set: *const cpu_set_t) !void { const size = @sizeOf(cpu_set_t); const rc = syscall3(.sched_setaffinity, @as(u32, @bitCast(pid)), size, @intFromPtr(set)); switch (errno(rc)) { .SUCCESS => return, else => |err| return std.posix.unexpectedErrno(err), } }