NWMemorySizeAddressable

Returns the amount of addressable memory

Local Servers:nonblocking
Remote Servers:N/A
Classification:Other
Service:Memory Allocation

Syntax

  #include <nwmalloc.h> 
    
  int NWMemorySizeAddressable  (  
     const void  *addr,  
     size_t       size);
  

Return Values

On success, NWMemorySizeAddressable returns the number of bytes of valid, addressable memory, starting at the locating pointed to by the addr parameter. On failure, this function returns 0 and sets errno and NWErrno to ERR_INVALID_ADDRESS or other appropriate error code

Parameters

addr
(IN) Points to the memory to be queried.
size
(IN) Specifies the amount of memory in bytes to be marked as addressable.

Remarks

NWMemorySizeAddressable

See Also

NWGetAvailableMemory, NWGetAllocPageOverhead, NWGetPageSize