Jungo WinDriver  
Official Documentation

◆ WD_KernelBufLock

#define WD_KernelBufLock (   h,
  pKerBuf 
)
Value:
#define FALSE
Definition: kpstdlib.h:260
#define IOCTL_WD_KERNEL_BUF_LOCK
Definition: windrvr.h:1613
#define WD_FUNCTION
Definition: windrvr.h:1843

Allocates a contiguous or non-contiguous non-paged kernel buffer, and maps it to user address space.

This buffer should be used ONLY for shared buffer purposes (The buffer should NOT beused for DMA).

Parameters
[in]hHandle to WinDriver's kernel-mode driver as received from WD_Open().
[in,out]pKerBufPointer to a WD_KERNEL_BUFFER information structure
Returns
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise
DWORD dwStatus;
BZERO(buf);
buf.qwBytes = 200000;
buf.dwOptions = ALLOCATE_CONTIG_BUFFER | ALLOCATE_CACHED_BUFFER;
dwStatus = WD_KernelBufLock(hWD, &buf);
if (dwStatus)
{
printf("Could not lock down buffer\n");
}
else
{
/* To access the memory from your user mode
application, use buf.pUserAddr. */
}
DWORD dwOptions
Refer to WD_KER_BUF_OPTION.
Definition: windrvr.h:580
UINT64 qwBytes
Size of buffer.
Definition: windrvr.h:581
#define BZERO(buf)
Definition: windrvr.h:1553
#define WD_KernelBufLock(h, pKerBuf)
Allocates a contiguous or non-contiguous non-paged kernel buffer, and maps it to user address space.
Definition: windrvr.h:1948

Definition at line 1948 of file windrvr.h.