1ATA_SCSI_RBUF_FILL(9)   libata SCSI translation/emulat   ATA_SCSI_RBUF_FILL(9)
2
3
4

NAME

6       ata_scsi_rbuf_fill - wrapper for SCSI command simulators
7

SYNOPSIS

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

ARGUMENTS

13       args
14           device IDENTIFY data / SCSI command of interest.
15
16       actor
17           Callback hook for desired SCSI command simulator
18

DESCRIPTION

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

LOCKING

27       spin_lock_irqsave(host lock)
28

AUTHOR

30       Jeff Garzik
31           Author.
32
34Kernel Hackers Manual 2.6.         June 2019             ATA_SCSI_RBUF_FILL(9)
Impressum