return NULL;
}
-struct d_info *dip_add(__u32 device, struct io *iop, int link)
+struct d_info *dip_add(__u32 device, struct io *iop)
{
struct d_info *dip = __dip_find(device);
n_devs++;
}
- if (link)
- dip_rb_ins(dip, iop);
-
+ iop->linked = dip_rb_ins(dip, iop);
return dip;
}
dip_rb_fe(iop->dip, type, iop, fnc, NULL);
}
+void dip_foreach_list(struct io *iop, enum iop_type type, struct list_head *hd)
+{
+ dip_rb_fe(iop->dip, type, iop, NULL, hd);
+}
+
struct io *dip_find_sec(struct d_info *dip, enum iop_type type, __u64 sec)
{
return dip_rb_find_sec(dip, type, sec);