<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><DIV>hi,</DIV>
<DIV>   all</DIV>
<DIV>   I'm confused with the following code(Eal_memory.c in lib\librte_eal\linuxapp\eal directory, LINE 373):</DIV>
<DIV> </DIV>
<DIV>   nodestr = strstr(buf," N");</DIV>
<DIV>   if(nodestr == NULL) {...}</DIV>
<DIV>   nodestr += 2;</DIV>
<DIV>   end = strstr(nodestr,"=");</DIV>
<DIV>   if(end == NULL) {...}</DIV><SPAN style="COLOR: #880000">
<DIV>   // here nodestr = "0=1"</DIV></SPAN>
<DIV><SPAN style="COLOR: #880000"></SPAN>   end[0] = '\0';</DIV>
<DIV>   end = NULL;</DIV>
<DIV> <SPAN style="COLOR: #880000"> // here nodestr = "0"</SPAN></DIV>
<DIV><SPAN style="COLOR: #880000"></SPAN>   socket_id = strtoul(nodestr,&end,0);</DIV>
<DIV> </DIV>
<DIV>   Through "printf", I know that:</DIV>
<DIV>   buf = "00200000 default file=/mnt/dpdk/huge/rtemap_1 huge dirty=1 N0=1"</DIV>
<DIV>   And finally socket_id=0</DIV>
<DIV>   My question is :why we get the socket_id before "=" instead of after "=" ?</DIV>
<DIV>   and if we want to get the character after "N", isn't this code too complex?</DIV>
<DIV> </DIV>
<DIV>   I will be very appreciate for any help.</DIV>
<DIV>   Regards!</DIV>
<DIV> </DIV>
<DIV>Maria</DIV>
<DIV>   </DIV></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>