pub unsafe extern "C" fn mbuf_pool_destroy(
pool: *mut mbuf_pool,
) -> c_intExpand description
Destroy a memory pool.
If a pool is destroyed while not all memories are free, the library will send a warning log, but still delete all the memories. This usually leads to undefined behavior, and denotes a bug in the calling program.
@param pool: The memory pool.
@return 0 on success, negative errno on error.