---
name: "ata_host_intr"
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_host_intr"
---

# ata\_host\_intr(9)

Handle host interrupt for given (port, task)

## NAME

ata\_host\_intr - Handle host interrupt for given (port, task)

## SYNOPSIS

**unsigned int ata\_host\_intr(struct ata\_port \*** *ap***, struct ata\_queued\_cmd \*** *qc***);**

## ARGUMENTS

*ap*

Port on which interrupt arrived (possibly...)

*qc*

Taskfile currently active in engine

## DESCRIPTION

Handle host interrupt for given queued command. Currently, only DMA interrupts are handled. All other commands are handled via polling with interrupts disabled (nIEN bit).

## LOCKING

spin\_lock\_irqsave(host\_set lock)

## RETURNS

One if interrupt was handled, zero if not (shared irq).

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
