---
name: "scsi_execute_async"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/scsi_execute_async"
---

# scsi\_execute\_async(9)

insert request

## NAME

scsi\_execute\_async - insert request

## SYNOPSIS

**int scsi\_execute\_async(struct scsi\_device \*** *sdev***, const unsigned char \*** *cmd***, int** *cmd\_len***, int** *data\_direction***, void \*** *buffer***, unsigned** *bufflen***, int** *use\_sg***, int** *timeout***, int** *retries***, void \*** *privdata***, void (\****done***) (void \*, char \*, int, int), gfp\_t** *gfp***);**

## ARGUMENTS

*sdev*

scsi device

*cmd*

scsi command

*cmd\_len*

length of scsi cdb

*data\_direction*

DMA\_TO\_DEVICE, DMA\_FROM\_DEVICE, or DMA\_NONE

*buffer*

data buffer (this can be a kernel buffer or scatterlist)

*bufflen*

len of buffer

*use\_sg*

if buffer is a scatterlist this is the number of elements

*timeout*

request timeout in seconds

*retries*

number of times to retry request

*privdata*

data passed to **done**

*done*

callback function when done

*gfp*

memory allocation flags

## AUTHORS

**James Bottomley** \<James.Bottomley@hansenpartnership.com\>

-

  Author.

**Rob Landley** \<rob@landley.net\>

-

  Author.

## COPYRIGHT
