On Sun, Jan 24, 2021 at 09:12:16AM +0100, Ivan wrote: > Can you send a C code example of obtaining sysctl vm.loadavg via sysctl(2) > function? > -- > Regards, > Ivan >
Youn have the source: grepping for VM_LOADAVG turns up usr.bin/top/machine.c: static int sysload_mib[] = {CTL_VM, VM_LOADAVG}; amongst others. -Otto