Jump to content

KernVMLock: Difference between revisions

From EDM2
Ak120 (talk | contribs)
m Ak120 moved page OS2 API:KEE:KernVMLock to KernVMLock
Ak120 (talk | contribs)
mNo edit summary
Line 6: Line 6:


==Parameters==
==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.


flags
[[Category:KEE]]
    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.
 
[[Category:The OS/2 API Project]]

Revision as of 12:24, 27 February 2017

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.