NWGetAllocPageOverhead

Returns the number of bytes required to calculate integral (overhead+allocation) pages

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

Syntax

  #include <nwmalloc.h> 
    
  size_t NWGetAllocPageOverhead  (  
     size_t   pageCount);
  

Parameters

pageCount
(IN) Specifies the number of pages to be allocated.

Return Values

Returns the overhead size of a memory allocation.

Remarks

NWGetAllocPageOverhead returns the number of bytes to subtract from an allocation if a caller wants to ensure that the overhead plus the allocation remain on integral pages.

See Also

NWGetAvailableMemory, NWGetPageSize, NWMemorySizeAddressable