diff options
author | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-05-28 17:53:08 +0000 |
---|---|---|
committer | Dmitry Chagin <dchagin@FreeBSD.org> | 2022-06-17 19:35:31 +0000 |
commit | 089a76e915e13446ed09d0c9854474461c398389 (patch) | |
tree | 4e2cb40c799578952959a501421b3d6d25c40d98 /sys/compat/freebsd32 | |
parent | 7aeec4eea8523210598152bd21bc0d8ccea9a97d (diff) |
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
(cherry picked from commit d46174cd8838b86b9fe956b80c82bd238c302b2e)
Diffstat (limited to 'sys/compat/freebsd32')
-rw-r--r-- | sys/compat/freebsd32/freebsd32_misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/compat/freebsd32/freebsd32_misc.c b/sys/compat/freebsd32/freebsd32_misc.c index 9b54653d4489..14f2e2a4b752 100644 --- a/sys/compat/freebsd32/freebsd32_misc.c +++ b/sys/compat/freebsd32/freebsd32_misc.c @@ -3311,7 +3311,7 @@ freebsd32_cpuset_getaffinity(struct thread *td, struct freebsd32_cpuset_getaffinity_args *uap) { - return (kern_cpuset_getaffinity(td, uap->level, uap->which, + return (user_cpuset_getaffinity(td, uap->level, uap->which, PAIR32TO64(id_t,uap->id), uap->cpusetsize, uap->mask, &cpuset_copy32_cb)); } |