Home
last modified time | relevance | path

Searched refs:heap_name (Results 1 – 7 of 7) sorted by relevance

/dpdk/lib/eal/common/
H A Drte_malloc.c414 if (heap_name == NULL || va_addr == NULL || in rte_malloc_heap_memory_add()
428 heap = find_named_heap(heap_name); in rte_malloc_heap_memory_add()
443 heap_name, heap->socket_id); in rte_malloc_heap_memory_add()
476 heap = find_named_heap(heap_name); in rte_malloc_heap_memory_remove()
526 heap = find_named_heap(heap_name); in sync_memory()
594 if (heap_name == NULL || in rte_malloc_heap_create()
609 if (strncmp(heap_name, tmp->name, in rte_malloc_heap_create()
612 heap_name); in rte_malloc_heap_create()
631 ret = malloc_heap_create(heap, heap_name); in rte_malloc_heap_create()
644 if (heap_name == NULL || in rte_malloc_heap_destroy()
[all …]
H A Dmalloc_heap.h45 malloc_heap_create(struct malloc_heap *heap, const char *heap_name);
H A Dmalloc_heap.c1343 malloc_heap_create(struct malloc_heap *heap, const char *heap_name) in malloc_heap_create() argument
1368 strlcpy(heap->name, heap_name, RTE_HEAP_NAME_MAX_LEN); in malloc_heap_create()
1412 char heap_name[RTE_HEAP_NAME_MAX_LEN]; in rte_eal_malloc_heap_init() local
1415 snprintf(heap_name, sizeof(heap_name), in rte_eal_malloc_heap_init()
1417 strlcpy(heap->name, heap_name, RTE_HEAP_NAME_MAX_LEN); in rte_eal_malloc_heap_init()
/dpdk/lib/eal/include/
H A Drte_malloc.h342 rte_malloc_heap_memory_add(const char *heap_name, void *va_addr, size_t len,
373 rte_malloc_heap_memory_remove(const char *heap_name, void *va_addr, size_t len);
397 rte_malloc_heap_memory_attach(const char *heap_name, void *va_addr, size_t len);
421 rte_malloc_heap_memory_detach(const char *heap_name, void *va_addr, size_t len);
440 rte_malloc_heap_create(const char *heap_name);
463 rte_malloc_heap_destroy(const char *heap_name);
/dpdk/app/test/
H A Dtest_external_mem.c284 const char *heap_name = "heap"; in test_malloc_basic() local
290 if (rte_malloc_heap_create(heap_name) != 0) { in test_malloc_basic()
297 socket_id = rte_malloc_heap_get_socket(heap_name); in test_malloc_basic()
313 if (rte_malloc_heap_memory_add(heap_name, addr, len, in test_malloc_basic()
340 if (rte_malloc_heap_memory_remove(heap_name, addr, len) >= 0 || in test_malloc_basic()
346 if (rte_malloc_heap_destroy(heap_name) >= 0 || rte_errno != EBUSY) { in test_malloc_basic()
382 if (rte_malloc_heap_memory_remove(heap_name, addr, len) != 0) { in test_malloc_basic()
387 if (rte_malloc_heap_destroy(heap_name) != 0) { in test_malloc_basic()
399 rte_malloc_heap_memory_remove(heap_name, addr, len); in test_malloc_basic()
400 rte_malloc_heap_destroy(heap_name); in test_malloc_basic()
H A Dtest_malloc.c628 const char *heap_name = "realloc_heap"; in test_realloc() local
643 if (rte_malloc_heap_create(heap_name) != 0) { in test_realloc()
648 realloc_heap_socket = rte_malloc_heap_get_socket(heap_name); in test_realloc()
659 heap_name, mem, mem_sz, NULL, 0, page_sz) != 0) { in test_realloc()
674 rte_malloc_heap_memory_remove(heap_name, mem, mem_sz); in test_realloc()
678 rte_malloc_heap_destroy(heap_name); in test_realloc()
/dpdk/doc/guides/rel_notes/
H A Drelease_18_11.rst409 - Structure ``rte_malloc_heap`` now has a ``heap_name`` member