---
name: "ata_sg_setup_one"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_sg_setup_one"
---

# ata\_sg\_setup\_one(9)

DMA-map the memory buffer associated with a command.

## NAME

ata\_sg\_setup\_one - DMA-map the memory buffer associated with a command.

## SYNOPSIS

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

## ARGUMENTS

*qc*

Command with memory buffer to be mapped.

## DESCRIPTION

DMA-map the memory buffer associated with queued\_cmd *qc*.

## LOCKING

spin\_lock\_irqsave(host\_set lock)

## RETURNS

Zero on success, negative on error.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
