Static variables in non paged pool

Static variables in non paged pool

Postby Guest » Sun Jun 04, 2006 1:23 pm

I need to allocate synch objects in non paged pool, create them on driver load and delete them during unload. What is the best way to do it?
Guest
 

Postby Guest » Sun Jun 04, 2006 1:23 pm

Use Device Extension

From DDK:

For most intermediate and lowest-level drivers, the device extension is the most important data structure associated with a device object. Its internal structure is driver-defined, and it is typically used to:

— Maintain device state information.
— Provide storage for any kernel-defined objects or other system resources, such as spin locks, used by the driver.
— Hold any data the driver must have resident and in system space to carry out its I/O operations.
Guest
 


Return to Architecture, design and implementation

Who is online

Users browsing this forum: No registered users and 1 guest

cron