scsi_test_unit_ready
static int scsi_test_unit_ready(int dev_id);
if (scsi_test_unit_ready(fd) >= 0) {