aboutsummaryrefslogtreecommitdiffstats
path: root/vlib-api/vlibmemory/api.h
diff options
context:
space:
mode:
Diffstat (limited to 'vlib-api/vlibmemory/api.h')
-rw-r--r--vlib-api/vlibmemory/api.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vlib-api/vlibmemory/api.h b/vlib-api/vlibmemory/api.h
index 117bf433651..516d321ff53 100644
--- a/vlib-api/vlibmemory/api.h
+++ b/vlib-api/vlibmemory/api.h
@@ -86,6 +86,13 @@ typedef struct vl_shmem_hdr_ {
} vl_shmem_hdr_t;
+/* Note that the size of the structure is 16 bytes, with 4 bytes of padding after data[0]. */
+typedef struct msgbuf_ {
+ unix_shared_memory_queue_t *q;
+ u32 data_len;
+ u8 data[0];
+} msgbuf_t;
+
#define VL_SHM_VERSION 2
#define VL_API_EPOCH_MASK 0xFF