FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
mem.c File Reference
+ Include dependency graph for mem.c:

Go to the source code of this file.

Functions

static void no_heap (void)
 
static_always_inline int check_vpp_heap (void)
 
void * malloc (size_t size)
 
void free (void *p)
 
void * calloc (size_t nmemb, size_t size)
 
void * realloc (void *p, size_t size)
 
int posix_memalign (void **memptr, size_t alignment, size_t size)
 
void * aligned_alloc (size_t alignment, size_t size)
 
void * valloc (size_t size)
 
void * memalign (size_t alignment, size_t size)
 
void * pvalloc (size_t size)
 

Variables

__thread u64 vpp_mem_no_vpp_heap
 

Function Documentation

◆ aligned_alloc()

void* aligned_alloc ( size_t  alignment,
size_t  size 
)

Definition at line 86 of file mem.c.

+ Here is the call graph for this function:

◆ calloc()

void* calloc ( size_t  nmemb,
size_t  size 
)

Definition at line 54 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ check_vpp_heap()

static_always_inline int check_vpp_heap ( void  )

Definition at line 23 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ free()

void free ( void *  p)

Definition at line 42 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ malloc()

void* malloc ( size_t  size)

Definition at line 33 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ memalign()

void* memalign ( size_t  alignment,
size_t  size 
)

Definition at line 103 of file mem.c.

+ Here is the call graph for this function:

◆ no_heap()

static void no_heap ( void  )
static

Definition at line 14 of file mem.c.

+ Here is the caller graph for this function:

◆ posix_memalign()

int posix_memalign ( void **  memptr,
size_t  alignment,
size_t  size 
)

Definition at line 76 of file mem.c.

+ Here is the call graph for this function:

◆ pvalloc()

void* pvalloc ( size_t  size)

Definition at line 112 of file mem.c.

+ Here is the call graph for this function:

◆ realloc()

void* realloc ( void *  p,
size_t  size 
)

Definition at line 67 of file mem.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ valloc()

void* valloc ( size_t  size)

Definition at line 95 of file mem.c.

+ Here is the call graph for this function:

Variable Documentation

◆ vpp_mem_no_vpp_heap

__thread u64 vpp_mem_no_vpp_heap

Definition at line 12 of file mem.c.