[dpdk-dev] rte_malloc
Mahdi Moradmand Badie
mahdi.mbadie at gmail.com
Mon May 9 19:32:29 CEST 2016
Hello All,
I had a problem regarding use the rte_malloc.
I want to know if I want to use rte_malloc instead of malloc just mak
change like this
struct lcore_params *p = malloc
<http://dpdk.org/doc/api/rte__malloc_8h.html#afb7316a4ec228ed9b8ffc1864b03d85b>
(sizeof(*p)); ==>
struct lcore_params *p = rte_malloc
<http://dpdk.org/doc/api/rte__malloc_8h.html#afb7316a4ec228ed9b8ffc1864b03d85b>(NULL,
sizeof(*p), 0);
is enough ?
Because I have problem and Segmentation fault (core dumped) ??
Thanks in advance,
--
M at hdi Mor at dm@nd B at die
More information about the dev
mailing list