Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 May 1999 00:43:39 +0200 (CEST)
From:      Nick Hibma <hibma@skylink.it>
To:        FreeBSD hackers mailing list <hackers@freebsd.org>
Subject:   CAM: devices without path
Message-ID:  <Pine.BSF.3.96.990504004129.4511A-100000@heidi.plazza.it>

next in thread | raw e-mail | index | archive | help

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990504004129.4511A-100000>