---
name: "ata_check_atapi_dma"
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_check_atapi_dma"
---

# ata\_check\_atapi\_dma(9)

Check whether ATAPI DMA can be supported

## NAME

ata\_check\_atapi\_dma - Check whether ATAPI DMA can be supported

## SYNOPSIS

**int ata\_check\_atapi\_dma(struct ata\_queued\_cmd \*** *qc***);**

## ARGUMENTS

*qc*

Metadata associated with taskfile to check

## DESCRIPTION

Allow low-level driver to filter ATA PACKET commands, returning a status indicating whether or not it is OK to use DMA for the supplied PACKET command.

## LOCKING

spin\_lock\_irqsave(host\_set lock)

## RETURNS

0 when ATAPI DMA can be used nonzero otherwise

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
