SIOC_TEST_UNIT_READY
This IOCTL command issues the SCSI Test Unit Ready command to the device.
There are no arguments for this IOCTL command.
An example of the SIOC_TEST_UNIT_READY command
is
#include <sys/IBM_tape.h>
if (!ioctl (fd, SIOC_TEST_UNIT_READY, NULL)) {
printf ("The SIOC_TEST_UNIT_READY ioctl succeeded\n");
}
else {
perror ("The SIOC_TEST_UNIT_READY ioctl failed");
sioc_request_sense();
}