Re: Interrupt Synchronization at PASSIVE_LEVEL

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance





"David Craig" wrote:

You must use an interrupt spinlock. Acquiring it will ensure you are at the
correct IRQL. This also applies to regular spinlocks but avoid them, if
possible, by doing a good design.

"shivaprasad" <shivaprasad@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:793E07D6-DCA8-44B8-8C54-859FCA329731@xxxxxxxxxxxxxxxx
Hi,

Im working on Sdio2com driver development for WinXP.I have registered
callback routine for sdiointerrupt and CallbackAtDpcLevel is set to
false(i.e
PASSIVE_LEVEL).
Now i have some functions which will use some resource which is shared
with
the interrupt routine(callback routine).Question is how to synchronize
these
two.
For using spinlocks and mutexes the driver should be running above
APC_LEVEL.

Is there any method for synchronization???


Im not creating interrupt object for the interrupt.For sdio we will get only
interrupt callback routine.My driver is running in PASSIVE_LEVEL,so i cannot
use any of the spinlocks...
.



Relevant Pages

  • RE: PROBLEM: kernel oops with g_serial USB gadget on 2.6.30
    ... as the S3C OTG UDC driver does all its job in interrupts. ... way also a packet_done callback is done from an interrupt. ...
    (Linux-Kernel)
  • Re: Thread in driver
    ... And the driver is able to do the callback ... whenever there is an interrupt. ... This kind of solution will work only if your callback is inside ... If you need to implement such a mechanism, use a named event and set ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Thread in driver
    ... is a classic IPC issue and could be replicated without a driver. ... break from Callback as well. ... Valter Minutewww.fortechembeddedlabs.it ... the number once they got an interrupt. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Thread in driver
    ... And the driver is able to do the callback ... whenever there is an interrupt. ... This kind of solution will work only if your callback is inside ... If you need to implement such a mechanism, use a named event and set ...
    (microsoft.public.windowsce.platbuilder)
  • Re: 2.6.19 and up to 2.6.20-rc2 Ethernet problems x86_64
    ... If the system fails in ACPI mode, but works in non-ACPI mode, ... Using ACPI for SMP configuration information ... Using IOAPIC for interrupt routing ... Non-volatile memory driver v1.2 ...
    (Linux-Kernel)