From owner-cvs-all Sun Dec 17 21:53:18 2000 From owner-cvs-all@FreeBSD.ORG Sun Dec 17 21:53:15 2000 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from io.yi.org (cr795951-a.rchrd1.on.wave.home.com [24.42.75.118]) by hub.freebsd.org (Postfix) with ESMTP id 954CD37B400; Sun, 17 Dec 2000 21:53:14 -0800 (PST) Received: from io.yi.org (localhost.gvcl1.bc.wave.home.com [127.0.0.1]) by io.yi.org (Postfix) with ESMTP id 68738BA7D; Mon, 18 Dec 2000 00:53:13 -0500 (EST) X-Mailer: exmh version 2.1.1 10/15/1999 To: Jake Burkholder Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys lock.h In-Reply-To: Message from Jake Burkholder of "Sun, 17 Dec 2000 21:50:34 PST." <200012180550.eBI5oYQ12161@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 18 Dec 2000 00:53:13 -0500 From: Jake Burkholder Message-Id: <20001218055313.68738BA7D@io.yi.org> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > jake 2000/12/17 21:50:34 PST > > Modified files: > sys/sys lock.h > Log: > Add an assertion macro for lockmgr locks, LOCKMGR_ASSERT(lkp, what, p). > The what argument is the hold type that assertion acts on. LK_SHARED > to assert that the process holds a shared, LK_EXCLUSIVE to assert that > the process holds _either_ a shared lock or an exclusive lock. > > Revision Changes Path > 1.24 +23 -1 src/sys/sys/lock.h > > Sorry, I got this backwards. The LK_SHARED test will pass if an exclusive lock is held. The LK_EXCLUSIVE test will not pass for a shared lock. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message