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, | |
...); |
devPCI device to operate on
nrdevice-relative interrupt vector index (0-based).
handlerFunction 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_fnFunction called from the IRQ handler thread If NULL, no IRQ thread is created
dev_idCookie passed back to the handler function
fmtPrintf-like format string naming the handler
...variable arguments