summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2016-10-21 12:39:14 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2016-10-21 12:39:14 +0000
commitb7593d08857a9a266f96981837f3255fac7cf385 (patch)
tree86505a16b0975e05f5f1767279897a19d3de9a97 /share
parent667f1922a27b598c088faef5fcac234dbedc4845 (diff)
more tweaks; ok dlg
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/counters_alloc.919
-rw-r--r--share/man/man9/cpumem_get.95
2 files changed, 11 insertions, 13 deletions
diff --git a/share/man/man9/counters_alloc.9 b/share/man/man9/counters_alloc.9
index 252a7ff43b5..8e295937b2c 100644
--- a/share/man/man9/counters_alloc.9
+++ b/share/man/man9/counters_alloc.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: counters_alloc.9,v 1.1 2016/10/21 10:15:40 dlg Exp $
+.\" $OpenBSD: counters_alloc.9,v 1.2 2016/10/21 12:39:13 jmc Exp $
.\"
.\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
.\"
@@ -23,8 +23,7 @@
.Nm counters_enter ,
.Nm counters_leave ,
.Nm counters_read ,
-.Nm counters_zero ,
-.Nm cpumem_next
+.Nm counters_zero
.Nd per CPU counters
.Sh SYNOPSIS
.In sys/percpu.h
@@ -55,7 +54,7 @@ Updates to counters should be limited to addition or subtraction
of uint64_t values.
.Pp
An alternate implemention of the API is provided on uni-processor
-(i.e., when the kernel is not built with
+(i.e. when the kernel is not built with
.Dv MULTIPROCESSOR
defined)
systems that provides no overhead compared to direct access to a
@@ -88,11 +87,11 @@ must be passed to
.Fn counters_enter
provides access to the current CPU's set of counters referenced by
.Fa cm .
-The callers reference to the counters is held by
+The caller's reference to the counters is held by
.Fa ref .
.Pp
.Fn counters_leave
-indicates the end of access to the current CPU's set ouf counters referenced by
+indicates the end of access to the current CPU's set of counters referenced by
.Fa cm .
The reference held by
.Fa ref
@@ -109,13 +108,13 @@ The number of counters is specified with
.Fa ncounters .
.Pp
.Fn counters_zero
-iterates over each CPU's set of counters refereced by
-.Fa
+iterates over each CPU's set of counters referenced by
+.Fa cm
and zeroes them.
The number of counters is specified with
.Fa ncounters .
.Fn counters_zero
-itself does not prevent concurrent updates of the counters, it is
+itself does not prevent concurrent updates of the counters; it is
up to the caller to serialise this call with other actions.
.Sh CONTEXT
.Fn counters_alloc ,
@@ -144,7 +143,7 @@ set of counters.
.Fn counters_enter
returns a reference to the current CPU's set of counters.
.Sh SEE ALSO
-.Xr counters_get 9 ,
+.Xr cpumem_get 9 ,
.Xr malloc 9
.Sh HISTORY
The per CPU counter API first appeared in
diff --git a/share/man/man9/cpumem_get.9 b/share/man/man9/cpumem_get.9
index ba2c7ce24be..3d53bb5a8ce 100644
--- a/share/man/man9/cpumem_get.9
+++ b/share/man/man9/cpumem_get.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: cpumem_get.9,v 1.3 2016/10/21 09:38:07 dlg Exp $
+.\" $OpenBSD: cpumem_get.9,v 1.4 2016/10/21 12:39:13 jmc Exp $
.\"
.\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
.\"
@@ -174,10 +174,9 @@ or
.Dv NULL
if the iterator has run out of CPUs.
.Sh SEE ALSO
+.Xr counters_alloc 9 ,
.Xr malloc 9 ,
.Xr pool_get 9
-.\" .Xr curcpu()
-.\" .Xr counters_get()
.Sh HISTORY
The per CPU memory API first appeared in
.Ox 6.1 .