---
name: "ata_pio_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_pio_devchk"
---

# ata\_pio\_devchk(9)

PATA device presence detection

## NAME

ata\_pio\_devchk - PATA device presence detection

## SYNOPSIS

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

## ARGUMENTS

*ap*

ATA channel to examine

*device*

Device to examine (starting at zero)

## DESCRIPTION

This technique was originally described in Hale Landis's ATADRVR (www.ata-atapi.com), and later found its way into the ATA/ATAPI spec.

Write a pattern to the ATA shadow registers, and if a device is present, it will respond by correctly storing and echoing back the ATA shadow register contents.

## LOCKING

caller.

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
