summaryrefslogtreecommitdiffstats
path: root/sys/cam/cam_xpt.c
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-04-04 17:08:49 +0000
committermav <mav@FreeBSD.org>2013-04-04 17:08:49 +0000
commitb4c33f6473cdcb79e37999feaed7da5256689d66 (patch)
tree42667164a2637d8c0e27c5f134f54907c2b8f8ec /sys/cam/cam_xpt.c
parent6d0f38dc0f58073d466813378a397cfe1d5b82ed (diff)
downloadFreeBSD-src-b4c33f6473cdcb79e37999feaed7da5256689d66.zip
FreeBSD-src-b4c33f6473cdcb79e37999feaed7da5256689d66.tar.gz
Remove xpt_sim_opened(), the only consumer of which was atapicam, which is
now gone.
Diffstat (limited to 'sys/cam/cam_xpt.c')
-rw-r--r--sys/cam/cam_xpt.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c
index 23e16f0..068e26a 100644
--- a/sys/cam/cam_xpt.c
+++ b/sys/cam/cam_xpt.c
@@ -2062,39 +2062,6 @@ xptbustraverse(struct cam_eb *start_bus, xpt_busfunc_t *tr_func, void *arg)
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)
OpenPOWER on IntegriCloud