Summary

This chapter presented two distinct methods of dealing with time within a driver. Typically, a driver needs to keep track of time either to ensure the device is working normally or to poll for further device interaction.

The I/O Timer mechanism is simple but crude, generating callbacks at fixed one-second intervals.

CustomTimerDpc routines are used primarily for efficient polling of devices in lieu of device interrupts.

The next chapter deals with DMA operations within the device and its associated driver.

Get Windows® 2000 Device Driver Book: A Guide for Programmers, Second Edition, The now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.