PERFORCE change 97221 for review

Scott Long scottl at FreeBSD.org
Tue May 16 00:01:59 UTC 2006


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

Change 97221 by scottl at scottl-x64 on 2006/05/16 00:00:43

	Add callout storage in the CCB for MPSAFE drivers to use.

Affected files ...

.. //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#7 edit

Differences ...

==== //depot/projects/scottl-camlock/src/sys/cam/cam_ccb.h#7 (text+ko) ====

@@ -278,8 +278,15 @@
 	ccb_ppriv_area	periph_priv;
 	ccb_spriv_area	sim_priv;
 	u_int32_t	timeout;	/* Timeout value */
+
+	/*
+	 * CAM does not manage CCB timeouts itself, but provides convenient
+	 * storage for drivers to use for their own management of timeouts.
+	 * Drivers that are not yet MPSAFE should use the timeout_ch.
+	 * Drivers that are MPSAFE should use the callout.
+	 */
 	struct		callout_handle timeout_ch;
-					/* Callout handle used for timeouts */
+	struct		callout	callout;
 };
 
 /* Get Device Information CCB */


More information about the p4-projects mailing list