function benchmark_pal_numa_free

From liblfds.org
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, lfds710_pal_uint_t size_in_bytes );

Parameters

void *memory

A pointer to an allocation returned by benchmark_pal_numa_malloc.

lfds710_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, lfds710_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