Sunday 15 June 2014

linux - How to know when a schedule() call is returning because of a signal? -


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?

schedule call:

 After  (after the signal_pending (current), some with this type of rows : Class = "post-text" itemprop = "text")) {retval = -EINTR;  

No comments:

Post a Comment