October 2017
Intermediate to advanced
586 pages
14h 8m
English
You can register a callback to be run when the interruption (or interrupt line) you are interested in gets fired. You can achieve that with the request_irq() function, declared in <linux/interrupt.h>:
int request_irq(unsigned int irq, irq_handler_t handler,
unsigned long flags, const char *name, void *dev)
request_irq() may fail, and returns 0 on success. Other elements of the preceding code are outlined in detail as follows:
Read now
Unlock full access