Hello all,
I want to acqure synchronization between Video ISR and ioctls routines in video miniport to protect a share buffer.
But I wonder if I could use run - time routines such as KeAcquireSpinLock / KeReleaseSpinLock in the video miniport driver.
Now I use VideoPortAcquire/ReleaseDeviceLock instead. Is it safe to use these two routines in the ISR.
Thanks,
Matt
> Hello all,
I want to acqure synchronization between Video ISR and ioctls routines in video miniport to protect a share buffer.
But I wonder if I could use run - time routines such as KeAcquireSpinLock / KeReleaseSpinLock in the video miniport driver.
Now I use VideoPortAcquire/ReleaseDeviceLock instead. Is it safe to use these two routines in the ISR.
Thanks,
In a miniport, as in a regular driver, in the ISR you can’t use any any
kind of locks. Use VideoPortSynchronizeExecution.
HTH
-tzvetan
Tzvetan Mikov,
Thanks for your reply.
I’ve noticed that NTDDK advices VideoPortSynchronizeExecution, as you said.
But now I’m blocked at “HwVidSynchronizeExecutionCallback” ? I wonder what sould be done in this callback routine and how the video port sync the callback routine and the ISR. Does the callback routine run at DIRQL same to the ISR ?
Matt
> Hello all,
>
> I want to acqure synchronization between Video ISR and ioctls routines in video miniport to protect a share buffer.
>
> But I wonder if I could use run - time routines such as KeAcquireSpinLock / KeReleaseSpinLock in the video miniport driver.
>
> Now I use VideoPortAcquire/ReleaseDeviceLock instead. Is it safe to use these two routines in the ISR.
>
> Thanks,
In a miniport, as in a regular driver, in the ISR you can’t use any any
kind of locks. Use VideoPortSynchronizeExecution.
HTH
-tzvetan
You are currently subscribed to ntdev as: mattwu@163.com
To unsubscribe send a blank email to %%email.unsub%%