1 /* SPDX-License-Identifier: BSD-3-Clause
2 * Copyright(c) 2010-2014 Intel Corporation
11 * RTE ACL temporary (build phase) memory management.
12 * Contains structures and functions to manage temporary (used by build only)
13 * memory. Memory allocated in large blocks to speed 'free' when trie is
14 * destructed (finish of build phase).
17 #include <rte_acl_osdep.h>
21 struct tb_mem_block *next;
22 struct tb_mem_pool *pool;
28 struct tb_mem_block *block;
32 /* jump target in case of memory allocation failure. */
36 void *tb_alloc(struct tb_mem_pool *pool, size_t size);
37 void tb_free_pool(struct tb_mem_pool *pool);
39 #endif /* _TB_MEM_H_ */