MCPcopy Create free account
hub / github.com/F-Stack/f-stack / mlx4_mallocv

Function mlx4_mallocv

dpdk/drivers/net/mlx4/mlx4_utils.c:137–142  ·  view source on GitHub ↗

* 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. *

Source from the content-addressed store, hash-verified

135 * @see rte_malloc()
136 */
137size_t
138mlx4_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().

Callers

nothing calls this directly

Calls 1

mlx4_mallocv_inlineFunction · 0.85

Tested by

no test coverage detected