diff options
author | thompsa <thompsa@FreeBSD.org> | 2009-01-21 04:19:18 +0000 |
---|---|---|
committer | thompsa <thompsa@FreeBSD.org> | 2009-01-21 04:19:18 +0000 |
commit | 50e14c608efac2da56f8271a909fc7bc5396f053 (patch) | |
tree | 1a88a1f2553a5d499bb94b56aedbe8ab634b7f12 /lib | |
parent | 48be47ddbcdf20ebb6e51798a78ac0707dc19ed3 (diff) | |
download | FreeBSD-src-50e14c608efac2da56f8271a909fc7bc5396f053.zip FreeBSD-src-50e14c608efac2da56f8271a909fc7bc5396f053.tar.gz |
Add functions WITNESS so it can be asserted that the lock is not released for a
section of code, this uses WITNESS_NORELEASE() and WITNESS_RELEASEOK() to mark
the boundaries. Both functions require the lock to be held when calling.
This is intended for scenarios like a bus asserting that the bus lock is not
dropped during a driver call. There doesn't appear to be a man page to
document this in.
Reviewed by: jhb
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions