In a device driver for some PCI hardware, I have a
ioctl call that waits for the incoming PCI bus barrier using wait_queue_head_t Schedule () . By calling and soda, then the irq_handler function awakens. This function when the PCI bus is interrupted, everything seems to work properly.
My question is how to distinguish whether the schedule () call is returning it due to my irq_handler function, or because some signal Have been sent?
Do I have to handle it with the flag in the irq_handler function?