Document sysctl_move_oid().
This commit is contained in:
parent
21885af505
commit
c7ea226dc2
@ -756,6 +756,7 @@ MLINKS+=sysctl_add_oid.9 SYSCTL_ADD_INT.9 \
|
||||
sysctl_add_oid.9 SYSCTL_ADD_UINT.9 \
|
||||
sysctl_add_oid.9 SYSCTL_ADD_ULONG.9 \
|
||||
sysctl_add_oid.9 SYSCTL_CHILDREN.9 \
|
||||
sysctl_add_oid.9 sysctl_move_oid.9 \
|
||||
sysctl_add_oid.9 sysctl_remove_oid.9 \
|
||||
sysctl_add_oid.9 SYSCTL_STATIC_CHILDREN.9
|
||||
MLINKS+=sysctl_ctx_init.9 sysctl_ctx_entry_add.9 \
|
||||
|
@ -32,6 +32,7 @@
|
||||
.Os
|
||||
.Sh NAME
|
||||
.Nm sysctl_add_oid ,
|
||||
.Nm sysctl_move_oid ,
|
||||
.Nm sysctl_remove_oid
|
||||
.Nd runtime sysctl tree manipulation
|
||||
.Sh SYNOPSIS
|
||||
@ -51,6 +52,11 @@
|
||||
.Fa "const char *descr"
|
||||
.Fc
|
||||
.Ft int
|
||||
.Fo sysctl_move_oid
|
||||
.Fa "struct sysctl_oid *oidp"
|
||||
.Fa "struct sysctl_oid_list *parent"
|
||||
.Fc
|
||||
.Ft int
|
||||
.Fo sysctl_remove_oid
|
||||
.Fa "struct sysctl_oid *oidp"
|
||||
.Fa "int del"
|
||||
@ -333,6 +339,14 @@ A pointer to a textual description of the oid.
|
||||
.El
|
||||
.Pp
|
||||
The
|
||||
.Fn sysctl_move_oid
|
||||
function reparents an existing oid.
|
||||
The oid is assigned a new number as if it had been created with
|
||||
.Fa number
|
||||
set to
|
||||
.Dv OID_AUTO .
|
||||
.Pp
|
||||
The
|
||||
.Fn sysctl_remove_oid
|
||||
function removes a dynamically created oid from the tree,
|
||||
optionally freeing its resources.
|
||||
|
Loading…
Reference in New Issue
Block a user