---
name: "ata_scsi_rbuf_fill"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_scsi_rbuf_fill"
---

# ata\_scsi\_rbuf\_fill(9)

wrapper for SCSI command simulators

## NAME

ata\_scsi\_rbuf\_fill - wrapper for SCSI command simulators

## SYNOPSIS

**void ata\_scsi\_rbuf\_fill(struct ata\_scsi\_args \*** *args***, unsigned int (\****actor***) (struct ata\_scsi\_args \*args, u8 \*rbuf));**

## ARGUMENTS

*args*

device IDENTIFY data / SCSI command of interest.

*actor*

Callback hook for desired SCSI command simulator

## DESCRIPTION

Takes care of the hard work of simulating a SCSI command... Mapping the response buffer, calling the command's handler, and handling the handler's 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).

LOCKING: spin\_lock\_irqsave(host lock)

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
