function libshared_memory_add_memory

From liblfds.org
Revision as of 19:53, 26 May 2016 by Admin (talk | contribs) (Created page with "{{DISPLAYTITLE:function libshared_memory_add_memory}} ==Source Files== └── test_and_benchmark └── libshared ├── inc │ └── l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Source Files

└── test_and_benchmark
    └── libshared
        ├── inc
        │   └── libshared
        │       └── libshared_memory.h
        └── src
            └── libshared_memory
                └── libshared_memory_add.c

Opaque Structures

struct libshared_memory_state;

Prototype

void libshared_memory_add_memory( struct libshared_memory_state *ms,
                                  void *memory,
                                  lfds710_pal_uint_t memory_size_in_bytes );

Parameters

struct libshared_memory_state *ms

A pointer to an initialized struct libshared_memory_state.

void *memory

A pointer to a user-allocated block of memory to add to the memory state.

lfds710_pal_uint_t memory_size_in_bytes

The size in bytes of the memory pointed to by memory.

Notes

This function is used when adding memory for which the NUMA node is not known, e.g.. memory allocated by malloc.

Example

See Also