pci_request_irq — allocate an interrupt line for a PCI device
int pci_request_irq ( | struct pci_dev * dev, |
unsigned int nr, | |
irq_handler_t handler, | |
irq_handler_t thread_fn, | |
void * dev_id, | |
const char * fmt, | |
...) ; |
dev
PCI device to operate on
nr
device-relative interrupt vector index (0-based).
handler
Function to be called when the IRQ occurs. Primary handler for threaded interrupts. If NULL and thread_fn != NULL the default primary handler is installed.
thread_fn
Function called from the IRQ handler thread If NULL, no IRQ thread is created
dev_id
Cookie passed back to the handler function
fmt
Printf-like format string naming the handler
...
variable arguments