summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2016-10-25 00:07:29 +0000
committerdlg <dlg@openbsd.org>2016-10-25 00:07:29 +0000
commit75088f8d6513d4bd37408b22cbda174d65104b2d (patch)
tree183b7c4d18ed54d5f3c3fdca6a64809947880171
parentRemove now unused disable_l2_if_needed interface. (diff)
downloadwireguard-openbsd-75088f8d6513d4bd37408b22cbda174d65104b2d.tar.xz
wireguard-openbsd-75088f8d6513d4bd37408b22cbda174d65104b2d.zip
bluhm@ suggests that it is enough to say that the allocations will
be zeroed, and how they're zeroed is an implementation detail that doesnt really help the reader.
-rw-r--r--share/man/man9/counters_alloc.98
-rw-r--r--share/man/man9/cpumem_get.919
2 files changed, 8 insertions, 19 deletions
diff --git a/share/man/man9/counters_alloc.9 b/share/man/man9/counters_alloc.9
index ad1bbd56999..26ca0f4f42a 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.3 2016/10/25 00:03:40 dlg Exp $
+.\" $OpenBSD: counters_alloc.9,v 1.4 2016/10/25 00:07:29 dlg Exp $
.\"
.\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
.\"
@@ -108,6 +108,7 @@ The allocation is identified by
.Fa NAME
and provides memory for the number of counters specified by
.Fa ncounters .
+The counters will be initialised to zero.
.Pp
.Fn COUNTERS_BOOT_INITIALIZER
is used to initialise a cpumem pointer with the memory that was previously
@@ -132,10 +133,7 @@ The
argument specifies the type of memory that the counters will be
allocated as via
.Xr malloc 9 .
-The memory will be zeroed on allocation by passing
-.Fn M_ZERO
-to
-.Xr malloc 9 .
+The memory will be zeroed on allocation.
.Pp
Counters that have been allocated with
.Fn COUNTERS_BOOT_MEMORY
diff --git a/share/man/man9/cpumem_get.9 b/share/man/man9/cpumem_get.9
index 95ee3cbe676..687b213207a 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.6 2016/10/25 00:03:40 dlg Exp $
+.\" $OpenBSD: cpumem_get.9,v 1.7 2016/10/25 00:07:29 dlg Exp $
.\"
.\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org>
.\"
@@ -70,11 +70,7 @@ uni-processor systems.
allocates memory for each CPU from the
.Fa pp
pool.
-The memory will be zeroed on allocation by passing
-.Dv PR_ZERO
-to
-.Xr pool_get 9
-internally.
+The memory will be zeroed on allocation.
.Pp
.Fn cpumem_put
returns each CPUs memory allocation referenced by
@@ -90,10 +86,7 @@ bytes of
.Fa type
memory for each CPU using
.Xr malloc 9 .
-The memory will be zeroed on allocation by passing
-.Fn M_ZERO
-to
-.Xr malloc 9 .
+The memory will be zeroed on allocation.
.Pp
.Fn cpumem_free
returns each CPU's memory allocation referenced by
@@ -124,6 +117,7 @@ The allocation is identified by
and provides the number of bytes specified by the
.Fa sz
argument.
+The memory will be initialised to zeros.
.Pp
.Fn CPUMEM_BOOT_INITIALIZER
is used to initialise a cpumem pointer with the memory that was previously
@@ -147,10 +141,7 @@ The
argument specifies the type of memory that the counters will be
allocated as via
.Xr malloc 9 .
-The memory will be zeroed on allocation by passing
-.Fn M_ZERO
-to
-.Xr malloc 9 .
+The memory will be zeroed on allocation.
.Pp
Per CPU memory that has been allocated with
.Fn CPUMEM_BOOT_MEMORY