struct tarpc_sgio

Overview

struct tarpc_sgio More…

struct tarpc_sgio {
    // fields

    tarpc_int interface_id;
    tarpc_int dxfer_direction;
    tarpc_uchar cmd_len;
    tarpc_uchar mx_sb_len;
    tarpc_usint iovec_count;
    tarpc_uint dxfer_len;
    tarpc_uchar dxferp;
    tarpc_uchar cmdp;
    tarpc_uchar sbp;
    tarpc_uint timeout;
    tarpc_uint flags;
    tarpc_int pack_id;
    tarpc_uchar usr_ptr;
    tarpc_uchar status;
    tarpc_uchar masked_status;
    tarpc_uchar msg_status;
    tarpc_uchar sb_len_wr;
    tarpc_usint host_status;
    tarpc_usint driver_status;
    tarpc_int resid;
    tarpc_uint duration;
    tarpc_uint info;
};

Detailed Documentation

struct tarpc_sgio

Fields

tarpc_int interface_id

[i] ‘S’ for SCSI generic (required)

tarpc_int dxfer_direction

[i] data transfer direction

tarpc_uchar cmd_len

[i] SCSI command length ( <= 16 bytes)

tarpc_uchar mx_sb_len

[i] max length to write to sbp

tarpc_usint iovec_count

[i] 0 implies no scatter gather

tarpc_uint dxfer_len

[i] byte count of data transfer

tarpc_uchar dxferp

[i], [*io]

tarpc_uchar cmdp

[i], [*i] points to command to perform

tarpc_uchar sbp

[i], [*o] points to sense_buffer memory

tarpc_uint timeout

[i] MAX_UINT->no timeout (in millisec)

tarpc_uint flags

[i] 0 -> default, see SG_FLAG…

tarpc_int pack_id

[i->o] unused internally (normally)

tarpc_uchar usr_ptr

[i->o] unused internally

tarpc_uchar status

[o] scsi status

tarpc_uchar masked_status

[o] shifted, masked scsi status

tarpc_uchar msg_status

[o] messaging level data (optional)

tarpc_uchar sb_len_wr

[o] byte count actually written to sbp

tarpc_usint host_status

[o] errors from host adapter

tarpc_usint driver_status

[o] errors from software driver

tarpc_int resid

[o] dxfer_len - actual_transferred

tarpc_uint duration

[o] time taken by cmd (unit: millisec)

tarpc_uint info

[o] auxiliary information