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).
21 #include <rte_acl_osdep.h>
25 struct tb_mem_block *next;
26 struct tb_mem_pool *pool;
32 struct tb_mem_block *block;
36 /* jump target in case of memory allocation failure. */
40 void *tb_alloc(struct tb_mem_pool *pool, size_t size);
41 void tb_free_pool(struct tb_mem_pool *pool);
47 #endif /* _TB_MEM_H_ */