ata_qc_complete_multiple(9)

ata_qc_complete_multiple9

Complete multiple qcs successfully

Usage

int ata_qc_complete_multiple(struct ata_port * ap, u32 qc_active);

Arguments

ap

port in question

qc_active

new qc_active mask

Overview

Complete in-flight commands. This functions is meant to be called from low-level driver's interrupt routine to complete requests normally. ap->qc_active and qc_active is compared and commands are completed accordingly.

Always use this function when completing multiple NCQ commands from IRQ handlers instead of calling ata_qc_complete multiple times to keep IRQ expect status properly in sync.

LOCKING: spin_lock_irqsave(host lock)

Return

Number of completed commands on success, -errno otherwise.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

Author

Jeff Garzik

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.