Virtual pointers passed from user mode

Hi,
I’m working on a project that
requires the driver to receive an array of
buffer pointers from user mode
and prepare one scatter gather list

getting the buffers via an Irp is
limited fop me since every pointer has some
metadata linked to it.
this is why I plan to get the pointers from
user mode via an IO Irp instead of
buffer Irp like MJ_READ/WRITE

my plan is to build an MDL for each virtual add.
with IoAllocateMdl + IoBuildMdl
and then, to ProbAndLockPages(…User_Mode)

Is this the right way ?

thanks.

Tomer Goldberg

Try the WriteFileGather Win32 call.

Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com

----- Original Message -----
From: tomerg
To: Windows System Software Devs Interest List
Sent: Wednesday, July 21, 2004 3:14 PM
Subject: [ntdev] Virtual pointers passed from user mode

Hi,
I'm working on a project that
requires the driver to receive an array of
buffer pointers from user mode
and prepare one scatter gather list

getting the buffers via an Irp is
limited fop me since every pointer has some
metadata linked to it.
this is why I plan to get the pointers from
user mode via an IO Irp instead of
buffer Irp like MJ_READ/WRITE

my plan is to build an MDL for each virtual add.
with IoAllocateMdl + IoBuildMdl
and then, to ProbAndLockPages(...User_Mode)

Is this the right way ?

thanks.

Tomer Goldberg

Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@storagecraft.com
To unsubscribe send a blank email to xxxxx@lists.osr.com