How to wake up my application unless a specific SIGIO happens?
I'm using a driver for a pci UART device that handles both serial ports and GPIO's by interruption.
At the application level I will have two applications one which will handles only the GPIO part and the other which will handles only the serial port communication, so I wan't my GPIO application to be awaken only if the source of the interrupt is GPIO and respectively the serial port application to be awaken only when the source of the interrupt is from a serial port.
From what I understand if I use SIGIO, my applications will be awaken for the 2 kinds of interrupts and they will have to find out if they are concerned by the interrupt. But I don't want applications to have to test if they are concerned by the interrupt.
Is there a way to do such a thing? I looked how SIGUSR signals are used but I didn't find out if they are applicable in my case?
Thanks a lot in advance for your help.