OSFreeVirtAddr

Syntax

#include <cafe/os.h>

BOOL OSFreeVirtAddr(va_t va, size_t size);

Parameters

va The starting address of the range.
size The size of the range.

Return Values

Returns TRUE on success, FALSE otherwise.

Description

Frees a range of virtual addresses previously allocated through OSAllocVirtAddr. There should not be any pages memory-mapped into the range. The range does not have to correspond to a range previously allocated through a single invocation of OSAllocVirtAddr; it might be a range that covers all or part of one or more such allocations.

Do Not Call From

None.

See Also

OSGetMemBound
OSGetPageSize
OSGetMapVirtAddrRange
OSGetDataPhysAddrRange
OSGetAvailPhysAddrRange
OSAllocVirtAddr
OSMapMemory
OSUnmapMemory

Revision History

2013/05/08 Automated cleanup pass.
2012/05/25 Match actual header.
2011/12/01 Initial version.


CONFIDENTIAL