IoConnectInterruptEx Question

Hi All,
I am trying to use IoConnectInterruptEx to connect my MSI based Interrupt handler. The question that I have is :

  1. If my controller uses two messages for interrupt then will I have two different InterruptObjects allocated for me?

  2. If step 1 is TRUE then when I call KeSynchronizeExecution I will have to pass it the correct interrupt object to which I want to synchronize the execution? is that correct?

Thanks,
driver_coder


Ring’em or ping’em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.

Yes to both. If you provide the spinlock, you can provide a single lock
which will be used with both objects, which will allow you to use either one
with KeSynchronizeExecution. But that, of course, means that you’ll have
more lock contention, since both messages will use the same lock. You
figure out what makes sense in your driver.


Jake Oshins
Windows Kernel Group

The Virtual Machine Team at Microsoft is hiring. Contact
xxxxx@microsoft.com for more information.

This posting is provided “AS IS” with no warranties, and confers no rights.

“Driver Coder” wrote in message news:xxxxx@ntdev…
Hi All,
I am trying to use IoConnectInterruptEx to connect my MSI based
Interrupt handler. The question that I have is :

1. If my controller uses two messages for interrupt then will I have two
different InterruptObjects allocated for me?

2. If step 1 is TRUE then when I call KeSynchronizeExecution I will have to
pass it the correct interrupt object to which I want to synchronize the
execution? is that correct?

Thanks,
driver_coder

Ring’em or ping’em. Make PC-to-phone calls as low as 1¢/min with Yahoo!
Messenger with Voice.