Whole document tree 8.15. SG_SCSI_RESETSG_SCSI_RESET 0x2284. Assumes 3rd argument points to an int. That int should be one of the following defined in the sg.h header:
Unfortunately this ioctl() doesn't currently do much (but may in the future after other issues are resolved). Yields an EBUSY error if the SCSI bus or the associated device is being reset when this ioctl() is called, otherwise returns 0. N.B. In some recent distributions there is a patch to the SCSI mid level code that activates this ioctl. Check your distribution. |