HomeFreeBSD

Add sysctlbyname system call

Description

Add sysctlbyname system call

Previously userspace would issue one syscall to resolve the sysctl and then
another one to actually use it. Do it all in one trip.

Fallback is provided in case newer libc happens to be running on an older
kernel.

Submitted by: Pawel Biernacki
Reported by: kib, brooks
Differential Revision: https://reviews.freebsd.org/D17282

Details

Committed
mjgSep 3 2019, 4:16 AM
Differential Revision
D17282: new syscall: __sysctlbyname
Parents
rS351728: Add a sysctl to dump kernel mappings and their properties on amd64.
Branches
Unknown
Tags
Unknown