iPXE
Data Fields
fcp_command Struct Reference

An FCP command. More...

Data Fields

struct refcnt refcnt
 Reference count. More...
 
struct fcp_devicefcpdev
 FCP SCSI device. More...
 
struct list_head list
 List of active commands. More...
 
struct interface scsi
 SCSI command interface. More...
 
struct interface xchg
 Fibre Channel exchange interface. More...
 
struct process process
 Send process. More...
 
int(* send )(struct fcp_command *fcpcmd)
 Send current IU. More...
 
struct scsi_cmd command
 SCSI command. More...
 
size_t offset
 Data offset within command. More...
 
size_t remaining
 Length of data remaining to be sent within this IU. More...
 
uint16_t xchg_id
 Exchange ID. More...
 

Detailed Description

An FCP command.

Definition at line 167 of file fcp.c.

Field Documentation

◆ refcnt

struct refcnt fcp_command::refcnt

Reference count.

Definition at line 169 of file fcp.c.

Referenced by fcpcmd_get(), fcpcmd_put(), and fcpdev_scsi_command().

◆ fcpdev

struct fcp_device* fcp_command::fcpdev

◆ list

struct list_head fcp_command::list

List of active commands.

Definition at line 173 of file fcp.c.

Referenced by fcpcmd_free(), fcpdev_close(), and fcpdev_scsi_command().

◆ scsi

struct interface fcp_command::scsi

SCSI command interface.

Definition at line 175 of file fcp.c.

Referenced by fcpcmd_close(), fcpcmd_recv_rsp(), and fcpdev_scsi_command().

◆ xchg

struct interface fcp_command::xchg

Fibre Channel exchange interface.

Definition at line 177 of file fcp.c.

Referenced by fcpcmd_close(), fcpcmd_send_cmnd(), fcpcmd_send_wrdata(), and fcpdev_scsi_command().

◆ process

struct process fcp_command::process

Send process.

Definition at line 179 of file fcp.c.

Referenced by fcpcmd_start_send(), fcpcmd_stop_send(), and fcpdev_scsi_command().

◆ send

int( * fcp_command::send) (struct fcp_command *fcpcmd)

Send current IU.

Parameters
fcpcmdFCP command
Return values
rcReturn status code

Definition at line 185 of file fcp.c.

Referenced by fcpcmd_start_send(), and fcpcmd_step().

◆ command

struct scsi_cmd fcp_command::command

SCSI command.

Definition at line 187 of file fcp.c.

Referenced by fcpcmd_recv_rddata(), fcpcmd_recv_rsp(), fcpcmd_send_cmnd(), fcpcmd_send_wrdata(), and fcpdev_scsi_command().

◆ offset

size_t fcp_command::offset

Data offset within command.

Definition at line 189 of file fcp.c.

Referenced by fcpcmd_recv_rddata(), fcpcmd_recv_rsp(), fcpcmd_recv_xfer_rdy(), and fcpcmd_send_wrdata().

◆ remaining

size_t fcp_command::remaining

Length of data remaining to be sent within this IU.

Definition at line 191 of file fcp.c.

Referenced by fcpcmd_recv_xfer_rdy(), and fcpcmd_send_wrdata().

◆ xchg_id

uint16_t fcp_command::xchg_id

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