PERFORCE change 103772 for review

Hans Petter Selasky hselasky at FreeBSD.org
Sun Aug 13 15:14:29 UTC 2006


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

Change 103772 by hselasky at hselasky_mini_itx on 2006/08/13 15:13:51

	Add some more debugging statements. Bugfix: Make sure that D_TRACKCLOSE
	is set for cdevs created by the USB cdev system.

Affected files ...

.. //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#5 edit

Differences ...

==== //depot/projects/usb/src/sys/dev/usb/usb_cdev.c#5 (text+ko) ====

@@ -943,12 +943,16 @@
 
     mtx_unlock(&Giant);
 
+    DPRINTF(0, "x=0x%08x\n", x);
+
     return x;
 }
 
 static void
 usb_cdev_free_minor(u_int32_t x)
 {
+    DPRINTF(0, "x=0x%08x\n", x);
+
     if (x & 0x00FF00) {
         /* invalid minor */
         return;
@@ -1351,4 +1355,5 @@
   .d_ioctl   = usb_cdev_ioctl,
   .d_poll    = usb_cdev_poll,
   .d_name    = "usb_cdev",
+  .d_flags   = D_TRACKCLOSE,
 };


More information about the p4-projects mailing list