* Allocate memory once for several disparate objects. * * This function adds iovec-like semantics (e.g. readv()) to rte_malloc(). * Memory is allocated once for several contiguous objects of nonuniform * sizes and alignment constraints. * * Each entry of @p vec describes the size, alignment constraint and * provides a buffer address where the resulting object pointer must be * stored. *
| 135 | * @see rte_malloc() |
| 136 | */ |
| 137 | size_t |
| 138 | mlx4_mallocv(const char *type, const struct mlx4_malloc_vec *vec, |
| 139 | unsigned int cnt) |
| 140 | { |
| 141 | return mlx4_mallocv_inline(type, vec, cnt, 0, SOCKET_ID_ANY); |
| 142 | } |
| 143 | |
| 144 | /** |
| 145 | * Combines the semantics of mlx4_mallocv() with those of rte_zmalloc(). |
nothing calls this directly
no test coverage detected