Carbon


DebuggerUnlockMemory

Header: MacMemory.h Carbon status: Unsupported

Undoes the effect of DebuggerLockMemory. Makes a portion of the address space movable in real memory and eligible for paging again.

OSErr DebuggerUnlockMemory (
    void *address, 
    UInt32 count
);
Parameter descriptions
address

A pointer indicating the starting address of the range of memory that is to be unlocked.

count

The size, in bytes, of the range of memory that is to be unlocked.

function result

A result code. A result code.

DISCUSSION

If the starting address you supply to the DebuggerUnlockMemory function is not on a page boundary, then DebuggerUnlockMemory rounds down to the nearest page boundary. Similarly, if the specified range does not end on a page boundary, DebuggerUnlockMemory rounds up the value you pass in the count parameter so that the entire range of memory is locked.

AVAILABILITY

Not supported in Carbon. Not available in Carbon.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)