diff options
author | 2016-10-25 00:11:06 +0000 | |
---|---|---|
committer | 2016-10-25 00:11:06 +0000 | |
commit | 309a8aed564e6f525cf7b641de0444b9b5ad024d (patch) | |
tree | 0290185212e7002a9ee6d7430dd2ffd626d262ba | |
parent | bluhm@ suggests that it is enough to say that the allocations will (diff) | |
download | wireguard-openbsd-309a8aed564e6f525cf7b641de0444b9b5ad024d.tar.xz wireguard-openbsd-309a8aed564e6f525cf7b641de0444b9b5ad024d.zip |
bluhm@ suggested pointing out that cpumem_malloc_ncpus and
counters_alloc_ncpus preserve the contents of memory used by the
boot cpu.
-rw-r--r-- | share/man/man9/counters_alloc.9 | 5 | ||||
-rw-r--r-- | share/man/man9/cpumem_get.9 | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/share/man/man9/counters_alloc.9 b/share/man/man9/counters_alloc.9 index 26ca0f4f42a..d97139a3067 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.4 2016/10/25 00:07:29 dlg Exp $ +.\" $OpenBSD: counters_alloc.9,v 1.5 2016/10/25 00:11:06 dlg Exp $ .\" .\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org> .\" @@ -133,7 +133,8 @@ 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. +The counters on the boot CPU will be preserved, while the counters +for the additional CPU's 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 687b213207a..b7e8223011d 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.7 2016/10/25 00:07:29 dlg Exp $ +.\" $OpenBSD: cpumem_get.9,v 1.8 2016/10/25 00:11:06 dlg Exp $ .\" .\" Copyright (c) 2016 David Gwynne <dlg@openbsd.org> .\" @@ -141,7 +141,8 @@ 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. +The contents of the memory on the boot CPU will be preserved, while +the allocations for the additional CPU's will be zeroed on allocation. .Pp Per CPU memory that has been allocated with .Fn CPUMEM_BOOT_MEMORY |