↑ arvau

Wikipedia / Command descriptor block

In SCSI, the command descriptor block (CDB) is a structure used for sending commands between computers and peripheral devices. This is often particularly used as a standard for transferring data between computers and storage devices.

Description

In the initial SCSI-1 specification, the CDB can be a total of 6, 10, 12, or 16 bytes. Later versions of the SCSI standard such as iSCSI allow for variable-length CDBs. The CDB consists of a one-byte operation code followed by some command-specific parameters. The parameters need not be a full byte long, and the parameter length varies from one command to another. The available commands, with links to articles describing the detailed structure of many of them, are listed in the article List of SCSI commands.

Typical CDB structures, for the 6- and 16-byte SCSI Request Sense Command, opcode 3, are:An example with different allocation of bits to parameters is the 6-byte SCSI Mode Sense Command:The generic form of the 12-byte CDB is:

References