---
name: "ata_qc_new"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_qc_new"
---

# ata\_qc\_new(9)

Request an available ATA command, for queueing

## NAME

ata\_qc\_new - Request an available ATA command, for queueing

## SYNOPSIS

**struct ata\_queued\_cmd \* ata\_qc\_new(struct ata\_port \*** *ap***);**

## ARGUMENTS

*ap*

target port

## DESCRIPTION

Some ATA host controllers may implement a queue depth which is less than ATA\_MAX\_QUEUE. So we shouldn't allocate a tag which is beyond the hardware limitation.

## LOCKING

None.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
