WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] xenpm: fix get-cpu-topology

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, "Wei, Gang" <gang.wei@xxxxxxxxx>
Subject: Re: [Xen-devel] xenpm: fix get-cpu-topology
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 12 Jul 2010 18:19:41 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 12 Jul 2010 10:20:11 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <19515.19345.639405.425265@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acsh5I/jAKAtKcfERN2xEPPEm1Q2aAAAdnXB
Thread-topic: [Xen-devel] xenpm: fix get-cpu-topology
User-agent: Microsoft-Entourage/12.24.0.100205
On 12/07/2010 18:06, "Ian Jackson" <Ian.Jackson@xxxxxxxxxxxxx> wrote:

>      * The size of this array is specified by the caller in @max_cpu_index.
>      * If the actual @max_cpu_index is smaller than the array then the
> trailing
>      * elements of the array will not be written by the sysctl.
>      */
> 
> So is it the size of the array or the maximum index ?

It's the maximum index. Pedantically, that is sufficient to specify the size
of the array. It is unnecessarily confusing wording though.

 -- Keir



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>