ATA_PORT_ALLOC(9) libata Core Internals ATA_PORT_ALLOC(9)NAMEata_port_alloc - allocate and initialize basic ATA port resourcesSYNOPSISstruct ata_port * ata_port_alloc(struct ata_host * host);ARGUMENTShost ATA host this allocated port belongs toDESCRIPTIONAllocate and initialize basic ATA port resources.RETURNSAllocate ATA port on success, NULL on failure.LOCKINGInherited from calling layer (may sleep).AUTHORJeff Garzik Author.COPYRIGHTKernel Hackers Manual 2.6. July 2010 ATA_PORT_ALLOC(9)