scsi_id_t Structure

The scsi_id_t structure provides command ID information.

typedef struct scsi_id {
        uint64_t  id_cmd;
        uint64_t  id_timestamp;
} scsi_id_t

The id_cmd member represents an identifier of the command. It can be used to match a SCSI request with a SCSI response. The value of the id_cmd member can be reused when the command execution is complete. Therefore, the id_cmd member must be used with the id_timestamp member or you must sort the script output according to the another time stamp.

The id_timestamp member is a time stamp of the SCSI command request in nanoseconds. It can be used with a DTrace build-in variable time stamp to do various time related calculations.