VSCSI(4) - example /* data structures for vscsi ioctls */ struct vscsi_ioc_devevent devev; struct vscsi_ioc_i2t i2t; struct vscsi_ioc_t2i t2i; struct vscsi_ioc_data data; /* first we need to tell the kernel to probe the disk */ devev.target = target; devev.lun = 0;/* we only use one LUN per target */ if (ioctl(fd, VSCSI_REQPROBE, &devev) == -1) err(1, "ioctl VSCSI_REQPROBE"); /* the kernel issued a VSCSI_I2T command */ if (ioctl(fd, VSCSI_I2T, &i2t) == -1) err(1, "ioctl VSCSI_I2T");