Important: The information in this document is obsolete and should not be used for new development.
UnholdMemory
To make a currently held range of memory eligible for paging again, use theUnholdMemory
function.
FUNCTION UnholdMemory (address: UNIV Ptr; count: LongInt): OSErr;
address
- The starting address of the range of memory to be released.
count
- The size, in bytes, of the range of memory to be released.
DESCRIPTION
TheUnholdMemory
function makes the portion of the address space beginning ataddress
and having a size ofcount
bytes eligible for paging.If the
address
parameter supplied to theUnholdMemory
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, thecount
parameter is rounded up so that the entire range of memory is released.ASSEMBLY-LANGUAGE INFORMATION
The trap macro and routine selector for theUnholdMemory
function are
Trap macro Selector _MemoryDispatch $0001 The registers on entry and exit for this routine are
Registers on entry D0 Selector code A0 Starting address A1 Number of bytes to release
Registers on exit D0 Result code RESULT CODES
noErr 0 No error paramErr -50 Error in parameter list notHeldErr -621 Specified range of memory is not held interruptsMaskedErr -624 Called with interrupts masked