scsi_device Struct Reference

A SCSI device. More...

#include <scsi.h>


Data Fields

struct block_device blockdev
 Block device interface.
int(* command )(struct scsi_device *scsi, struct scsi_command *command)
 Issue SCSI command.
struct refcntbackend
 Backing device.


Detailed Description

A SCSI device.

Definition at line 253 of file scsi.h.


Field Documentation

Block device interface.

Definition at line 255 of file scsi.h.

Referenced by ib_srpboot(), init_scsidev(), and iscsiboot().

int( * scsi_device::command)(struct scsi_device *scsi, struct scsi_command *command)

Issue SCSI command.

Parameters:
scsi SCSI device
command SCSI command
Return values:
rc Return status code
Note that a successful return status code indicates only that the SCSI command was issued. The caller must check the status field in the command structure to see when the command completes and whether, for example, the device returned CHECK CONDITION or some other non-success status code.

Referenced by iscsi_attach(), iscsi_detach(), scsi_command(), srp_attach(), and srp_detach().

struct refcnt* scsi_device::backend [read]


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