---
name: "ata_port_alloc"
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_port_alloc"
---

# ata\_port\_alloc(9)

allocate and initialize basic ATA port resources

## NAME

ata\_port\_alloc - allocate and initialize basic ATA port resources

## SYNOPSIS

**struct ata\_port \* ata\_port\_alloc(struct ata\_host \*** *host***);**

## ARGUMENTS

*host*

ATA host this allocated port belongs to

## DESCRIPTION

Allocate and initialize basic ATA port resources.

## RETURN

Allocate ATA port on success, NULL on failure.

LOCKING: Inherited from calling layer (may sleep).

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
