upipe/ubuf_mem.h header reference
Upipe functions to allocate ubuf managers using umem storage More
Header inclusion
Members
Function
- struct ubuf_mgr * ubuf_mem_mgr_alloc_from_flow_def(uint16_t ubuf_pool_depth, uint16_t shared_pool_depth, struct umem_mgr *umem_mgr, struct uref *flow_def)
Description
Upipe functions to allocate ubuf managers using umem storage
Members detail
This macro is declared in upipe/ubuf_mem.h source file, line 31.
struct ubuf_mgr * ubuf_mem_mgr_alloc_from_flow_def(uint16_t ubuf_pool_depth, uint16_t shared_pool_depth, struct umem_mgr *umem_mgr, struct uref *flow_def)
This function is declared in upipe/ubuf_mem.h source file, line 58.
This function allocates an ubuf manager using umem from a flow definition.
Parameter list:
- ubuf_pool_depth: maximum number of ubuf structures in the pool
- shared_pool_depth: maximum number of shared structures in the pool
- umem_mgr: memory allocator to use for buffers
- flow_def: flow definition packet
The return value is pointer to manager, or NULL in case of error