---
name: "ata_dev_classify"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ata_dev_classify"
---

# ata\_dev\_classify(9)

determine device type based on ATA-spec signature

## NAME

ata\_dev\_classify - determine device type based on ATA-spec signature

## SYNOPSIS

**unsigned int ata\_dev\_classify(const struct ata\_taskfile \*** *tf***);**

## ARGUMENTS

*tf*

ATA taskfile register set for device to be identified

## DESCRIPTION

Determine from taskfile register contents whether a device is ATA or ATAPI, as per “Signature and persistence” section of ATA/PI spec (volume 1, sect 5.14).

LOCKING: None.

## RETURN

Device type, **ATA\_DEV\_ATA**, **ATA\_DEV\_ATAPI**, **ATA\_DEV\_PMP**, **ATA\_DEV\_ZAC**, or **ATA\_DEV\_UNKNOWN** the event of failure.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
