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?
It is possible to have multiple ISRs for the same IRQ line (In fact, we have this scenario most of the time). But typically those ISRs will be catering to different devices sharing the same IRQ line. Having multiple ISRs for the same device does not logically make any sense (If you really want, why not merge the work of two ISRs into single?). The whole point of having an ISR is that you want to handle a unique source of IRQ, and hence you need to pass a unique device_id to request_irq(). You can hook any number of ISRa to an IRQ line untill you provide a different devid to each ISR. Next, the onus of telling whether the interrupt belonged to their device or not lies with the ISR. Thanks, Rajat -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ