Query: ata_host_activate
OS: centos
Section: 9
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ATA_HOST_ACTIVATE(9) libata Library ATA_HOST_ACTIVATE(9)NAMEata_host_activate - start host, request IRQ and register itSYNOPSISint ata_host_activate(struct ata_host * host, int irq, irq_handler_t irq_handler, unsigned long irq_flags, struct scsi_host_template * sht);ARGUMENTShost target ATA host irq IRQ to request irq_handler irq_handler used when requesting IRQ irq_flags irq_flags used when requesting IRQ sht scsi_host_template to use when registering the hostDESCRIPTIONAfter allocating an ATA host and initializing it, most libata LLDs perform three steps to activate the host - start host, request IRQ and register it. This helper takes necessasry arguments and performs the three steps in one go. An invalid IRQ skips the IRQ registration and expects the host to have set polling mode on the port. In this case, irq_handler should be NULL.LOCKINGInherited from calling layer (may sleep).RETURNS0 on success, -errno otherwise.AUTHORJeff Garzik Author.COPYRIGHTKernel Hackers Manual 3.10 June 2014 ATA_HOST_ACTIVATE(9)