sysctlinfo is a new interface to explore the sysctl MIB-Tree and to pass theobjects info of the nodes to the userland,to userland,
https://papers.freebsd.org/2020/bsdcan/siciliano-sysctlinfo/
https://gitlab.com/alfix/sysctlinfo
briefly:
https://github.com/freebsd/freebsd-quarterly/blob/master/2019q3/sysctlinfo.mdAfter a refactoring the kernel computation is ~100% more efficient than the undocumented interface to pass all info about an object to userland.
README, manual, examples, tests and converted tools:
https://gitlab.com/alfix/sysctlinfo
(The next step is to add a new node to allow sysctlbyname() to manage a CTLTYPE_NODE with a no-NULL handler, example "kern.proc.pid.<pid>" and a name-level with just '\0', example "security.jail.param.allow.mount." Link: https://gitlab.com/alfix/sysctlbyname-improved).Currently it is used by:
sysutils/sysctlbyname-improved-kmod
devel/libsysctlmibinfo2
audio/mixertui
sysutils/nsysctl
deskutils/sysctlview
sysctl-mib-html (https://gitlab.com/alfix/sysctl-mib-html)