summaryrefslogtreecommitdiffstats
path: root/sys/sys/refcount.h
Commit message (Collapse)AuthorAgeFilesLines
* MFC 261517,261520:jhb2014-02-181-3/+0
| | | | | Convert the license on files where I am the sole copyright holder to 2 clause BSD licenses.
* Add assertion for refcount overflow.glebius2012-07-271-0/+2
| | | | | Submitted by: Andrey Zonov <andrey zonov.org> Reviewed by: kib
* Remove debugging cruft.des2008-07-231-1/+0
|
* pjd@'s r180759 was intended to revert r180755 due to ipfilter breakage,des2008-07-231-1/+14
| | | | | | | | | but removed too much, breaking the build in other places instead. Now that the ipfilter issue has been fixed (or hacked around), address the second issue by restoring r180755, with one small change. I don't feel comfortable using assert(3) in a header that will be included in userland code that may or may not already have an assertion mechanism in place, so KASSERT() evaluates to a no-op in the !_KERNEL case.
* Back out this change, as it breaks the build and I don't have time forpjd2008-07-231-13/+1
| | | | a better fix today.
* Check for negative reference count.pjd2008-07-231-1/+10
| | | | Reviewed by: des
* Add a simple reference count API that is simply a thin wrapper API aroundjhb2005-09-271-0/+59
atomic operations on ints. Reviewed by: arch@ MFC after: 1 week
OpenPOWER on IntegriCloud