---
name: "ata_sg_setup"
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_sg_setup"
---

# ata\_sg\_setup(9)

DMA-map the scatter-gather table associated with a command.

## NAME

ata\_sg\_setup - DMA-map the scatter-gather table associated with a command.

## SYNOPSIS

**int ata\_sg\_setup(struct ata\_queued\_cmd \*** *qc***);**

## ARGUMENTS

*qc*

Command with scatter-gather table to be mapped.

## DESCRIPTION

DMA-map the scatter-gather table associated with queued\_cmd *qc*.

LOCKING: spin\_lock\_irqsave(host lock)

## RETURN

Zero on success, negative on error.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
