git: f187bd281e52 - stable/13 - refcount.9: Update refcount_acquire(9) description after a67d540832b8
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 21 Oct 2022 06:14:06 UTC
The branch stable/13 has been updated by khng:
URL: https://cgit.FreeBSD.org/src/commit/?id=f187bd281e52a71e0fe0a6bf963d93ff950fcf7a
commit f187bd281e52a71e0fe0a6bf963d93ff950fcf7a
Author: Ka Ho Ng <khng@FreeBSD.org>
AuthorDate: 2022-10-12 17:47:59 +0000
Commit: Ka Ho Ng <khng@FreeBSD.org>
CommitDate: 2022-10-21 06:13:25 +0000
refcount.9: Update refcount_acquire(9) description after a67d540832b8
MFC after: 3 days
Sponsored by: Juniper Networks, Inc.
Reviewed by: kib, markj
Differential Revision: https://reviews.freebsd.org/D36943
(cherry picked from commit 87fa64c569c54c2ec444ada699acde2ada696d97)
---
share/man/man9/refcount.9 | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/share/man/man9/refcount.9 b/share/man/man9/refcount.9
index 9171062a70b6..0b5a26d6e3cd 100644
--- a/share/man/man9/refcount.9
+++ b/share/man/man9/refcount.9
@@ -32,7 +32,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd November 2, 2020
+.Dd October 12, 2022
.Dt REFCOUNT 9
.Os
.Sh NAME
@@ -48,7 +48,7 @@
.Fn refcount_init "volatile u_int *count" "u_int value"
.Ft u_int
.Fn refcount_load "volatile u_int *count"
-.Ft void
+.Ft u_int
.Fn refcount_acquire "volatile u_int *count"
.Ft bool
.Fn refcount_acquire_checked "volatile u_int *count"
@@ -91,6 +91,7 @@ qualifier.
The
.Fn refcount_acquire
function is used to acquire a new reference.
+It returns the counter value before the new reference was acquired.
The caller is responsible for ensuring that it holds a valid reference
while obtaining a new reference.
For example,