MTDEVICE (Obtain device number)

This IOCTL command obtains the device number that is used for communicating with the IBM® TotalStorage™ Enterprise library 3494.

The structure of the IOCTL request is
int device;
if (ioctl(tapefd,MTDEVICE,&device)<0)
{
printf("IOCTL failure. errno=%d",errno);
exit(errno);
}