1ATA_HOST_ACTIVATE(9) libata Library ATA_HOST_ACTIVATE(9)
2
3
4
6 ata_host_activate - start host, request IRQ and register it
7
9 int ata_host_activate(struct ata_host * host, int irq,
10 irq_handler_t irq_handler,
11 unsigned long irq_flags,
12 struct scsi_host_template * sht);
13
15 host
16 target ATA host
17
18 irq
19 IRQ to request
20
21 irq_handler
22 irq_handler used when requesting IRQ
23
24 irq_flags
25 irq_flags used when requesting IRQ
26
27 sht
28 scsi_host_template to use when registering the host
29
31 After allocating an ATA host and initializing it, most libata LLDs
32 perform three steps to activate the host - start host, request IRQ and
33 register it. This helper takes necessasry arguments and performs the
34 three steps in one go.
35
36 An invalid IRQ skips the IRQ registration and expects the host to have
37 set polling mode on the port. In this case, irq_handler should be NULL.
38
40 Inherited from calling layer (may sleep).
41
43 0 on success, -errno otherwise.
44
46 Jeff Garzik
47 Author.
48
50Kernel Hackers Manual 2.6. November 2011 ATA_HOST_ACTIVATE(9)