How to sleep in NDIS6.0 lwf driver?

Hi All,

I’m deveop an ndis 6.0 filter driver, for some reason I want to sleep in my code.I found NdisMSleep function but it doesn’t work for me. Is there any function can in instead of it?

Thanks a lot!

NdisMSleep uses a simple KeSetTimer / KeWaitForSinglObject method. Are you
sure you have your time interval correct and are running at PASSIVE_LEVEL?

KeStallExecutionProcessor or ZwDelayExecution are two ways of
stalling/sleeping. Although I’d suggest that if you’re doing this in your
driver, you’re likely using a bad design.

Ged.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of ericdm@163.com
Sent: 12 August 2016 09:09
To: Windows System Software Devs Interest List
Subject: [ntdev] How to sleep in NDIS6.0 lwf driver?

Hi All,

I’m deveop an ndis 6.0 filter driver, for some reason I want to sleep in my
code.I found NdisMSleep function but it doesn’t work for me. Is there any
function can in instead of it?

Thanks a lot!


NTDEV is sponsored by OSR

Visit the list online at:
http:

MONTHLY seminars on crash dump analysis, WDF, Windows internals and software
drivers!
Details at http:

To unsubscribe, visit the List Server section of OSR Online at
http:</http:></http:></http:>

Hi Ged,

Thanks for quick replay. It’s my fault, NdisMSleep is Microseconds, i wrong look milliseconds. too fool.