* Socket-aware version of mlx4_mallocv(). * * This function takes one additional parameter. * * @param socket * NUMA socket to allocate memory on. If SOCKET_ID_ANY is used, this * function will behave the same as mlx4_mallocv(). * * @see mlx4_mallocv() * @see rte_malloc_socket() */
| 167 | * @see rte_malloc_socket() |
| 168 | */ |
| 169 | size_t |
| 170 | mlx4_mallocv_socket(const char *type, const struct mlx4_malloc_vec *vec, |
| 171 | unsigned int cnt, int socket) |
| 172 | { |
| 173 | return mlx4_mallocv_inline(type, vec, cnt, 0, socket); |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Combines the semantics of mlx4_mallocv_socket() with those of |
nothing calls this directly
no test coverage detected