iPXE
Data Fields
scsi_command Struct Reference

A SCSI command. More...

Data Fields

struct refcnt refcnt
 Reference count. More...
 
struct scsi_devicescsidev
 SCSI device. More...
 
struct list_head list
 List of SCSI commands. More...
 
struct interface block
 Block data interface. More...
 
struct interface scsi
 SCSI data interface. More...
 
struct scsi_command_typetype
 Command type. More...
 
uint64_t lba
 Starting logical block address. More...
 
unsigned int count
 Number of blocks. More...
 
userptr_t buffer
 Data buffer. More...
 
size_t len
 Length of data buffer. More...
 
uint32_t tag
 Command tag. More...
 
uint8_t priv [0]
 Private data. More...
 

Detailed Description

A SCSI command.

Definition at line 262 of file scsi.c.

Field Documentation

◆ refcnt

struct refcnt scsi_command::refcnt

Reference count.

Definition at line 264 of file scsi.c.

Referenced by scsicmd_get(), scsicmd_put(), and scsidev_command().

◆ scsidev

struct scsi_device* scsi_command::scsidev

◆ list

struct list_head scsi_command::list

List of SCSI commands.

Definition at line 268 of file scsi.c.

Referenced by scsicmd_close(), scsidev_close(), and scsidev_command().

◆ block

struct interface scsi_command::block

Block data interface.

Definition at line 271 of file scsi.c.

Referenced by scsicmd_close(), scsicmd_read_capacity_done(), and scsidev_command().

◆ scsi

struct interface scsi_command::scsi

SCSI data interface.

Definition at line 273 of file scsi.c.

Referenced by scsicmd_close(), scsicmd_command(), scsicmd_done(), and scsidev_command().

◆ type

struct scsi_command_type* scsi_command::type

Command type.

Definition at line 276 of file scsi.c.

Referenced by scsicmd_command(), scsicmd_done(), and scsidev_command().

◆ lba

uint64_t scsi_command::lba

Starting logical block address.

Definition at line 278 of file scsi.c.

Referenced by scsicmd_read_cmd(), scsicmd_write_cmd(), and scsidev_command().

◆ count

unsigned int scsi_command::count

Number of blocks.

Definition at line 280 of file scsi.c.

Referenced by scsicmd_read_cmd(), scsicmd_write_cmd(), and scsidev_command().

◆ buffer

userptr_t scsi_command::buffer

Data buffer.

Definition at line 282 of file scsi.c.

Referenced by scsicmd_read_cmd(), scsicmd_write_cmd(), and scsidev_command().

◆ len

size_t scsi_command::len

Length of data buffer.

Definition at line 284 of file scsi.c.

Referenced by scsicmd_read_cmd(), scsicmd_write_cmd(), and scsidev_command().

◆ tag

uint32_t scsi_command::tag

Command tag.

Definition at line 286 of file scsi.c.

Referenced by scsicmd_close(), scsicmd_command(), and scsicmd_response().

◆ priv

uint8_t scsi_command::priv[0]

Private data.

Definition at line 289 of file scsi.c.

Referenced by scsicmd_priv().


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