FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
vec.c File Reference
+ Include dependency graph for vec.c:

Go to the source code of this file.

Functions

void * vec_resize_allocate_memory (void *v, word length_increment, uword data_bytes, uword header_bytes, uword data_align, uword numa_id)
 Low-level resize allocation function, usually not called directly. More...
 
uword clib_mem_is_vec_h (void *v, uword header_bytes)
 Predicate function, says whether the supplied vector is a clib heap object (general version). More...
 
u32 vec_len_not_inline (void *v)
 
void vec_free_not_inline (void *v)
 

Function Documentation

◆ clib_mem_is_vec_h()

uword clib_mem_is_vec_h ( void *  v,
uword  header_bytes 
)

Predicate function, says whether the supplied vector is a clib heap object (general version).

Parameters
vpointer to a vector
header_bytesvector header size in bytes (may be zero)
Returns
0 or 1

Definition at line 138 of file vec.c.

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

◆ vec_free_not_inline()

void vec_free_not_inline ( void *  v)

Definition at line 150 of file vec.c.

+ Here is the call graph for this function:

◆ vec_len_not_inline()

u32 vec_len_not_inline ( void *  v)

Definition at line 144 of file vec.c.

◆ vec_resize_allocate_memory()

void* vec_resize_allocate_memory ( void *  v,
word  length_increment,
uword  data_bytes,
uword  header_bytes,
uword  data_align,
uword  numa_id 
)

Low-level resize allocation function, usually not called directly.

Parameters
vpointer to a vector
length_incrementlength increment in elements
data_bytesrequested size in bytes
header_bytesheader size in bytes (may be zero)
data_alignalignment (may be zero)
numa_idnuma id (may be zero)
Returns
v_prime pointer to resized vector, may or may not equal v

Definition at line 44 of file vec.c.