---
name: "atapi_check_dma"
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/atapi_check_dma"
---

# atapi\_check\_dma(9)

Check whether ATAPI DMA can be supported

## NAME

atapi\_check\_dma - Check whether ATAPI DMA can be supported

## SYNOPSIS

**int atapi\_check\_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 lock)

## RETURN

0 when ATAPI DMA can be used nonzero otherwise

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
