Changeset View
Changeset View
Standalone View
Standalone View
sys/cam/ctl/ctl_backend_block.c
Show All 12 Lines | |||||
struct ctl_be_block_softc *softc; | struct ctl_be_block_softc *softc; | ||||
struct ctl_be_block_lun *lun; | struct ctl_be_block_lun *lun; | ||||
void (*beio_cont)(struct ctl_be_block_io *beio); /* to continue processing */ | void (*beio_cont)(struct ctl_be_block_io *beio); /* to continue processing */ | ||||
}; | }; | ||||
extern struct ctl_softc *control_softc; | extern struct ctl_softc *control_softc; | ||||
static int cbb_num_threads = 14; | static int cbb_num_threads = 14; | ||||
SYSCTL_NODE(_kern_cam_ctl, OID_AUTO, block, CTLFLAG_RD, 0, | SYSCTL_NODE(_kern_cam_ctl, OID_AUTO, block, CTLFLAG_RD | CTLFLAG_MPSAFE, 0, | ||||
"CAM Target Layer Block Backend"); | "CAM Target Layer Block Backend"); | ||||
SYSCTL_INT(_kern_cam_ctl_block, OID_AUTO, num_threads, CTLFLAG_RWTUN, | SYSCTL_INT(_kern_cam_ctl_block, OID_AUTO, num_threads, CTLFLAG_RWTUN, | ||||
&cbb_num_threads, 0, "Number of threads per backing file"); | &cbb_num_threads, 0, "Number of threads per backing file"); | ||||
static struct ctl_be_block_io *ctl_alloc_beio(struct ctl_be_block_softc *softc); | static struct ctl_be_block_io *ctl_alloc_beio(struct ctl_be_block_softc *softc); | ||||
static void ctl_free_beio(struct ctl_be_block_io *beio); | static void ctl_free_beio(struct ctl_be_block_io *beio); | ||||
static void ctl_complete_beio(struct ctl_be_block_io *beio); | static void ctl_complete_beio(struct ctl_be_block_io *beio); | ||||
static int ctl_be_block_move_done(union ctl_io *io); | static int ctl_be_block_move_done(union ctl_io *io); | ||||
Show All 12 Lines |