From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by dpdk.org (Postfix) with ESMTP id 470C6B0A3 for ; Wed, 7 May 2014 18:33:42 +0200 (CEST) Received: by mail-pd0-f172.google.com with SMTP id g10so1292306pdj.3 for ; Wed, 07 May 2014 09:33:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=zJoI+igjHBcGUuOfhUpjX6RkUQGuhf/ocbfV8zDiOdI=; b=UJwDD38+24LIDkei8Bnb4a90Z4ENj69XEzoQKnhpLuT0WAnEZzChv6fA/qoeFyT2W1 fjiCuBoB8TgkXNytJ29OhiqDGp9NwmMTs59EPO0rljZYB+pRWojFHQB1xxLE1GIrt+l0 sm9qbyXqmBThYykZr4LUpkN/DPZwocRkPlXq82rZ+GU9mqUY5aF49UWM+LM+kQf+MuUg Wacd9H+q6E0VnArnY5tf8aCZ2WO2YouAukay0XEy13J3UAF+49CYZvJ/PsuAZiEZlbaV u9bDjSEEWc6VzJgVlpYKDALHKCu2PM5VVoJ78LrMS+DGxRJm7wRVZGKzZ50IMPkdfuuo h7xg== X-Gm-Message-State: ALoCoQnEUeyL+Ydu4QX2hXUlUqWN+H6bfgPH1s/yow7BKNKWc43eb0tYXSeHANMBBPhISxKo3Df4 X-Received: by 10.66.137.109 with SMTP id qh13mr20779269pab.39.1399480427128; Wed, 07 May 2014 09:33:47 -0700 (PDT) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id hk5sm4020820pbb.86.2014.05.07.09.33.46 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 07 May 2014 09:33:46 -0700 (PDT) Date: Wed, 7 May 2014 09:33:43 -0700 From: Stephen Hemminger To: "Burakov, Anatoly" Message-ID: <20140507093343.3076b6b5@nehalam.linuxnetplumber.net> In-Reply-To: References: <20140502234251.707598579@vyatta.com> <20140502234406.153584277@vyatta.com> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH 4/5] memzone: add iterator function X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 May 2014 16:33:42 -0000 On Tue, 6 May 2014 09:17:46 +0000 "Burakov, Anatoly" wrote: > Hi Stephen, > > > When doing diagnostic function, it is useful to have a ability to iterate over all > > memzones. > > > > You can already access all memzones through rte_eal_get_configuration()->mem_config.memzone[idx]. > > Best regards, > Anatoly Burakov > DPDK SW Engineer > Yes you can look at memzone[idx] to look at individual zones, but there is no thread safe way to iterate.