Scroll to navigation

PCI_REQUEST_IRQ(9) Hardware Interfaces PCI_REQUEST_IRQ(9)

NAME

pci_request_irq - allocate an interrupt line for a PCI device

SYNOPSIS

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, ...);

ARGUMENTS

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

DESCRIPTION

This call allocates interrupt resources and enables the interrupt line and IRQ handling. From the point this call is made handler and thread_fn may be invoked. All interrupts requested using this function might be shared.

dev_id must not be NULL and must be globally unique.

COPYRIGHT

June 2024 Kernel Hackers Manual 3.10