function benchmark_pal_numa_free

From liblfds.org
Revision as of 20:16, 17 February 2017 by Admin (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

└───test_and_benchmark
    └───benchmark
        └───src
            └───porting_abstraction_layer_numa_free.c

Prototype

void benchmark_pal_numa_free( void *memory, lfds711_pal_uint_t size_in_bytes );

Parameters

void *memory

A pointer to an allocation returned by benchmark_pal_numa_malloc.

lfds711_pal_uint_t size_in_bytes

The number of bytes in the allocation pointed to by memory. Some NUMA free functions require this information, so the abstraction has to support it.

Return Value

No return value.

Example

void benchmark_pal_numa_free( void *memory, lfds711_pal_uint_t size_in_bytes )
{
  assert( memory != NULL );
  // TRD : size_in_bytes can be any value in its range

  numa_free( memory, size_in_bytes );

  return;
}

Notes

Returns an allocation made by libbenchmark_pal_numa_malloc to the system.

See Also