other versions
- wheezy 3.2.78-1
ATA_HOST_ALLOC(9) | libata Library | ATA_HOST_ALLOC(9) |
NAME¶
ata_host_alloc - allocate and init basic ATA host resourcesSYNOPSIS¶
struct
ata_host * ata_host_alloc(struct device * dev,
int max_ports);
ARGUMENTS¶
devgeneric device this host is associated
with
max_ports
maximum number of ATA ports associated with
this host
DESCRIPTION¶
Allocate and initialize basic ATA host resources. LLD calls this function to allocate a host, initializes it fully and attaches it using ata_host_register.RETURNS¶
Allocate ATA host on success, NULL on failure.LOCKING¶
Inherited from calling layer (may sleep).AUTHOR¶
Jeff GarzikAuthor.
COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |