Writing Device Drivers

scsi_pkt Structure Changes

uint_t      pkt_flags;               /* was type u_long */
int         pkt_time;                /* was type long */
ssize_t     pkt_resid;               /* was type long */
uint_t      pkt_state;               /* was type u_long */
uint_t      pkt_statistics;          /* was type u_long */

Because the pkt_flags, pkt_state, and pkt_statistics fields in the scsi_pkt(9S) structure do not need to grow, they have been redefined as 32-bit integers. The data transfer size pkt_resid field does grow and has been redefined as ssize_t.