From owner-cvs-all Wed Nov 15 14:12:44 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0E25737B4D7; Wed, 15 Nov 2000 14:12:42 -0800 (PST) Received: (from jhb@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id OAA92561; Wed, 15 Nov 2000 14:12:41 -0800 (PST) (envelope-from jhb@FreeBSD.org) Message-Id: <200011152212.OAA92561@freefall.freebsd.org> From: John Baldwin Date: Wed, 15 Nov 2000 14:12:41 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys mutex.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jhb 2000/11/15 14:12:41 PST Modified files: sys/sys mutex.h Log: - Add a new macro DROP_GIANT_NOSWITCH() that is similar to DROP_GIANT() except that it uses the MTX_NOSWITCH flag while it releases Giant via mtx_exit(). - Add a mtx_recursed() primitive. This primitive should only be used on a mutex owned by the current process. It will return non-zero if the mutex is recursively owned, or zero otherwise. - Add two new flags MA_RECURSED and MA_NOTRECURSED that can be used in conjuction with MA_OWNED to control the assertion checked by mtx_assert(). - Fix some of the KTR tracepoint strings to use %p when displaying the lock field of a mutex, which is a uintptr_t. Revision Changes Path 1.8 +33 -7 src/sys/sys/mutex.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message