Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Apr 2000 18:29:19 -0600
From:      Warner Losh <imp@village.org>
To:        Nick Hibma <n_hibma@calcaphon.com>
Cc:        Nikolai Saoukh <nms@otdel-1.org>, freebsd-hackers@freebsd.org
Subject:   Re: Reserving Resources 
Message-ID:  <200004030029.SAA56087@harmony.village.org>
In-Reply-To: Your message of "Mon, 03 Apr 2000 01:23:02 BST." <Pine.BSF.4.20.0004030121320.7902-100000@localhost> 
References:  <Pine.BSF.4.20.0004030121320.7902-100000@localhost>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.BSF.4.20.0004030121320.7902-100000@localhost> Nick Hibma writes:
: Um, in that case you should update subr_bus.c. Change committed two
: weeks ago. I got annoyed to by that too :-)

Hmmmm.  This work was on a 4.0-RELEASE system....  Makes sense.

BTW, I have a hack to subr_bus that prints detach messages when a
device is detached.  This will hoist some code from the drivers that
detach into the bus system.  I think it would be useful to commit.
Comments?

Warner

Index: subr_bus.c
===================================================================
RCS file: /home/imp/FreeBSD/CVS/src/sys/kern/subr_bus.c,v
retrieving revision 1.56
diff -u -r1.56 subr_bus.c
--- subr_bus.c	2000/04/01 06:06:37	1.56
+++ subr_bus.c	2000/04/03 00:28:59
@@ -1179,6 +1179,7 @@
 
     if ((error = DEVICE_DETACH(dev)) != 0)
 	return error;
+    device_printf(dev, "detached\n");
     if (dev->parent)
 	BUS_CHILD_DETACHED(dev->parent, dev);
 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004030029.SAA56087>