ata_qc_new
Prev | Chapter 5. libata Core Internals | Next

## 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.

Prev | Up | Next
swap_buf_le16 | Home | ata_qc_new_init