Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143388529
D29215.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29215.diff
View Options
diff --git a/share/man/man9/counter.9 b/share/man/man9/counter.9
--- a/share/man/man9/counter.9
+++ b/share/man/man9/counter.9
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd March 6, 2020
+.Dd March 11, 2021
.Dt COUNTER 9
.Os
.Sh NAME
@@ -98,10 +98,13 @@
.Va M_WAITOK .
If
.Va M_NOWAIT
-is specified the operation may fail.
+is specified the operation may fail and return
+.Dv NULL .
.It Fn counter_u64_free c
Free the previously allocated counter
.Fa c .
+It is safe to pass
+.Dv NULL .
.It Fn counter_u64_add c v
Add
.Fa v
diff --git a/share/man/man9/zone.9 b/share/man/man9/zone.9
--- a/share/man/man9/zone.9
+++ b/share/man/man9/zone.9
@@ -25,7 +25,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd August 20, 2020
+.Dd March 11, 2021
.Dt UMA 9
.Os
.Sh NAME
@@ -385,6 +385,22 @@
and
.Dv dtor
functions of the zone, respectively.
+The variants
+.Fn uma_zalloc_pcpu
+and
+.Fn uma_zfree_pcpu
+allocate and free
+.Va mp_ncpu
+shadow copies as described for
+.Dv UMA_ZONE_PCPU .
+If
+.Fa item
+is
+.Dv NULL ,
+then
+.Fn uma_zfree_pcpu
+does nothing.
+.Pp
The
.Fn uma_zalloc_domain
function allows callers to specify a fixed
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 30, 7:23 PM (3 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28103745
Default Alt Text
D29215.diff (1 KB)
Attached To
Mode
D29215: Document that uma_zfree_pcpu() allows NULL now
Attached
Detach File
Event Timeline
Log In to Comment