Hi,
I wonder if its possible to have 2 ISR for the same device? For example, I want to test a driver for my HD but I dont want to unload the current driver who is handling I/O request to my hard drive. Is is possible? What will happen when my HD will send an interrupt? Is both ISR will be able to tell if it was one of their request or not?
Thank you
That is a bad idea. But, if you really want to do that, you can do that. Kernel anyway invokes all the handlers registered with that interrupt line one by one. The handlers have the responsibility to return quickly if the interrupt was not for them (by returning IRQ_NONE).