diff options
author | des <des@FreeBSD.org> | 2004-02-27 17:13:42 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2004-02-27 17:13:42 +0000 |
commit | 1d0a3939bf9684ea2240fff1b5e6e066a3a3ffcb (patch) | |
tree | 507eba878742ef4e473571695e0dec03bfd275d2 /share/man | |
parent | 51a4ce2dff560c281dddeab0f377c10ef9b156e7 (diff) | |
download | FreeBSD-src-1d0a3939bf9684ea2240fff1b5e6e066a3a3ffcb.zip FreeBSD-src-1d0a3939bf9684ea2240fff1b5e6e066a3a3ffcb.tar.gz |
Document sysctl_move_oid().
Diffstat (limited to 'share/man')
-rw-r--r-- | share/man/man9/Makefile | 1 | ||||
-rw-r--r-- | share/man/man9/sysctl_add_oid.9 | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/share/man/man9/Makefile b/share/man/man9/Makefile index 325e9a9..db71672 100644 --- a/share/man/man9/Makefile +++ b/share/man/man9/Makefile @@ -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 \ diff --git a/share/man/man9/sysctl_add_oid.9 b/share/man/man9/sysctl_add_oid.9 index 46beea2..68d40a1 100644 --- a/share/man/man9/sysctl_add_oid.9 +++ b/share/man/man9/sysctl_add_oid.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. |