Document that uma_zfree_pcpu() allows NULL now
While here also document that for counter_u64_free(). Reviewed by: rpokala@ MFC after: 1 week Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29215
This commit is contained in:
parent
b8f7267d49
commit
51dc8e7f68
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd March 6, 2020
|
.Dd March 11, 2021
|
||||||
.Dt COUNTER 9
|
.Dt COUNTER 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -98,10 +98,13 @@ or
|
|||||||
.Va M_WAITOK .
|
.Va M_WAITOK .
|
||||||
If
|
If
|
||||||
.Va M_NOWAIT
|
.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
|
.It Fn counter_u64_free c
|
||||||
Free the previously allocated counter
|
Free the previously allocated counter
|
||||||
.Fa c .
|
.Fa c .
|
||||||
|
It is safe to pass
|
||||||
|
.Dv NULL .
|
||||||
.It Fn counter_u64_add c v
|
.It Fn counter_u64_add c v
|
||||||
Add
|
Add
|
||||||
.Fa v
|
.Fa v
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.\"
|
.\"
|
||||||
.\" $FreeBSD$
|
.\" $FreeBSD$
|
||||||
.\"
|
.\"
|
||||||
.Dd August 20, 2020
|
.Dd March 11, 2021
|
||||||
.Dt UMA 9
|
.Dt UMA 9
|
||||||
.Os
|
.Os
|
||||||
.Sh NAME
|
.Sh NAME
|
||||||
@ -385,6 +385,22 @@ specify an argument for the
|
|||||||
and
|
and
|
||||||
.Dv dtor
|
.Dv dtor
|
||||||
functions of the zone, respectively.
|
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
|
The
|
||||||
.Fn uma_zalloc_domain
|
.Fn uma_zalloc_domain
|
||||||
function allows callers to specify a fixed
|
function allows callers to specify a fixed
|
||||||
|
Loading…
Reference in New Issue
Block a user