From owner-cvs-all Tue Apr 2 8: 7:24 2002 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 56F6837B4A4; Tue, 2 Apr 2002 08:05:44 -0800 (PST) Received: (from arr@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g32G5iA40497; Tue, 2 Apr 2002 08:05:44 -0800 (PST) (envelope-from arr) Message-Id: <200204021605.g32G5iA40497@freefall.freebsd.org> From: "Andrew R. Reiter" Date: Tue, 2 Apr 2002 08:05:44 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/kern kern_mutex.c kern_sx.c src/sys/sys mutex.h sx.h X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG arr 2002/04/02 08:05:43 PST Modified files: sys/kern kern_mutex.c kern_sx.c sys/sys mutex.h sx.h Log: - Add MTX_SYSINIT and SX_SYSINIT as macro glue for allowing sx and mtx locks to be able to setup a SYSINIT call. This helps in places where a lock is needed to protect some data, but the data is not truly associated with a subsystem that can properly initialize it's lock. The macros use the mtx_sysinit() and sx_sysinit() functions, respectively, as the handler argument to SYSINIT(). Reviewed by: alfred, jhb, smp@ Revision Changes Path 1.86 +11 -0 src/sys/kern/kern_mutex.c 1.17 +8 -0 src/sys/kern/kern_sx.c 1.52 +16 -0 src/sys/sys/mutex.h 1.16 +14 -0 src/sys/sys/sx.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message