Remove xpt_sim_opened(), the only consumer of which was atapicam, which is
now gone.
This commit is contained in:
parent
674b6cecdc
commit
4373522abf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=249099
@ -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)
|
||||
|
@ -49,7 +49,6 @@ void xpt_release_devq(struct cam_path *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);
|
||||
|
Loading…
Reference in New Issue
Block a user