Re: interrupt notification

From: Paul G. Tobey [eMVP] (ptobey)
Date: 11/02/04


Date: Tue, 2 Nov 2004 08:23:05 -0700

Or you might create a point-to-point message queue and send a different
message, depending on what the event was. You'd probably do this via a
DeviceIoControl() to your driver. Maybe it returns the queue handle or
maybe it generates a unique name for the queue and returns that, leaving the
queue creation to the application. Or, you might create a new class of
notifications and have the application call RequestDeviceNotifications().

Paul T.

"bsqr_TSAT" <TSatagaj at hotmail dot com> wrote in message
news:%236ey9xOwEHA.3320@TK2MSFTNGP14.phx.gbl...
> You could have your driver and your apps each create the same named event.
> After initializing, your app can WaitForSingleObject() on the event.
> When the interrupt occurs, your driver could set the event.
>
> BSQR_TSAT
>
>
>
> "Alain Roberge" <floroberge1@hotmail.com> wrote in message
> news:ED10FE9E-3591-4D1B-A78E-E15D6D24123D@microsoft.com...
>> Hi,
>> With WCE 5.0, i created a stream driver for my custom device in our
>> platform. This device generates interrupt. I create an IST routine that
>> receive the interrupts. All this functionnality work fine. But when an
>> interrupt occurs, the responsability of the driver is to notify the
>> applications. Depend of reason of the interrupt, the IST must send a
>> different notification to the aplpication.
>>
>> My question is: what is the best method for applications to register to
>> an
>> interrupt?
>> One method is to pass a handle to a window from my application to the
>> driver. The IST can lunch a PostMessage() function to notify application.
>> But this method needs a Window!!!
>>
>> Does anyone have other idea?
>> Thank you
>> Alain Roberge
>>
>>
>
>



Relevant Pages

  • Event Handling Mechanism in Windows
    ... CPU is interrupted by the Interrupt Controller which converts the ... an APC in the thread's APC queue. ... Q-1) How does the kenel knows which thread's APC to queue this ... Q-3) I assume that APC queue and Message queue are different. ...
    (microsoft.public.vc.mfc)
  • Event handling mechanism in Windows
    ... CPU is interrupted by the Interrupt Controller which converts the ... an APC in the thread's APC queue. ... Q-1) How does the kenel knows which thread's APC to queue this ... Q-3) I assume that APC queue and Message queue are different. ...
    (microsoft.public.win32.programmer.kernel)
  • [PATCH 502] MVME167 serial: Replace bottom half handler with task queue handler
    ... task queue handler, based on the Cyclades driver ... known also the "software interrupt" processing. ...
    (Linux-Kernel)
  • 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)
  • Re: [PATCH] uio: User IRQ Mode
    ... This patch adds a "User IRQ Mode" to UIO. ... In this mode the user space driver ... is responsible for acknowledging and re-enabling the interrupt. ...
    (Linux-Kernel)