SMCIOC_PREVENT_MEDIUM_REMOVAL
This IOCTL command prevents an operator from removing medium from the device until the SMCIOC_ALLOW_MEDIUM_REMOVAL command is issued or the device is reset.
There is no associated data structure.
An example of the SMCIOC_PREVENT_MEDIUM_REMOVAL command
is
#include <sys/Atape.h>
if (!ioctl (smcfd, SMCIOC_PREVENT_MEDIUM_REMOVAL, NULL))
printf ("The SMCIOC_PREVENT_MEDIUM_REMOVAL ioctl succeeded\n");
else
{
perror ("The SMCIOC_PREVENT_MEDIUM_REMOVAL ioctl failed");
smcioc_request_sense();
}