---
name: "i2o_scsi_queuecommand"
section: "9"
platform: "linux"
package: "linux-manual-2.6.32"
version: "2.6.32-48squeeze6"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/i2o_scsi_queuecommand"
---

# i2o\_scsi\_queuecommand(9)

queue a SCSI command

## NAME

i2o\_scsi\_queuecommand - queue a SCSI command

## SYNOPSIS

**int i2o\_scsi\_queuecommand(struct scsi\_cmnd \*** *SCpnt***, void (\****done***) (struct scsi\_cmnd \*));**

## ARGUMENTS

*SCpnt*

scsi command pointer

*done*

callback for completion

## DESCRIPTION

Issue a scsi command asynchronously. Return 0 on success or 1 if we hit an error (normally message queue congestion). The only minor complication here is that I2O deals with the device addressing so we have to map the bus/dev/lun back to an I2O handle as well as faking absent devices ourself.

## LOCKS

takes the controller lock on error path only

## COPYRIGHT
