---
name: "ata_sg_init_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_init_one"
---

# ata\_sg\_init\_one(9)

Associate command with memory buffer

## NAME

ata\_sg\_init\_one - Associate command with memory buffer

## SYNOPSIS

**void ata\_sg\_init\_one(struct ata\_queued\_cmd \*** *qc***, void \*** *buf***, unsigned int** *buflen***);**

## ARGUMENTS

*qc*

Command to be associated

*buf*

Memory buffer

*buflen*

Length of memory buffer, in bytes.

## DESCRIPTION

Initialize the data-related elements of queued\_cmd *qc* to point to a single memory buffer, *buf* of byte length *buflen*.

## LOCKING

spin\_lock\_irqsave(host\_set lock)

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
