1PCI_REQUEST_IRQ(9)            Hardware Interfaces           PCI_REQUEST_IRQ(9)
2
3
4

NAME

6       pci_request_irq - allocate an interrupt line for a PCI device
7

SYNOPSIS

9       int pci_request_irq(struct pci_dev * dev, unsigned int nr,
10                           irq_handler_t handler, irq_handler_t thread_fn,
11                           void * dev_id, const char * fmt, ...);
12

ARGUMENTS

14       dev
15           PCI device to operate on
16
17       nr
18           device-relative interrupt vector index (0-based).
19
20       handler
21           Function to be called when the IRQ occurs. Primary handler for
22           threaded interrupts. If NULL and thread_fn != NULL the default
23           primary handler is installed.
24
25       thread_fn
26           Function called from the IRQ handler thread If NULL, no IRQ thread
27           is created
28
29       dev_id
30           Cookie passed back to the handler function
31
32       fmt
33           Printf-like format string naming the handler
34
35       ...
36           variable arguments
37

DESCRIPTION

39       This call allocates interrupt resources and enables the interrupt line
40       and IRQ handling. From the point this call is made handler and
41       thread_fn may be invoked. All interrupts requested using this function
42       might be shared.
43
44       dev_id must not be NULL and must be globally unique.
45
47Kernel Hackers Manual 3.10         June 2019                PCI_REQUEST_IRQ(9)
Impressum