Indication of ISR has been executed..

Hai everybody,
i want to know whether my ISR has been executed or not. This is my requirement, i have to start the data acquisition, once if data is available then i will get the interrupt, again i have to start my acquisition once again. what my thinking is i will wait for a notification event in start acquisition function, my ISR will set the event. Once if this event is released, i will start my next acquisition, i don’t want to use DPC because the data what i am going to get is very small in terms of 1 or 2 bytes,at the same time i have to repeat the same operation in terms of thousands. Is there any better way to do that? give me ur tips.

regards,
bala.r

Well your approach will blue screen, you cannot set the event in an ISR!
You can store the data in an ISR, and then either only set the event
periodically, or have a timer in acquistion code to poll the buffer every so
often to see what has come in.

Sounds in general like your hardware/software design is poor.


Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Remove StopSpam from the email to reply

“balasubramanian” wrote in message
news:xxxxx@ntdev…
Hai everybody,
i want to know whether my ISR has been executed or not. This is
my requirement, i have to start the data acquisition, once if data is
available then i will get the interrupt, again i have to start my
acquisition once again. what my thinking is i will wait for a notification
event in start acquisition function, my ISR will set the event. Once if this
event is released, i will start my next acquisition, i don’t want to use DPC
because the data what i am going to get is very small in terms of 1 or 2
bytes,at the same time i have to repeat the same operation in terms of
thousands. Is there any better way to do that? give me ur tips.

regards,
bala.r

You cannot set events from the ISR.

The way to go is - pend the IRP, on each ISR, retrieve 1 more byte from the hardware and then, if the IRP’s buffer is full, call KeInsertQueueDpc. The DPC must complete the IRP.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com

----- Original Message -----
From: balasubramanian
To: Windows System Software Devs Interest List
Sent: Thursday, August 11, 2005 4:24 PM
Subject: [ntdev] Indication of ISR has been executed…

Hai everybody,
i want to know whether my ISR has been executed or not. This is my requirement, i have to start the data acquisition, once if data is available then i will get the interrupt, again i have to start my acquisition once again. what my thinking is i will wait for a notification event in start acquisition function, my ISR will set the event. Once if this event is released, i will start my next acquisition, i don’t want to use DPC because the data what i am going to get is very small in terms of 1 or 2 bytes,at the same time i have to repeat the same operation in terms of thousands. Is there any better way to do that? give me ur tips.

regards,
bala.r


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com