Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
The SYSCTL_STATIC_CHILDREN macro is passed as parent when connecting to a static node. A static node is part of the base system.
#include <sys/types.h> #include <sys/sysctl.h> struct sysctl_oid_list * SYSCTL_STATIC_CHILDREN(struct sysctl_oid_list OID_NAME);
This macro takes the name of the parent sysctl preceded by an underscore. And all dots must be replaced by an underscore. So to connect to hw.usb, you would use _hw_usb.
If SYSCTL_STATIC_CHILDREN(/* no argument */) is passed as parent to SYSCTL_ADD_NODE, a new top-level category will be created.