HomeFreeBSD

Finish cpuset_getaffinity() after f35093f8

Description

Finish cpuset_getaffinity() after f35093f8

Split cpuset_getaffinity() into a two counterparts, where the
user_cpuset_getaffinity() is intended to operate on the cpuset_t from
user va, while kern_cpuset_getaffinity() expects the cpuset from kernel
va.
Accordingly, the code that clears the high bits is moved to the
user_cpuset_getaffinity(). Linux sched_getaffinity() syscall returns
the size of set copied to the user-space and then glibc wrapper clears
the high bits.

MFC after: 2 weeks

Details

Provenance
dchaginAuthored on May 28 2022, 5:53 PM
Parents
rG31d1b816fe13: sysent: Get rid of bogus sys/sysent.h include.
Branches
Unknown
Tags
Unknown