Two sysctl system calls are provided:
Function
Description
sysctl()
Get/set a value identified by its OID
sysctlbyname()
Get/set a value identified by its name
For details, see the sysctl(1M) man page.