Date: Mon, 26 Feb 2007 19:05:13 +0000 (UTC) From: Robert Watson <rwatson@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys rwlock.h src/sys/kern kern_rwlock.c Message-ID: <200702261905.l1QJ5DA8054365@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
rwatson 2007-02-26 19:05:13 UTC
FreeBSD src repository
Modified files:
sys/sys rwlock.h
sys/kern kern_rwlock.c
Log:
Add rw_wowned() interface to rwlock(9), allowing a kernel thread to
determine if it holds an exclusive rwlock reference or not. This is
non-ideal, but recursion scenarios in the network stack currently
require it.
Approved by: jhb
Revision Changes Path
1.14 +7 -0 src/sys/kern/kern_rwlock.c
1.7 +1 -0 src/sys/sys/rwlock.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702261905.l1QJ5DA8054365>
