summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2014-08-02 18:37:08 +0000
committerhselasky <hselasky@FreeBSD.org>2014-08-02 18:37:08 +0000
commit4c6031ef81b450b68a0e6dd6e8bce0656fc996b8 (patch)
tree68b9562b366a8ae7cd55e67988fd5db3108c3856
parenteacf4d0259b7c132d64a157653d7b774d195252c (diff)
downloadFreeBSD-src-4c6031ef81b450b68a0e6dd6e8bce0656fc996b8.zip
FreeBSD-src-4c6031ef81b450b68a0e6dd6e8bce0656fc996b8.tar.gz
- Spelling corrections
Suggested by: Garrett Cooper <yaneurabeya@gmail.com> PR: 192101
-rw-r--r--share/man/man9/sysctl.912
1 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/sysctl.9 b/share/man/man9/sysctl.9
index 4886dac..8bc92e4 100644
--- a/share/man/man9/sysctl.9
+++ b/share/man/man9/sysctl.9
@@ -243,22 +243,22 @@ See
for how to create a new sysctl context.
Programmers are strongly advised to use contexts to organize the
dynamic OIDs which they create because when a context is destroyed all
-belonging sysctls are destroyed aswell.
+belonging sysctls are destroyed as well.
This makes the sysctl cleanup code much simpler.
-Else deletion of all created OIDs is required at module unload typically.
+Else deletion of all created OIDs is required at module unload.
.It Fa parent
A pointer to a
.Li struct sysctl_oid_list ,
which is the head of the parent's list of children.
-This pointer is retrieved by using the
+This pointer is retrieved using the
.Fn SYSCTL_STATIC_CHILDREN
macro for static sysctls and the
.Fn SYSCTL_CHILDREN
macro for dynamic sysctls.
-To get the parent of an OID the
+The
.Fn SYSCTL_PARENT
-macro shall be used.
-If there is no parent this macro returns NULL.
+macro can be used to get the parent of an OID.
+The macro returns NULL if there is no parent.
.It Fa number
The OID number that will be assigned to this OID.
In almost all cases this should be set to
OpenPOWER on IntegriCloud