STIOC_LOAD_UCODE

This IOCTL command downloads microcode to the device. The argument that is used for this command is a character pointer to a buffer that contains the path and file name of the microcode. Microcode can also be loaded from a diskette by specifying /dev/rfd0 for the name.

An example of the STIOC_LOAD_UCODE command is
/* download microcode from file */
   char *name = "/etc/microcode/D0I4_BB5.fmrz";
   if (ioctl(tapefd,STIOC_LOAD_UCODE,name)<0)
    {
    printf("IOCTL failure. errno=%d",errno);
    exit(errno);
    }

/* download microcode from diskette */
   if (ioctl(tapefd,STIOC_LOAD_UCODE,"/dev/rfd0")<0)
    {
    printf("IOCTL failure. errno=%d",errno);
    exit(errno);
    }