|
FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
|
Go to the documentation of this file.
22 #include <sys/types.h>
25 #include <netinet/in.h>
71 time_t starttime = time (0);
72 char *datestring = ctime (&starttime);
95 demo1->
name =
format (0,
"My name is Ishmael%c", 0);
108 demo1, sizeof (demo1));
114 demo2 = demo1->
demo2;
116 fformat (stdout,
"demo2 location: %llx\n", demo2);
133 demo1->
demo2 = demo2;
162 time_t starttime = time (0);
163 char *datestring = ctime (&starttime);
177 demo1->
demo2 = demo2;
178 demo1->
name =
format (0,
"My name is Ishmael%c", 0);
189 checkpoint, sizeof (
u8));
203 demo2 = demo1->
demo2;
205 fformat (stdout,
"demo2 location: %llx\n", demo2);
221 pm->
c = svmdb_map_chroot_size (
"/ptest", 4 << 20);
231 else if (
unformat (input,
"serialize"))
void svmdb_local_set_vec_variable(svmdb_client_t *client, char *var, void *val_arg, u32 elsize)
void svmdb_unmap(svmdb_client_t *client)
__clib_export clib_error_t * unserialize(serialize_main_t *m,...)
clib_error_t * persist_malloc(persist_main_t *pm)
#define clib_error_return(e, args...)
void unserialize_demo1(serialize_main_t *sm, va_list *args)
#define clib_error_report(e)
__clib_export void serialize_open_vector(serialize_main_t *m, u8 *vector)
void * svmdb_local_get_variable_reference(svmdb_client_t *client, svmdb_namespace_t namespace, char *var)
#define vec_len(v)
Number of elements in vector (rvalue-only, NULL tolerant)
__clib_export clib_error_t * serialize(serialize_main_t *m,...)
static void svm_pop_heap(void *oldheap)
Fixed length block allocator. Pools are built from clib vectors and bitmaps. Use pools when repeatedl...
#define vec_validate(V, I)
Make sure vector is long enough for given index (no header, unspecified alignment)
__clib_export void serialize_cstring(serialize_main_t *m, char *s)
__clib_export void unserialize_open_data(serialize_main_t *m, u8 *data, uword n_data_bytes)
__clib_export void unserialize_cstring(serialize_main_t *m, char **s)
#define vec_free(V)
Free vector's memory (no header).
int main(int argc, char **argv)
persist_main_t persist_main
description fragment has unexpected format
__clib_export void * serialize_close_vector(serialize_main_t *m)
void * svmdb_local_get_vec_variable(svmdb_client_t *client, char *var, u32 elsize)
void serialize_demo1(serialize_main_t *sm, va_list *args)
clib_error_t * persist_serialize(persist_main_t *pm)
static void * svm_push_data_heap(svm_region_t *rp)
static void * clib_mem_alloc(uword size)