Changeset View
Changeset View
Standalone View
Standalone View
head/share/man/man9/sysctl.9
Show All 19 Lines | |||||
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd June 1, 2018 | .Dd February 25, 2019 | ||||
.Dt SYSCTL 9 | .Dt SYSCTL 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm SYSCTL_DECL , | .Nm SYSCTL_DECL , | ||||
.Nm SYSCTL_ADD_BOOL , | |||||
.Nm SYSCTL_ADD_COUNTER_U64 , | |||||
.Nm SYSCTL_ADD_COUNTER_U64_ARRAY , | |||||
.Nm SYSCTL_ADD_INT , | .Nm SYSCTL_ADD_INT , | ||||
.Nm SYSCTL_ADD_LONG , | .Nm SYSCTL_ADD_LONG , | ||||
.Nm SYSCTL_ADD_NODE , | .Nm SYSCTL_ADD_NODE , | ||||
.Nm SYSCTL_ADD_NODE_WITH_LABEL , | .Nm SYSCTL_ADD_NODE_WITH_LABEL , | ||||
.Nm SYSCTL_ADD_OPAQUE , | .Nm SYSCTL_ADD_OPAQUE , | ||||
.Nm SYSCTL_ADD_PROC , | .Nm SYSCTL_ADD_PROC , | ||||
.Nm SYSCTL_ADD_QUAD , | .Nm SYSCTL_ADD_QUAD , | ||||
.Nm SYSCTL_ADD_ROOT_NODE , | .Nm SYSCTL_ADD_ROOT_NODE , | ||||
.Nm SYSCTL_ADD_S8 , | .Nm SYSCTL_ADD_S8 , | ||||
.Nm SYSCTL_ADD_S16 , | .Nm SYSCTL_ADD_S16 , | ||||
.Nm SYSCTL_ADD_S32 , | .Nm SYSCTL_ADD_S32 , | ||||
.Nm SYSCTL_ADD_S64 , | .Nm SYSCTL_ADD_S64 , | ||||
.Nm SYSCTL_ADD_SBINTIME_MSEC , | |||||
.Nm SYSCTL_ADD_SBINTIME_USEC , | |||||
.Nm SYSCTL_ADD_STRING , | .Nm SYSCTL_ADD_STRING , | ||||
.Nm SYSCTL_ADD_STRUCT , | .Nm SYSCTL_ADD_STRUCT , | ||||
.Nm SYSCTL_ADD_U8 , | .Nm SYSCTL_ADD_U8 , | ||||
.Nm SYSCTL_ADD_U16 , | .Nm SYSCTL_ADD_U16 , | ||||
.Nm SYSCTL_ADD_U32 , | .Nm SYSCTL_ADD_U32 , | ||||
.Nm SYSCTL_ADD_U64 , | .Nm SYSCTL_ADD_U64 , | ||||
.Nm SYSCTL_ADD_UAUTO , | .Nm SYSCTL_ADD_UAUTO , | ||||
.Nm SYSCTL_ADD_UINT , | .Nm SYSCTL_ADD_UINT , | ||||
.Nm SYSCTL_ADD_ULONG , | .Nm SYSCTL_ADD_ULONG , | ||||
.Nm SYSCTL_ADD_UQUAD , | .Nm SYSCTL_ADD_UQUAD , | ||||
.Nm SYSCTL_ADD_UMA_CUR , | |||||
.Nm SYSCTL_ADD_UMA_MAX , | |||||
.Nm SYSCTL_CHILDREN , | .Nm SYSCTL_CHILDREN , | ||||
.Nm SYSCTL_STATIC_CHILDREN , | .Nm SYSCTL_STATIC_CHILDREN , | ||||
.Nm SYSCTL_NODE_CHILDREN , | .Nm SYSCTL_NODE_CHILDREN , | ||||
.Nm SYSCTL_PARENT , | .Nm SYSCTL_PARENT , | ||||
.Nm SYSCTL_BOOL , | |||||
.Nm SYSCTL_COUNTER_U64 , | |||||
.Nm SYSCTL_COUNTER_U64_ARRAY , | |||||
.Nm SYSCTL_INT , | .Nm SYSCTL_INT , | ||||
.Nm SYSCTL_INT_WITH_LABEL , | .Nm SYSCTL_INT_WITH_LABEL , | ||||
.Nm SYSCTL_LONG , | .Nm SYSCTL_LONG , | ||||
.Nm SYSCTL_NODE , | .Nm SYSCTL_NODE , | ||||
.Nm SYSCTL_NODE_WITH_LABEL , | .Nm SYSCTL_NODE_WITH_LABEL , | ||||
.Nm SYSCTL_OPAQUE , | .Nm SYSCTL_OPAQUE , | ||||
.Nm SYSCTL_PROC , | .Nm SYSCTL_PROC , | ||||
.Nm SYSCTL_QUAD , | .Nm SYSCTL_QUAD , | ||||
.Nm SYSCTL_ROOT_NODE , | .Nm SYSCTL_ROOT_NODE , | ||||
.Nm SYSCTL_S8 , | .Nm SYSCTL_S8 , | ||||
.Nm SYSCTL_S16 , | .Nm SYSCTL_S16 , | ||||
.Nm SYSCTL_S32 , | .Nm SYSCTL_S32 , | ||||
.Nm SYSCTL_S64 , | .Nm SYSCTL_S64 , | ||||
.Nm SYSCTL_SBINTIME_MSEC , | |||||
.Nm SYSCTL_SBINTIME_USEC , | |||||
.Nm SYSCTL_STRING , | .Nm SYSCTL_STRING , | ||||
.Nm SYSCTL_STRUCT , | .Nm SYSCTL_STRUCT , | ||||
.Nm SYSCTL_U8 , | .Nm SYSCTL_U8 , | ||||
.Nm SYSCTL_U16 , | .Nm SYSCTL_U16 , | ||||
.Nm SYSCTL_U32 , | .Nm SYSCTL_U32 , | ||||
.Nm SYSCTL_U64 , | .Nm SYSCTL_U64 , | ||||
.Nm SYSCTL_UINT , | .Nm SYSCTL_UINT , | ||||
.Nm SYSCTL_ULONG , | .Nm SYSCTL_ULONG , | ||||
.Nm SYSCTL_UQUAD | .Nm SYSCTL_UQUAD , | ||||
.Nm SYSCTL_UMA_CUR , | |||||
.Nm SYSCTL_UMA_MAX | |||||
.Nd Dynamic and static sysctl MIB creation functions | .Nd Dynamic and static sysctl MIB creation functions | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.In sys/param.h | .In sys/param.h | ||||
.In sys/sysctl.h | .In sys/sysctl.h | ||||
.Fn SYSCTL_DECL name | .Fn SYSCTL_DECL name | ||||
.Ft struct sysctl_oid * | .Ft struct sysctl_oid * | ||||
.Fo SYSCTL_ADD_BOOL | |||||
.Fa "struct sysctl_ctx_list *ctx" | |||||
.Fa "struct sysctl_oid_list *parent" | |||||
.Fa "int number" | |||||
.Fa "const char *name" | |||||
.Fa "int ctlflags" | |||||
.Fa "bool *ptr" | |||||
.Fa "uint8_t val" | |||||
.Fa "const char *descr" | |||||
.Fc | |||||
.Ft struct sysctl_oid * | |||||
.Fo SYSCTL_ADD_COUNTER_U64 | |||||
.Fa "struct sysctl_ctx_list *ctx" | |||||
.Fa "struct sysctl_oid_list *parent" | |||||
.Fa "int number" | |||||
.Fa "const char *name" | |||||
.Fa "int ctlflags" | |||||
.Fa "counter_u64_t *ptr" | |||||
.Fa "const char *descr" | |||||
.Fc | |||||
.Ft struct sysctl_oid * | |||||
.Fo SYSCTL_ADD_COUNTER_U64_ARRAY | |||||
.Fa "struct sysctl_ctx_list *ctx" | |||||
.Fa "struct sysctl_oid_list *parent" | |||||
.Fa "int number" | |||||
.Fa "const char *name" | |||||
.Fa "int ctlflags" | |||||
.Fa "counter_u64_t *ptr" | |||||
.Fa "intmax_t len" | |||||
.Fa "const char *descr" | |||||
.Fc | |||||
.Ft struct sysctl_oid * | |||||
.Fo SYSCTL_ADD_INT | .Fo SYSCTL_ADD_INT | ||||
.Fa "struct sysctl_ctx_list *ctx" | .Fa "struct sysctl_ctx_list *ctx" | ||||
.Fa "struct sysctl_oid_list *parent" | .Fa "struct sysctl_oid_list *parent" | ||||
.Fa "int number" | .Fa "int number" | ||||
.Fa "const char *name" | .Fa "const char *name" | ||||
.Fa "int ctlflags" | .Fa "int ctlflags" | ||||
.Fa "int *ptr" | .Fa "int *ptr" | ||||
.Fa "int val" | .Fa "int val" | ||||
▲ Show 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | |||||
.Fa "int number" | .Fa "int number" | ||||
.Fa "const char *name" | .Fa "const char *name" | ||||
.Fa "int ctlflags" | .Fa "int ctlflags" | ||||
.Fa "int64_t *ptr" | .Fa "int64_t *ptr" | ||||
.Fa "int64_t val" | .Fa "int64_t val" | ||||
.Fa "const char *descr" | .Fa "const char *descr" | ||||
.Fc | .Fc | ||||
.Ft struct sysctl_oid * | .Ft struct sysctl_oid * | ||||
.Fo SYSCTL_ADD_SBINTIME_MSEC | |||||
.Fa "struct sysctl_ctx_list *ctx" | |||||
.Fa "struct sysctl_oid_list *parent" | |||||
.Fa "int number" | |||||
.Fa "const char *name" | |||||
.Fa "int ctlflags" | |||||
.Fa "sbintime_t *ptr" | |||||
.Fa "const char *descr" | |||||
.Fc | |||||
.Ft struct sysctl_oid * | |||||
.Fo SYSCTL_ADD_SBINTIME_USEC | |||||
.Fa "struct sysctl_ctx_list *ctx" | |||||
.Fa "struct sysctl_oid_list *parent" | |||||
.Fa "int number" | |||||
.Fa "const char *name" | |||||
.Fa "int ctlflags" | |||||
.Fa "sbintime_t *ptr" | |||||
.Fa "const char *descr" | |||||
.Fc | |||||
.Ft struct sysctl_oid * | |||||
.Fo SYSCTL_ADD_STRING | .Fo SYSCTL_ADD_STRING | ||||
.Fa "struct sysctl_ctx_list *ctx" | .Fa "struct sysctl_ctx_list *ctx" | ||||
.Fa "struct sysctl_oid_list *parent" | .Fa "struct sysctl_oid_list *parent" | ||||
.Fa "int number" | .Fa "int number" | ||||
.Fa "const char *name" | .Fa "const char *name" | ||||
.Fa "int ctlflags" | .Fa "int ctlflags" | ||||
.Fa "char *ptr" | .Fa "char *ptr" | ||||
.Fa "intptr_t len" | .Fa "intptr_t len" | ||||
▲ Show 20 Lines • Show All 81 Lines • ▼ Show 20 Lines | |||||
.Fa "struct sysctl_oid_list *parent" | .Fa "struct sysctl_oid_list *parent" | ||||
.Fa "int number" | .Fa "int number" | ||||
.Fa "const char *name" | .Fa "const char *name" | ||||
.Fa "int ctlflags" | .Fa "int ctlflags" | ||||
.Fa "uint64_t *ptr" | .Fa "uint64_t *ptr" | ||||
.Fa "const char *descr" | .Fa "const char *descr" | ||||
.Fc | .Fc | ||||
.Ft struct sysctl_oid * | .Ft struct sysctl_oid * | ||||
.Fo SYSCTL_ADD_UMA_CUR | |||||
.Fa "struct sysctl_ctx_list *ctx" | |||||
.Fa "struct sysctl_oid_list *parent" | |||||
.Fa "int number" | |||||
.Fa "const char *name" | |||||
.Fa "int ctlflags" | |||||
.Fa "uma_zone_t ptr" | |||||
.Fa "const char *descr" | |||||
.Fc | |||||
.Ft struct sysctl_oid * | |||||
.Fo SYSCTL_ADD_UMA_MAX | |||||
.Fa "struct sysctl_ctx_list *ctx" | |||||
.Fa "struct sysctl_oid_list *parent" | |||||
.Fa "int number" | |||||
.Fa "const char *name" | |||||
.Fa "int ctlflags" | |||||
.Fa "uma_zone_t ptr" | |||||
.Fa "const char *descr" | |||||
.Fc | |||||
.Fa "const char *descr" | |||||
.Ft struct sysctl_oid * | |||||
.Fo SYSCTL_ADD_UAUTO | .Fo SYSCTL_ADD_UAUTO | ||||
.Fa "struct sysctl_ctx_list *ctx" | .Fa "struct sysctl_ctx_list *ctx" | ||||
.Fa "struct sysctl_oid_list *parent" | .Fa "struct sysctl_oid_list *parent" | ||||
.Fa "int number" | .Fa "int number" | ||||
.Fa "const char *name" | .Fa "const char *name" | ||||
.Fa "int ctlflags" | .Fa "int ctlflags" | ||||
.Fa "void *ptr" | .Fa "void *ptr" | ||||
.Fa "const char *descr" | .Fa "const char *descr" | ||||
Show All 10 Lines | |||||
.Fo SYSCTL_NODE_CHILDREN | .Fo SYSCTL_NODE_CHILDREN | ||||
.Fa "parent" | .Fa "parent" | ||||
.Fa "name" | .Fa "name" | ||||
.Fc | .Fc | ||||
.Ft struct sysctl_oid * | .Ft struct sysctl_oid * | ||||
.Fo SYSCTL_PARENT | .Fo SYSCTL_PARENT | ||||
.Fa "struct sysctl_oid *oid" | .Fa "struct sysctl_oid *oid" | ||||
.Fc | .Fc | ||||
.Fn SYSCTL_BOOL parent number name ctlflags ptr val descr | |||||
.Fn SYSCTL_COUNTER_U64 parent number name ctlflags ptr descr | |||||
.Fn SYSCTL_COUNTER_U64_ARRAY parent number name ctlflags ptr len descr | |||||
.Fn SYSCTL_INT parent number name ctlflags ptr val descr | .Fn SYSCTL_INT parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_INT_WITH_LABEL parent number name ctlflags ptr val descr label | .Fn SYSCTL_INT_WITH_LABEL parent number name ctlflags ptr val descr label | ||||
.Fn SYSCTL_LONG parent number name ctlflags ptr val descr | .Fn SYSCTL_LONG parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_NODE parent number name ctlflags handler descr | .Fn SYSCTL_NODE parent number name ctlflags handler descr | ||||
.Fn SYSCTL_NODE_WITH_LABEL parent number name ctlflags handler descr label | .Fn SYSCTL_NODE_WITH_LABEL parent number name ctlflags handler descr label | ||||
.Fn SYSCTL_OPAQUE parent number name ctlflags ptr len format descr | .Fn SYSCTL_OPAQUE parent number name ctlflags ptr len format descr | ||||
.Fn SYSCTL_PROC parent number name ctlflags arg1 arg2 handler format descr | .Fn SYSCTL_PROC parent number name ctlflags arg1 arg2 handler format descr | ||||
.Fn SYSCTL_QUAD parent number name ctlflags ptr val descr | .Fn SYSCTL_QUAD parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_ROOT_NODE number name ctlflags handler descr | .Fn SYSCTL_ROOT_NODE number name ctlflags handler descr | ||||
.Fn SYSCTL_S8 parent number name ctlflags ptr val descr | .Fn SYSCTL_S8 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_S16 parent number name ctlflags ptr val descr | .Fn SYSCTL_S16 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_S32 parent number name ctlflags ptr val descr | .Fn SYSCTL_S32 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_S64 parent number name ctlflags ptr val descr | .Fn SYSCTL_S64 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_SBINTIME_MSEC parent number name ctlflags ptr descr | |||||
.Fn SYSCTL_SBINTIME_USEC parent number name ctlflags ptr descr | |||||
.Fn SYSCTL_STRING parent number name ctlflags arg len descr | .Fn SYSCTL_STRING parent number name ctlflags arg len descr | ||||
.Fn SYSCTL_STRUCT parent number name ctlflags ptr struct_type descr | .Fn SYSCTL_STRUCT parent number name ctlflags ptr struct_type descr | ||||
.Fn SYSCTL_U8 parent number name ctlflags ptr val descr | .Fn SYSCTL_U8 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_U16 parent number name ctlflags ptr val descr | .Fn SYSCTL_U16 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_U32 parent number name ctlflags ptr val descr | .Fn SYSCTL_U32 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_U64 parent number name ctlflags ptr val descr | .Fn SYSCTL_U64 parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_UINT parent number name ctlflags ptr val descr | .Fn SYSCTL_UINT parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_ULONG parent number name ctlflags ptr val descr | .Fn SYSCTL_ULONG parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_UQUAD parent number name ctlflags ptr val descr | .Fn SYSCTL_UQUAD parent number name ctlflags ptr val descr | ||||
.Fn SYSCTL_UMA_MAX parent number name ctlflags ptr descr | |||||
.Fn SYSCTL_UMA_CUR parent number name ctlflags ptr descr | |||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm SYSCTL | .Nm SYSCTL | ||||
kernel interface allows dynamic or static creation of | kernel interface allows dynamic or static creation of | ||||
.Xr sysctl 8 | .Xr sysctl 8 | ||||
MIB entries. | MIB entries. | ||||
All static sysctls are automatically destroyed when the module which | All static sysctls are automatically destroyed when the module which | ||||
they are part of is unloaded. | they are part of is unloaded. | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
Second callback argument for procedure sysctls. | Second callback argument for procedure sysctls. | ||||
.It Fa len | .It Fa len | ||||
The length of the data pointed to by the | The length of the data pointed to by the | ||||
.Fa ptr | .Fa ptr | ||||
argument. | argument. | ||||
For string type OIDs a length of zero means that | For string type OIDs a length of zero means that | ||||
.Xr strlen 3 | .Xr strlen 3 | ||||
will be used to get the length of the string at each access to the OID. | will be used to get the length of the string at each access to the OID. | ||||
For array type OIDs the length must be greater than zero. | |||||
.It Fa ptr | .It Fa ptr | ||||
Pointer to sysctl variable or string data. | Pointer to sysctl variable or string data. | ||||
For sysctl values the pointer can be SYSCTL_NULL_XXX_PTR which means the OID is read-only and the returned value should be taken from the | For sysctl values the pointer can be SYSCTL_NULL_XXX_PTR which means the OID is read-only and the returned value should be taken from the | ||||
.Fa val | .Fa val | ||||
argument. | argument. | ||||
.It Fa val | .It Fa val | ||||
If the | If the | ||||
.Fa ptr | .Fa ptr | ||||
▲ Show 20 Lines • Show All 112 Lines • ▼ Show 20 Lines | |||||
.Pa handler | .Pa handler | ||||
function. | function. | ||||
The handler is responsible for handling all read and write requests to | The handler is responsible for handling all read and write requests to | ||||
the OID. | the OID. | ||||
This OID type is especially useful if the kernel data is not easily | This OID type is especially useful if the kernel data is not easily | ||||
accessible, or needs to be processed before exporting. | accessible, or needs to be processed before exporting. | ||||
.Sh CREATING A STATIC SYSCTL | .Sh CREATING A STATIC SYSCTL | ||||
Static sysctls are declared using one of the | Static sysctls are declared using one of the | ||||
.Fn SYSCTL_BOOL , | |||||
.Fn SYSCTL_COUNTER_U64 , | |||||
.Fn SYSCTL_COUNTER_U64_ARRAY , | |||||
.Fn SYSCTL_INT , | .Fn SYSCTL_INT , | ||||
.Fn SYSCTL_INT_WITH_LABEL , | .Fn SYSCTL_INT_WITH_LABEL , | ||||
.Fn SYSCTL_LONG , | .Fn SYSCTL_LONG , | ||||
.Fn SYSCTL_NODE , | .Fn SYSCTL_NODE , | ||||
.Fn SYSCTL_NODE_WITH_LABEL , | .Fn SYSCTL_NODE_WITH_LABEL , | ||||
.Fn SYSCTL_OPAQUE , | .Fn SYSCTL_OPAQUE , | ||||
.Fn SYSCTL_PROC , | .Fn SYSCTL_PROC , | ||||
.Fn SYSCTL_QUAD , | .Fn SYSCTL_QUAD , | ||||
.Fn SYSCTL_ROOT_NODE , | .Fn SYSCTL_ROOT_NODE , | ||||
.Fn SYSCTL_S8 , | .Fn SYSCTL_S8 , | ||||
.Fn SYSCTL_S16 , | .Fn SYSCTL_S16 , | ||||
.Fn SYSCTL_S32 , | .Fn SYSCTL_S32 , | ||||
.Fn SYSCTL_S64 , | .Fn SYSCTL_S64 , | ||||
.Fn SYSCTL_SBINTIME_MSEC , | |||||
.Fn SYSCTL_SBINTIME_USEC , | |||||
.Fn SYSCTL_STRING , | .Fn SYSCTL_STRING , | ||||
.Fn SYSCTL_STRUCT , | .Fn SYSCTL_STRUCT , | ||||
.Fn SYSCTL_U8 , | .Fn SYSCTL_U8 , | ||||
.Fn SYSCTL_U16 , | .Fn SYSCTL_U16 , | ||||
.Fn SYSCTL_U32 , | .Fn SYSCTL_U32 , | ||||
.Fn SYSCTL_U64 , | .Fn SYSCTL_U64 , | ||||
.Fn SYSCTL_UINT , | .Fn SYSCTL_UINT , | ||||
.Fn SYSCTL_ULONG | .Fn SYSCTL_ULONG , | ||||
.Fn SYSCTL_UQUAD , | |||||
.Fn SYSCTL_UMA_CUR | |||||
or | or | ||||
.Fn SYSCTL_UQUAD | .Fn SYSCTL_UMA_MAX | ||||
macros. | macros. | ||||
.Sh CREATING A DYNAMIC SYSCTL | .Sh CREATING A DYNAMIC SYSCTL | ||||
Dynamic nodes are created using one of the | Dynamic nodes are created using one of the | ||||
.Fn SYSCTL_ADD_BOOL , | |||||
.Fn SYSCTL_ADD_COUNTER_U64 , | |||||
.Fn SYSCTL_ADD_COUNTER_U64_ARRAY , | |||||
.Fn SYSCTL_ADD_INT , | .Fn SYSCTL_ADD_INT , | ||||
.Fn SYSCTL_ADD_LONG , | .Fn SYSCTL_ADD_LONG , | ||||
.Fn SYSCTL_ADD_NODE , | .Fn SYSCTL_ADD_NODE , | ||||
.Fn SYSCTL_ADD_NODE_WITH_LABEL , | .Fn SYSCTL_ADD_NODE_WITH_LABEL , | ||||
.Fn SYSCTL_ADD_OPAQUE , | .Fn SYSCTL_ADD_OPAQUE , | ||||
.Fn SYSCTL_ADD_PROC , | .Fn SYSCTL_ADD_PROC , | ||||
.Fn SYSCTL_ADD_QUAD , | .Fn SYSCTL_ADD_QUAD , | ||||
.Fn SYSCTL_ADD_ROOT_NODE , | .Fn SYSCTL_ADD_ROOT_NODE , | ||||
.Fn SYSCTL_ADD_S8 , | .Fn SYSCTL_ADD_S8 , | ||||
.Fn SYSCTL_ADD_S16 , | .Fn SYSCTL_ADD_S16 , | ||||
.Fn SYSCTL_ADD_S32 , | .Fn SYSCTL_ADD_S32 , | ||||
.Fn SYSCTL_ADD_S64 , | .Fn SYSCTL_ADD_S64 , | ||||
.Fn SYSCTL_ADD_SBINTIME_MSEC , | |||||
.Fn SYSCTL_ADD_SBINTIME_USEC , | |||||
.Fn SYSCTL_ADD_STRING , | .Fn SYSCTL_ADD_STRING , | ||||
.Fn SYSCTL_ADD_STRUCT , | .Fn SYSCTL_ADD_STRUCT , | ||||
.Fn SYSCTL_ADD_U8 , | .Fn SYSCTL_ADD_U8 , | ||||
.Fn SYSCTL_ADD_U16 , | .Fn SYSCTL_ADD_U16 , | ||||
.Fn SYSCTL_ADD_U32 , | .Fn SYSCTL_ADD_U32 , | ||||
.Fn SYSCTL_ADD_U64 , | .Fn SYSCTL_ADD_U64 , | ||||
.Fn SYSCTL_ADD_UAUTO , | .Fn SYSCTL_ADD_UAUTO , | ||||
.Fn SYSCTL_ADD_UINT , | .Fn SYSCTL_ADD_UINT , | ||||
.Fn SYSCTL_ADD_ULONG , | .Fn SYSCTL_ADD_ULONG , | ||||
.Fn SYSCTL_ADD_UQUAD , | |||||
.Fn SYSCTL_ADD_UMA_CUR | |||||
or | or | ||||
.Fn SYSCTL_UQUAD | .Fn SYSCTL_ADD_UMA_MAX | ||||
functions. | functions. | ||||
See | See | ||||
.Xr sysctl_remove_oid 9 | .Xr sysctl_remove_oid 9 | ||||
or | or | ||||
.Xr sysctl_ctx_free 9 | .Xr sysctl_ctx_free 9 | ||||
for more information on how to destroy a dynamically created OID. | for more information on how to destroy a dynamically created OID. | ||||
.Sh CONTROL FLAGS | .Sh CONTROL FLAGS | ||||
For most of the above functions and macros, declaring a type as part | For most of the above functions and macros, declaring a type as part | ||||
▲ Show 20 Lines • Show All 294 Lines • Show Last 20 Lines |