K
kindsol
Hello.
I maintain a WDM driver that get's instantiated/created by multiple
processes. Problem is that any process could possible call my
DISABLE_INTERRUPTS ioctl call which would disable interrupts for all
remaining processes.
Is there a way to disable interrupts only if the calling process is the only
process that has created an instance of the driver? Any suggestions?
I was think of something similar to a counting semaphore, but this semaphore
counter would need to be decremented even if a process died without a
"clean" exit. Is there a way to tell how many processes are attached (or
have created a handle to) a given device driver?
thank you for any guidance
I maintain a WDM driver that get's instantiated/created by multiple
processes. Problem is that any process could possible call my
DISABLE_INTERRUPTS ioctl call which would disable interrupts for all
remaining processes.
Is there a way to disable interrupts only if the calling process is the only
process that has created an instance of the driver? Any suggestions?
I was think of something similar to a counting semaphore, but this semaphore
counter would need to be decremented even if a process died without a
"clean" exit. Is there a way to tell how many processes are attached (or
have created a handle to) a given device driver?
thank you for any guidance