---
name: "ata_device_add"
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_device_add"
---

# ata\_device\_add(9)

Register hardware device with ATA and SCSI layers

## NAME

ata\_device\_add - Register hardware device with ATA and SCSI layers

## SYNOPSIS

**int ata\_device\_add(const struct ata\_probe\_ent \*** *ent***);**

## ARGUMENTS

*ent*

Probe information describing hardware device to be registered

## DESCRIPTION

This function processes the information provided in the probe information struct *ent*, allocates the necessary ATA and SCSI host information structures, initializes them, and registers everything with requisite kernel subsystems.

This function requests irqs, probes the ATA bus, and probes the SCSI bus.

## LOCKING

PCI/etc. bus probe sem.

## RETURNS

Number of ports registered. Zero on error (no ports registered).

## AUTHOR

**Jeff Garzik**

-

  Author.

## COPYRIGHT
