---
name: "ata_host_alloc_pinfo"
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_alloc_pinfo"
---

# ata\_host\_alloc\_pinfo(9)

alloc host and init with port\_info array

## NAME

ata\_host\_alloc\_pinfo - alloc host and init with port\_info array

## SYNOPSIS

**struct ata\_host \* ata\_host\_alloc\_pinfo(struct device \*** *dev***, const struct ata\_port\_info \*const \*** *ppi***, int** *n\_ports***);**

## ARGUMENTS

*dev*

generic device this host is associated with

*ppi*

array of ATA port\_info to initialize host with

*n\_ports*

number of ATA ports attached to this host

## DESCRIPTION

Allocate ATA host and initialize with info from *ppi*. If NULL terminated, *ppi* may contain fewer entries than *n\_ports*. The last entry will be used for the remaining ports.

## RETURN

Allocate ATA host on success, NULL on failure.

LOCKING: Inherited from calling layer (may sleep).

## AUTHOR

**Jeff Garzik**

Author.

## COPYRIGHT
