Date: Tue, 2 Apr 2002 08:05:44 -0800 (PST) From: "Andrew R. Reiter" <arr@FreeBSD.org> 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 Message-ID: <200204021605.g32G5iA40497@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204021605.g32G5iA40497>
