Sleeping in KMDF?

I realize that the Windows model assumes your going to either complete I/O quickly or mark the requests as pending, but is there simple way to issue a sleep()?

When my device is installed I read the configuration of the device. However, part of the process is for me to first enable it, then hardware takes x amount of time to populate the configuration data, then I read that configuration data.

Is there a simple way for me to stall execution to allow hardware to fetch the configuration data?

Look at KeDelayExecutionThread or KeStallExecutionProcessor (if it is a
small wait).


Don Burn (MVP, Windows DDK)
Windows Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply

wrote in message news:xxxxx@ntdev…
>I realize that the Windows model assumes your going to either complete I/O
>quickly or mark the requests as pending, but is there simple way to issue a
>sleep()?
>
> When my device is installed I read the configuration of the device.
> However, part of the process is for me to first enable it, then hardware
> takes x amount of time to populate the configuration data, then I read
> that configuration data.
>
> Is there a simple way for me to stall execution to allow hardware to fetch
> the configuration data?
>