Virtual Devices (3.1) (vdag31qh.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_PageGetAllocInfo
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
include vmm.inc
 
VMMcall _PageGetAllocInfo, <flags>
 
mov     [Free], eax         ; count of free pages
mov     [Lockable], edx     ; count of lockable pages
 
The _PageGetAllocInfo service returns the size in pages of the largest block
of linear address space that can be allocated. It also returns the number of
pages that can be allocated as locked or fixed memory.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
flags      Specifies the operation flags. This parameter must be set to 0.
 
Return Value
 
The EAX register contains a count of free pages available, and the EDX
register contains a count of pages available for allocating as locked
pages.
 
Comments
 
Virtual devices must not rely on being able to allocate all pages specified
by this service. In general, virtual devices should allocate memory as
needed, and not attempt to allocate all available memory.
 
Virtual device must not rely on the count of free pages being greater than
or equal to the count of pages available for locking.
 
Uses
 
EAX, EDX
 
See Also
 
_PageAllocate