SIOC_RESERVE
This IOCTL command reserves the device to the device driver. The specific SCSI command that is issued to the device depends on the current reservation type that is used by the device driver, either a SCSI Reserve or Persistent Reserve.
There are no arguments for this IOCTL command.
An example of the SIOC_RESERVE command is
#include <sys/Atape.h>
if (!ioctl (fd, SIOC_RESERVE, NULL))
{
printf ("The SIOC_RESERVE ioctl succeeded\n");
}
else
{
perror ("The SIOC_RESERVE ioctl failed");
sioc_request_sense();
}