func: static int32_t scsi_target_send_command(SCSIRequest *req, uint8_t *buf) SCSITargetReq * r = DO_UPCAST ( SCSITargetReq , req , req ) ; switch ( buf [ 0 ] )  if ( ! scsi_target_emulate_inquiry ( r ) )  static bool scsi_target_emulate_inquiry(SCSITargetReq *r) if ( r -> req . cmd . buf [ 1 ] & 0x2 )  if ( r -> req . cmd . buf [ 1 ] & 0x1 )  if ( r -> req . cmd . buf [ 2 ] != 0 )  r -> len = MIN ( r -> req . cmd . xfer , SCSI_INQUIRY_LEN ); memset ( r -> buf , 0 , r -> len ); if ( r -> req . lun != 0 )  r -> buf [ 0 ] = TYPE_NO_LUN; 