Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/sysctl.9
Show First 20 Lines • Show All 312 Lines • ▼ Show 20 Lines | |||||
.Fn SYSCTL_ADD_PROC | .Fn SYSCTL_ADD_PROC | ||||
function. | function. | ||||
.It Fa format | .It Fa format | ||||
A pointer to a string | A pointer to a string | ||||
which specifies the format of the OID in a symbolic way. | which specifies the format of the OID in a symbolic way. | ||||
This format is used as a hint by | This format is used as a hint by | ||||
.Xr sysctl 8 | .Xr sysctl 8 | ||||
to apply proper data formatting for display purposes. | to apply proper data formatting for display purposes. | ||||
Currently used format names are: | .Pp | ||||
.Dq N | Current formats: | ||||
for node, | .Bl -tag -width "S,TYPE" -compact -offset indent | ||||
.Dq A | .It Cm N | ||||
for | node | ||||
.Li "char *" , | .It Cm A | ||||
.Dq I | .Li "char *" | ||||
for | .It Cm I | ||||
.Li "int" , | .Li "int" | ||||
.Dq IU | .It Cm IK Ns Op Ar n | ||||
for | temperature in Kelvin, multiplied by an optional single digit | ||||
.Li "unsigned int" , | power of ten scaling factor: 1 (default) gives deciKelvin, 0 gives Kelvin, 3 | ||||
.Dq L | gives milliKelvin | ||||
for | .It Cm IU | ||||
.Li "long" , | .Li "unsigned int" | ||||
.Dq LU | .It Cm L | ||||
for | .Li "long" | ||||
.Li "unsigned long" , | .It Cm LU | ||||
.Dq Q | .Li "unsigned long" | ||||
for | .It Cm Q | ||||
.Li "quad_t" , | .Li "quad_t" | ||||
.Dq QU | .It Cm QU | ||||
for | |||||
.Li "u_quad_t" | .Li "u_quad_t" | ||||
and | .It Cm "S,TYPE" | ||||
.Dq S,TYPE | |||||
for | |||||
.Li "struct TYPE" | .Li "struct TYPE" | ||||
structures. | structures | ||||
.El | |||||
.It Fa descr | .It Fa descr | ||||
A pointer to a textual description of the OID. | A pointer to a textual description of the OID. | ||||
.El | .El | ||||
.Sh CREATING ROOT NODES | .Sh CREATING ROOT NODES | ||||
Sysctl MIBs or OIDs are created in a hierarchical tree. | Sysctl MIBs or OIDs are created in a hierarchical tree. | ||||
The nodes at the bottom of the tree are called root nodes, and have no | The nodes at the bottom of the tree are called root nodes, and have no | ||||
parent OID. | parent OID. | ||||
To create bottom tree nodes the | To create bottom tree nodes the | ||||
▲ Show 20 Lines • Show All 357 Lines • Show Last 20 Lines |