PERFORCE change 82963 for review

John Baldwin jhb at FreeBSD.org
Thu Sep 1 15:03:28 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=82963

Change 82963 by jhb at jhb_slimer on 2005/09/01 15:03:16

	Add a SYSUNINIT for SX_SYSINIT().
	
	Suggested by:	pjd

Affected files ...

.. //depot/projects/smpng/sys/sys/sx.h#15 edit

Differences ...

==== //depot/projects/smpng/sys/sys/sx.h#15 (text+ko) ====

@@ -68,11 +68,13 @@
 
 #define	SX_SYSINIT(name, sxa, desc)					\
 	static struct sx_args name##_args = {				\
-		sxa,							\
-		desc							\
+		(sxa),							\
+		(desc)							\
 	};								\
 	SYSINIT(name##_sx_sysinit, SI_SUB_LOCK, SI_ORDER_MIDDLE,	\
-	    sx_sysinit, &name##_args)
+	    sx_sysinit, &name##_args);					\
+	SYSUNINIT(name##_sx_sysuninit, SI_SUB_LOCK, SI_ORDER_MIDDLE,	\
+	    sx_destroy, (sxa))
 
 #define	sx_slock(sx)		_sx_slock((sx), LOCK_FILE, LOCK_LINE)
 #define	sx_xlock(sx)		_sx_xlock((sx), LOCK_FILE, LOCK_LINE)


More information about the p4-projects mailing list