From owner-freebsd-hackers Mon May 3 16: 7:40 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id D9102154AC for ; Mon, 3 May 1999 16:07:35 -0700 (PDT) (envelope-from hibma@skylink.it) Received: from heidi.plazza.it (va-157.skylink.it [194.185.55.157]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id BAA02235 for ; Tue, 4 May 1999 01:08:46 +0200 Received: from localhost (localhost.plazza.it [127.0.0.1]) by heidi.plazza.it (8.8.8/8.8.5) with SMTP id AAA04514 for ; Tue, 4 May 1999 00:43:39 +0200 (CEST) Date: Tue, 4 May 1999 00:43:39 +0200 (CEST) From: Nick Hibma X-Sender: n_hibma@heidi.plazza.it Reply-To: Nick Hibma To: FreeBSD hackers mailing list Subject: CAM: devices without path Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG What extra calls are needed to remove the path as well as the devices if a CAM controller disappears? Currently I do the following static void umass_cam_detach(umass_softc_t *sc) { /* Detach from CAM layer * XXX do we need to delete the device first? */ xpt_free_path(sc->path); xpt_bus_deregister(cam_sim_path(sc->sim)); cam_sim_free(sc->sim, /*free_devq*/TRUE); } But if I unplug the USB Zip drive, camcontrol shows a device ('Iomega...') without an accompanying scbus entry. Nick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message