From owner-cvs-all Mon Jul 3 10: 8:49 2000 Delivered-To: cvs-all@freebsd.org Received: from finch-post-10.mail.demon.net (finch-post-10.mail.demon.net [194.217.242.38]) by hub.freebsd.org (Postfix) with ESMTP id D380C37B8EC; Mon, 3 Jul 2000 10:08:36 -0700 (PDT) (envelope-from n_hibma@qubesoft.com) Received: from calcaphon.demon.co.uk ([193.237.19.5] helo=bluebottle.qubesoft.com) by finch-post-10.mail.demon.net with esmtp (Exim 2.12 #1) id 1399hw-000CfU-0A; Mon, 3 Jul 2000 17:08:33 +0000 Received: from henny.webweaving.org (henny.qubesoft.com [192.168.1.5]) by bluebottle.qubesoft.com (8.9.3/8.9.1) with ESMTP id SAA52426; Mon, 3 Jul 2000 18:07:27 +0100 (BST) (envelope-from n_hibma@qubesoft.com) Received: from localhost (localhost [127.0.0.1]) by henny.webweaving.org (8.9.3/8.9.3) with ESMTP id SAA21439; Mon, 3 Jul 2000 18:01:09 +0100 (BST) (envelope-from n_hibma@qubesoft.com) Date: Mon, 3 Jul 2000 18:01:09 +0100 (BST) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: Garrett Wollman Cc: Warner Losh , Poul-Henning Kamp , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys bus.h bus_private.h src/sys/kern subr_bus.c In-Reply-To: <200007031634.MAA17071@khavrinen.lcs.mit.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > In other words, devices which are removed need to be accounted for as > ``still attached but not physically present'' rather than simply > ``gone''. Could you give an example of when this would be good behaviour, because I can only see big problems when trying to implement this. In general when you willfully remove a device you want it to act like it has disappeared. For example the route over a USB ethernet dongle should be gone so you don't have to wait for timeouts on transfers, and get network down instead. In the case of an accidental remove of a zip drive, it might make sense to have the device appear at the same spot where you removed it. E.g. if the drive was mounted at that point in time. It however opens a whole can of worms: How do I reliably detect that a device is the same that went away before? What about the medium in it? The Linux USB boys discussed this at least two times and decided that it was not feasible. Allthough the USB devices can contain a serial number, it is not mandatory unfortunately. What if the user plugs the device into a different slot or port? Is it still the same? Nick -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message