pub unsafe extern "C" fn mbuf_mem_ref(mem: *mut mbuf_mem) -> c_intExpand description
Increment the reference count of a memory chunk.
Note that a memory returned by mbuf_pool_get() already has a refcount of 1. This call is only needed if more than one object keep a reference on the memory at the same time.
@param mem: The memory to reference.
@return 0 on success, negative errno on error.