From owner-cvs-all Mon Jul 3 9:40:50 2000 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 457F337B992; Mon, 3 Jul 2000 09:40:39 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.3) with ESMTP id SAA07098; Mon, 3 Jul 2000 18:40:23 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Garrett Wollman Cc: Warner Losh , Nick Hibma , 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: Your message of "Mon, 03 Jul 2000 12:34:53 EDT." <200007031634.MAA17071@khavrinen.lcs.mit.edu> Date: Mon, 03 Jul 2000 18:40:23 +0200 Message-ID: <7096.962642423@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In message <200007031634.MAA17071@khavrinen.lcs.mit.edu>, Garrett Wollman write s: >< said: > >> With pccard right now you'd lose it. The device is gone. Sure it >> might be replaced by another identical copy of the device in the >> future, but for now the device is gone. > >I think this is a bug in pccard (or rather, in the way removable >devices are currently implemented in newbus). If I reinsert the same >(or a functionally identical) device, I should be able to expect it to >start off from where it was before. > >In other words, devices which are removed need to be accounted for as >``still attached but not physically present'' rather than simply >``gone''. It's a hard call, and I'm not sure it is the best idea to decide this on a global basis: ie, the model we use for ethernets and disks may be radically different. In a way I like the way Windows did this, by having a set of configurations, ie: undocked, docked, undocked + pccard etc etc In fact the best idea may be to make this a per device variable: "if your hardware disappears, stay around" or "if your hardware disappears, go away" -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD coreteam member | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message