From owner-cvs-src@FreeBSD.ORG Mon Feb 26 19:05:14 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 30A6516A400; Mon, 26 Feb 2007 19:05:14 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 08DCD13C4A3; Mon, 26 Feb 2007 19:05:14 +0000 (UTC) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id l1QJ5DM1054366; Mon, 26 Feb 2007 19:05:13 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id l1QJ5DA8054365; Mon, 26 Feb 2007 19:05:13 GMT (envelope-from rwatson) Message-Id: <200702261905.l1QJ5DA8054365@repoman.freebsd.org> From: Robert Watson Date: Mon, 26 Feb 2007 19:05:13 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/sys rwlock.h src/sys/kern kern_rwlock.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Feb 2007 19:05:14 -0000 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