KernVMLock
Appearance
Synopsis
APIRET APIENTRY KernVMLock(ULONG flags,PVOID linaddr,ULONG size, KEEVMLOCK* lock, KEEVMPageList* pglist, PULONG pgsize);
Description
This is the equivalent of the DevHlp_VMLock function. See the PDD docs for details.
Parameters
flags
One or more of the following bits:
KEE_VML_NOTBLOCK Don't block the call, if the pages can't be locked. KEE_VML_CONTIG Pages locked must be contiguous. KEE_VML_16M Pages must be below 16MB. KEE_VML_WRITEABLE Pages will be writeable. KEE_VML_LONGLOCK The lock is for long time. KEE_VML_VERIFYONLY Verify the accessibility of the region. If KEE_VML_WRITEABLE is set, check for R/W access, else R/O.
linaddr
linear address of the memory region.
size
Size of the memory region.
lock
Pointer to a lock data structure that contains the lock information.
pglist
Pointer to a pagelist structure, provided by the user
pgsize
Pointer to an ULONG where the size of the pagelist structure is returned.