scsi_execute_async — insert request
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); |
sdevscsi device
cmdscsi command
cmd_lenlength of scsi cdb
data_directionDMA_TO_DEVICE, DMA_FROM_DEVICE, or DMA_NONE
bufferdata buffer (this can be a kernel buffer or scatterlist)
bufflenlen of buffer
use_sgif buffer is a scatterlist this is the number of elements
timeoutrequest timeout in seconds
retriesnumber of times to retry request
privdata
data passed to done
donecallback function when done
gfpmemory allocation flags