Date: Wed, 21 Jan 2009 04:19:18 +0000 (UTC) From: Andrew Thompson <thompsa@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/kern subr_witness.c src/sys/sys lock.h Message-ID: <200901210422.n0L4MOWT018190@repoman.freebsd.org>
index | next in thread | raw e-mail
thompsa 2009-01-21 04:19:18 UTC
FreeBSD src repository
Modified files:
sys/kern subr_witness.c
sys/sys lock.h
Log:
SVN rev 187511 on 2009-01-21 04:19:18Z by thompsa
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
Revision Changes Path
1.264 +49 -0 src/sys/kern/subr_witness.c
1.76 +10 -0 src/sys/sys/lock.h
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901210422.n0L4MOWT018190>
