flash_drive = open (device_name, OPEN_WRITE | OPEN_DEVICE_DRIVER);

dev_cmd (flash_drive, &ioctl),
{
  ioctl = {
            category_id : DEV_DASD,
            function_id : DASD_EJECT
          }
};

ú
ú
ú

close (&flash_drive);