Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108269218
D36943.id111720.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
907 B
Referenced Files
None
Subscribers
None
D36943.id111720.diff
View Options
diff --git a/share/man/man9/refcount.9 b/share/man/man9/refcount.9
--- 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"
@@ -93,6 +93,7 @@
function is used to acquire a new reference.
The caller is responsible for ensuring that it holds a valid reference
while obtaining a new reference.
+It returns the counter value before the new reference was acquired.
For example,
if an object is stored on a list and the list holds a reference on the
object, then holding a lock that protects the list provides sufficient
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 7:29 AM (15 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16081293
Default Alt Text
D36943.id111720.diff (907 B)
Attached To
Mode
D36943: refcount.9: Update refcount_acquire(9) description after a67d540832b8
Attached
Detach File
Event Timeline
Log In to Comment