diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2016-10-25 00:07:30 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2016-10-25 00:07:30 +0000 |
commit | 0b551634c4d4409ef13be1b0886915f6922e3f5b (patch) | |
tree | b13db19d34d430778b5e091f615b0bbfe29031fe /share | |
parent | 16574b7478fa8765b4903660d269865dbafda487 (diff) |
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.
Diffstat (limited to 'share')
-rw-r--r-- | share/man/man9/counters_alloc.9 | 8 | ||||
-rw-r--r-- | share/man/man9/cpumem_get.9 | 19 |
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 |