how to create a buffers Queue in nonpagedpool

hi all
i am trying to create a device which maintains a fifo inside it of buffers.
I am trying to keep the queue of buffers in the kernel mode.

  1. How can i make it sure that it doesnot paged out .
  2. How to share that fifo with other driver.

There is no physical device just the Queue being maintained which is given the data from application program.

Thanks in advance
shishir

Allocate queue elements using ExAllocPool(NonPaged, …).You might also use
the look aside calls to maintain a “pool” of buffers and then use the
ExInterlockedXxxxList commands to housekeep the list.

-----Original Message-----
From: sak [mailto:xxxxx@hpsblr.soft.net]
Sent: Tuesday, September 19, 2000 6:58 AM
To: NT Developers Interest List
Subject: [ntdev] how to create a buffers Queue in nonpagedpool

hi all
i am trying to create a device which maintains a fifo inside it of buffers.
I am trying to keep the queue of buffers in the kernel mode.

  1. How can i make it sure that it doesnot paged out .
  2. How to share that fifo with other driver.

There is no physical device just the Queue being maintained which is given
the data from application program.

Thanks in advance
shishir

>1. How can i make it sure that it doesnot paged out .

Allocate it from nonpaged memory.

  1. How to share that fifo with other driver.

Pass the pointer via IOCTL.

Max