1ATA_HOST_ALLOC_PINFO(9)         libata Library         ATA_HOST_ALLOC_PINFO(9)
2
3
4

NAME

6       ata_host_alloc_pinfo - alloc host and init with port_info array
7

SYNOPSIS

9       struct ata_host * ata_host_alloc_pinfo(struct device * dev,
10                                              const struct ata_port_info *const * ppi,
11                                              int n_ports);
12

ARGUMENTS

14       dev
15           generic device this host is associated with
16
17       ppi
18           array of ATA port_info to initialize host with
19
20       n_ports
21           number of ATA ports attached to this host
22

DESCRIPTION

24       Allocate ATA host and initialize with info from ppi. If NULL
25       terminated, ppi may contain fewer entries than n_ports. The last entry
26       will be used for the remaining ports.
27

RETURNS

29       Allocate ATA host on success, NULL on failure.
30

LOCKING

32       Inherited from calling layer (may sleep).
33

AUTHOR

35       Jeff Garzik
36           Author.
37
39Kernel Hackers Manual 2.6.       November 2011         ATA_HOST_ALLOC_PINFO(9)
Impressum