Author: mav Date: Thu Apr 4 17:08:49 2013 New Revision: 249099 URL: http://svnweb.freebsd.org/changeset/base/249099
Log: Remove xpt_sim_opened(), the only consumer of which was atapicam, which is now gone. Modified: head/sys/cam/cam_xpt.c head/sys/cam/cam_xpt_sim.h Modified: head/sys/cam/cam_xpt.c ============================================================================== --- head/sys/cam/cam_xpt.c Thu Apr 4 16:02:21 2013 (r249098) +++ head/sys/cam/cam_xpt.c Thu Apr 4 17:08:49 2013 (r249099) @@ -2062,39 +2062,6 @@ xptbustraverse(struct cam_eb *start_bus, return(retval); } -int -xpt_sim_opened(struct cam_sim *sim) -{ - struct cam_eb *bus; - struct cam_et *target; - struct cam_ed *device; - struct cam_periph *periph; - - KASSERT(sim->refcount >= 1, ("sim->refcount >= 1")); - mtx_assert(sim->mtx, MA_OWNED); - - xpt_lock_buses(); - TAILQ_FOREACH(bus, &xsoftc.xpt_busses, links) { - if (bus->sim != sim) - continue; - - TAILQ_FOREACH(target, &bus->et_entries, links) { - TAILQ_FOREACH(device, &target->ed_entries, links) { - SLIST_FOREACH(periph, &device->periphs, - periph_links) { - if (periph->refcount > 0) { - xpt_unlock_buses(); - return (1); - } - } - } - } - } - - xpt_unlock_buses(); - return (0); -} - static int xpttargettraverse(struct cam_eb *bus, struct cam_et *start_target, xpt_targetfunc_t *tr_func, void *arg) Modified: head/sys/cam/cam_xpt_sim.h ============================================================================== --- head/sys/cam/cam_xpt_sim.h Thu Apr 4 16:02:21 2013 (r249098) +++ head/sys/cam/cam_xpt_sim.h Thu Apr 4 17:08:49 2013 (r249099) @@ -49,7 +49,6 @@ void xpt_release_devq(struct cam_path * u_int count, int run_queue); void xpt_release_devq_rl(struct cam_path *path, cam_rl rl, u_int count, int run_queue); -int xpt_sim_opened(struct cam_sim *sim); void xpt_done(union ccb *done_ccb); void xpt_batch_start(struct cam_sim *sim); void xpt_batch_done(struct cam_sim *sim); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"