1. NAME

ata_scsi_rbuf_fill - wrapper for SCSI command simulators

2. SYNOPSIS

void ata_scsi_rbuf_fill(struct ata_scsi_args *  args , unsigned int (* actor ) (struct ata_scsi_args *args, u8 *rbuf));

3. ARGUMENTS

args
    device IDENTIFY data / SCSI command of interest.

actor
    Callback hook for desired SCSI command simulator

4. DESCRIPTION

Takes care of the hard work of simulating a SCSI command... Mapping the response buffer, calling the commandAqs handler, and handling the handlerAqs return value. This return value indicates whether the handler wishes the SCSI command to be completed successfully (0), or not (in which case cmd->result and sense buffer are assumed to be set).

5. LOCKING

spin_lock_irqsave(host lock)

6. AUTHOR

Jeff Garzik
    Author.

7. COPYRIGHT