ATA_HOST_ALLOC_PINFO(9) libata Library ATA_HOST_ALLOC_PINFO(9)NAMEata_host_alloc_pinfo - alloc host and init with port_info array
struct ata_host * ata_host_alloc_pinfo(struct device * dev,
const struct ata_port_info *const * ppi,
generic device this host is associated with
array of ATA port_info to initialize host with
number of ATA ports attached to this host
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.
Allocate ATA host on success, NULL on failure.
Inherited from calling layer (may sleep).
COPYRIGHTKernel Hackers Manual 3.8. June 2014 ATA_HOST_ALLOC_PINFO(9)