#include <cne_common.h>
#include <stdint.h>
Go to the source code of this file.
Pktmbuf Operation data and APIs
Definition in file pktmbuf_ops.h.
◆ mbuf_ctor_t
Initialization/Constructor function prototype
- Parameters
-
pi | The pktmbuf_info_t pointer, pktmbuf_pool_init() function |
- Returns
- 0 on success or -1 on error
Definition at line 33 of file pktmbuf_ops.h.
◆ mbuf_dtor_t
Destroy/Deconstructor function prototype
- Parameters
-
pi | The pktmbuf_info_t pointer, pktmbuf_pool_init() function |
Definition at line 41 of file pktmbuf_ops.h.
◆ mbuf_alloc_t
Allocation function prototype, used to allocate pktmbuf_t pointers.
- Parameters
-
pi | The pktmbuf_info_t pointer, pktmbuf_pool_init() function |
pkts | The vector array of pktmbuf_t pointers |
npkts | The number of valid pktmbuy_t pointers in the pkts array |
- Returns
- 0 on success or -1 on error
Definition at line 55 of file pktmbuf_ops.h.
◆ mbuf_free_t
Free function prototype, used to free pktmbuf_t pointers.
- Parameters
-
pi | The pktmbuf_info_t pointer, pktmbuf_pool_init() function |
pkts | The vector array of pktmbuf_t pointers |
npkts | The number of valid pktmbuy_t pointers in the pkts array can be zero |
Definition at line 67 of file pktmbuf_ops.h.
◆ mbuf_ops_t
Function pointers to operate in pktmbuf setup/alloc/free.
◆ pktmbuf_set_default_ops()
CNDP_API void pktmbuf_set_default_ops |
( |
mbuf_ops_t * |
ops | ) |
|
Set the default operation function pointers in the structure pointed to by ops
- Parameters
-
ops | A pointer to the structure to place the default mbuf operation function pointers. |