[dpdk-dev] Get the socket id

2013-08-07 Thread dvr
question is :why we get the socket_id before "=" instead of after "=" ? and if we want to get the character after "N", isn't this code too complex? I will be very appreciate for any help. Regards! Maria -- next part -- An HTML attachment was scrubbed... URL: <http://dpdk.org/ml/archives/dev/attachments/20130807/4692c3d4/attachment.html>

[dpdk-dev] Get the socket id

2013-08-07 Thread Stephen Hemminger
On Wed, 7 Aug 2013 14:14:19 +0800 (CST) dvr wrote: > hi, >all >I'm confused with the following code(Eal_memory.c in > lib\librte_eal\linuxapp\eal directory, LINE 373): > >nodestr = strstr(buf," N"); >if(nodestr == NULL) {...} >nodestr += 2; >end = strstr(nodestr,"="); >

[dpdk-dev] Get the socket id

2013-08-07 Thread Damien Millescamps
On 08/07/2013 05:52 PM, Stephen Hemminger wrote: > But can't find any documentation > on numa_maps in detail. You should try with man 5 numa_maps. -- Damien Millescamps

[dpdk-dev] Get the socket id

2013-08-07 Thread Stephen Hemminger
On Wed, 07 Aug 2013 17:56:55 +0200 Damien Millescamps wrote: > On 08/07/2013 05:52 PM, Stephen Hemminger wrote: > > But can't find any documentation > > on numa_maps in detail. > You should try with man 5 numa_maps. > Thanks, knew it was there some where: N= The number of p