---
name: "ata_host_register"
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_host_register"
---

# ata\_host\_register(9)

register initialized ATA host

## NAME

ata\_host\_register - register initialized ATA host

## SYNOPSIS

**int ata\_host\_register(struct ata\_host \*** *host***, struct scsi\_host\_template \*** *sht***);**

## ARGUMENTS

*host*

ATA host to register

*sht*

template for SCSI host

## DESCRIPTION

Register initialized ATA host. *host* is allocated using **ata\_host\_alloc** and fully initialized by LLD. This function starts ports, registers *host* with ATA and SCSI layers and probe registered devices.

LOCKING: Inherited from calling layer (may sleep).

## RETURN

0 on success, -errno otherwise.

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
