Data transfer length in units defined by the SCSI device type. For sequential devices cnt is the number of bytes. For block devices, cnt is the number of blocks.

fixbit

Fixed bit in sequential access device commands.

Description

The makecom functions initialize a packet with the specified command descriptor block,
devp and transport flags. The pkt_address, pkt_flags, and the command descriptor block
pointed to by pkt_cdbp are initialized using the remaining arguments. Target drivers may
use makecom_g0() for Group 0 commands (except for sequential access devices), or
makecom_g0_s() for Group 0 commands for sequential access devices, or makecom_g1() for
Group 1 commands, or makecom_g5() for Group 5 commands. fixbit is used
by sequential access devices for accessing fixed block sizes and sets the
tag portion of the SCSI CDB.

Context

These functions can be called from user, interrupt, or kernel context.

See Also

Notes

The makecom_g0(), makecom_g0_s(), makecom_g1(), and makecom_g5() functions are obsolete and will be
discontinued in a future release. These functions have been replaced by the
scsi_setup_cdb() function. See scsi_setup_cdb(9F).