GetDeviceMemoryAddress

nn::os::GetDeviceMemoryAddress Function

Syntax

#include <nn/os.h>

uptr GetDeviceMemoryAddress();

Parameters

None.

Return Values

Returns the starting address of the device memory.

Description

Gets the starting address of the device memory.

A value greater than zero must be set in advance with SetDeviceMemorySize.

In the Development/Debug builds, if device memory has not been allocated at the time that this function is called it will fail on an assertion inside the library. In the Release build, the function will return 0.

Revision History

2011/06/22
Added mention of the behavior of the function when called in the unallocated state.
2010/01/07
Initial version.

CONFIDENTIAL