---
name: "ata_devchk"
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_devchk"
---

# ata\_devchk(9)

PATA device presence detection

## NAME

ata\_devchk - PATA device presence detection

## SYNOPSIS

**unsigned int ata\_devchk(struct ata\_port \*** *ap***, unsigned int** *device***);**

## ARGUMENTS

*ap*

ATA channel to examine

*device*

Device to examine (starting at zero)

## DESCRIPTION

Dispatch ATA device presence detection, depending on whether we are using PIO or MMIO to talk to the ATA shadow registers.

## LOCKING

caller.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
