freebsd-dev/sys/compat/linux
Dmitry Chagin f35093f8d6 Use Linux semantics for the thread affinity syscalls.
Linux has more tolerant checks of the user supplied cpuset_t's.

Minimum cpuset_t size that the Linux kernel permits in case of
getaffinity() is the maximum CPU id, present in the system / NBBY,
the maximum size is not limited.
For setaffinity(), Linux does not limit the size of the user-provided
cpuset_t, internally using only the meaningful part of the set, where
the upper bound is the maximum CPU id, present in the system, no larger
than the size of the kernel cpuset_t.
Unlike FreeBSD, Linux ignores high bits if set in the setaffinity(),
so clear it in the sched_setaffinity() and Linuxulator itself.

Reviewed by:		Pau Amma (man pages)
In collaboration with:	jhb
Differential revision:	https://reviews.freebsd.org/D34849
MFC after:		2 weeks
2022-05-11 10:36:01 +03:00
..
check_error.d linux(4): Eliminating remnants of futex sdt. 2021-07-29 12:52:36 +03:00
check_internal_locks.d
linux_common.c linux(4): Reimplement futexes using umtx. 2021-07-29 12:43:48 +03:00
linux_common.h linux(4): Cleanup empty lines. 2022-03-31 21:23:12 +03:00
linux_dtrace.h
linux_dummy.c linux(4): Add epoll_pwai2 syscall. 2022-04-26 19:35:59 +03:00
linux_elf32.c linux(4): implement coredump support 2021-06-30 22:45:06 +01:00
linux_elf64.c linux(4): implement coredump support 2021-06-30 22:45:06 +01:00
linux_elf.c linux: Drop some unnecessary includes 2021-11-13 03:26:32 +00:00
linux_elf.h linux(4): implement coredump support 2021-06-30 22:45:06 +01:00
linux_emul.c linux(4): Cleanup empty lines. 2022-03-31 21:23:12 +03:00
linux_emul.h linprocfs: Add /proc/self/oom_score_adj. 2022-03-31 21:04:44 +03:00
linux_errno.c
linux_errno.h linux: Fix ptrace panic with ERESTART 2021-10-29 14:55:59 +01:00
linux_errno.inc
linux_event.c linux(4): Add a helper intended for copying timespec's from the userspace. 2022-05-08 16:16:47 +03:00
linux_event.h Drop rdivacky@ "All rights reserved" from linux_event. 2021-07-20 10:06:16 +03:00
linux_file.c linux(4): Fixed offset miscalculation in the preadv/pwritev syscalls. 2022-05-09 21:11:37 +03:00
linux_file.h linux(4): Add AT_NO_AUTOMOUNT to statx. 2022-03-25 17:54:23 +03:00
linux_fork.c linux(4): Fix "set but not used" warnings 2021-11-29 16:45:16 +00:00
linux_fork.h linux(4): Add CLONE_PIDFD option bit. 2021-08-12 11:55:24 +03:00
linux_futex.c linux(4); Style. 2022-05-09 21:16:48 +03:00
linux_futex.h linux(4): Handle FUTEX_LOCK_PI2 oeration. 2021-07-29 12:55:02 +03:00
linux_getcwd.c linux(4): make getcwd(2) return ERANGE instead of ENOMEM 2021-03-12 15:31:45 +00:00
linux_ioctl.c linux: add sysctl to pass untranslated interface names 2022-01-17 09:35:15 +00:00
linux_ioctl.h linux: Improve debugging by recognizing TIOCGPTPEER 2022-01-10 15:36:11 +00:00
linux_ipc64.h
linux_ipc.c linux(4): Add a helper intended for copying timespec's from the userspace. 2022-05-08 16:16:47 +03:00
linux_ipc.h linux(4): Implement semtimedop syscalls. 2022-05-06 20:02:59 +03:00
linux_mib.c linux: Make compat.linux.preserve_vstatus default to 1 2022-01-17 08:45:01 +00:00
linux_mib.h linux(4): Rid unused defines from linux_mib. 2022-03-31 20:45:12 +03:00
linux_misc.c Use Linux semantics for the thread affinity syscalls. 2022-05-11 10:36:01 +03:00
linux_misc.h linprocfs: Add /proc/self/oom_score_adj. 2022-03-31 21:04:44 +03:00
linux_mmap.c Use vmspace->vm_stacktop in place of sv_usrstack in more places. 2022-02-14 10:57:30 -08:00
linux_mmap.h
linux_persona.h
linux_ptrace.c Add security.bsd.allow_ptrace sysctl 2022-01-22 19:36:56 +02:00
linux_rseq.c linux(4): Add a simple rseq syscall implementation. 2022-04-26 19:35:56 +03:00
linux_signal.c linux(4): Add a helper intended for copying timespec's from the userspace. 2022-05-08 16:16:47 +03:00
linux_signal.h linux(4): Add copyin_sigset() helper. 2022-04-26 19:35:57 +03:00
linux_socket.c linux(4): Add a helper intended for copying timespec's from the userspace. 2022-05-08 16:16:47 +03:00
linux_socket.h linux(4): Handle SO_DOMAIN in getsockopt syscall. 2022-04-11 23:31:28 +03:00
linux_stats.c linux(4): Cleanup empty lines. 2022-03-31 21:23:12 +03:00
linux_sysctl.c linux: plug a set-but-not-used var 2022-04-19 12:45:57 +00:00
linux_sysproto.h
linux_time.c linux(4): Add a helper intended for copying timespec's from the userspace. 2022-05-08 16:16:47 +03:00
linux_timer.c linux(4): Implement timer_settime64 syscall. 2022-05-04 13:06:49 +03:00
linux_timer.h linux(4): Add a helper intended for copying timespec's from the userspace. 2022-05-08 16:16:47 +03:00
linux_uid16.c linux: remove the always curthread argument from lconvpath 2021-11-25 22:50:42 +00:00
linux_util.c linux: add sysctl to pass untranslated interface names 2022-01-17 09:35:15 +00:00
linux_util.h linux: add sysctl to pass untranslated interface names 2022-01-17 09:35:15 +00:00
linux_vdso_gtod.inc linux(4): Use the right function to get the bit index in vdso binuptime. 2022-05-08 17:20:52 +03:00
linux_vdso.c Drop "All rights reserved" from my copyright statements. 2021-07-20 10:05:50 +03:00
linux_vdso.h Drop "All rights reserved" from my copyright statements. 2021-07-20 10:05:50 +03:00
linux_videodev2_compat.h
linux_videodev_compat.h
linux.c linux(4): Microoptimize bsd_to_linux_sockaddr(). 2022-04-25 10:21:20 +03:00
linux.h linux: add sysctl to pass untranslated interface names 2022-01-17 09:35:15 +00:00
stats_timing.d
trace_futexes.d