CVSROOT: /cvs Module name: src Changes by: [email protected] 2022/03/16 08:13:01
Modified files:
share/man/man9 : refcnt_init.9
sys/kern : kern_synch.c
sys/sys : refcnt.h
Log message:
Add refcnt_shared() and refcnt_read()
refcnt_shared() checks whether the object has multiple references.
When refcnt_shared() returns zero, the caller is the only reference
holder.
refcnt_read() returns a snapshot of the counter value.
refcnt_shared() suggested by dlg@.
OK dlg@ mvs@
