pub unsafe extern "C" fn mbuf_pool_get(
pool: *mut mbuf_pool,
ret_obj: *mut *mut mbuf_mem,
) -> c_intExpand description
Get a memory from the pool.
This function never blocks. If no buffers are available in the pool, this function either returns -EAGAIN or allocates a new memory, depending on the pool grow_policy parameter. If the allocation of new memory fails, the function returns -ENOMEM.
@param pool: The memory pool. @param ret_obj: [out] Pointer to the memory.
@return 0 on success, negative errno on error.