scsi_command Struct Reference

A SCSI command. More...

#include <scsi.h>


Data Fields

union scsi_cdb cdb
 CDB for this command.
userptr_t data_out
 Data-out buffer (may be NULL).
size_t data_out_len
 Data-out buffer length.
userptr_t data_in
 Data-in buffer (may be NULL).
size_t data_in_len
 Data-in buffer length.
uint8_t status
 SCSI status code.
uint8_t sense_response
 SCSI sense response code.
int rc
 Command status code.


Detailed Description

A SCSI command.

Definition at line 218 of file scsi.h.


Field Documentation

union scsi_cdb scsi_command::cdb [write]

Data-out buffer (may be NULL).

Definition at line 222 of file scsi.h.

Referenced by iscsi_start_command(), iscsi_tx_data_out(), scsi_write_10(), scsi_write_16(), and srp_cmd().

Data-out buffer length.

Must be zero if data_out is NULL

Definition at line 227 of file scsi.h.

Referenced by iscsi_start_command(), iscsi_tx_data_out(), scsi_write_10(), scsi_write_16(), and srp_cmd().

Data-in buffer (may be NULL).

Definition at line 229 of file scsi.h.

Referenced by iscsi_rx_data_in(), iscsi_start_command(), scsi_read_10(), scsi_read_16(), scsi_read_capacity_10(), scsi_read_capacity_16(), and srp_cmd().

Data-in buffer length.

Must be zero if data_in is NULL

Definition at line 234 of file scsi.h.

Referenced by iscsi_rx_data_in(), iscsi_start_command(), scsi_read_10(), scsi_read_16(), scsi_read_capacity_10(), scsi_read_capacity_16(), and srp_cmd().

SCSI status code.

Definition at line 236 of file scsi.h.

Referenced by iscsi_rx_data_in(), iscsi_rx_scsi_response(), scsi_command(), and srp_rsp().

SCSI sense response code.

Definition at line 238 of file scsi.h.

Referenced by iscsi_rx_scsi_response(), and scsi_command().

Command status code.

Definition at line 240 of file scsi.h.

Referenced by iscsi_scsi_done(), scsi_command(), and srp_scsi_done().


The documentation for this struct was generated from the following file:

Generated on Tue Apr 6 20:02:09 2010 for gPXE by  doxygen 1.5.7.1