DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] rte_malloc
@ 2016-05-09 17:32 Mahdi Moradmand Badie
  2016-05-10  8:12 ` Sergio Gonzalez Monroy
  0 siblings, 1 reply; 9+ messages in thread
From: Mahdi Moradmand Badie @ 2016-05-09 17:32 UTC (permalink / raw)
  To: dev

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@hdi Mor@dm@nd B@die

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2016-05-11 10:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-09 17:32 [dpdk-dev] rte_malloc Mahdi Moradmand Badie
2016-05-10  8:12 ` Sergio Gonzalez Monroy
2016-05-10 15:15   ` Mahdi Moradmand Badie
2016-05-10 15:17   ` Mahdi Moradmand Badie
2016-05-10 15:31     ` Sergio Gonzalez Monroy
2016-05-10 15:55       ` Mahdi Moradmand Badie
2016-05-10 16:12         ` Sergio Gonzalez Monroy
2016-05-10 16:13           ` Mahdi Moradmand Badie
2016-05-11 10:29             ` Sergio Gonzalez Monroy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).