HoldMemory
HoldMemory Make part of the address space resident in memory Debugger Support Under Virtual Memory
void * address is the start address of the memory range
The HoldMemory function makes a portion of the address space resident in physical memory and ineligible for paging.
address is the start address of the range of memory that is to be held
in RAM
count is the size in bytes of that range.
noErr (0) No error
paramErr (-50) Error in parameter list
notEnoughMemoryErr (-620) Insufficient physical memory
interruptsMaskedErr (-624) Called with interrupts masked
Notes: If the starting address parameter supplied to the HoldMemory function is not on a page boundary, then it is rounded down to the nearest page
boundary. Similarly, if the specified range does not end on a page boundary,
the count parameter is rounded up so that the entire range of memory is
held.