From: Keir Fraser Date: Mon, 12 Jul 2010 17:33:30 +0000 (+0100) Subject: sysctl: Make meaning of max_cpu_index field clearer. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~11799 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2bdeb12ffb918055730296f47f2704621b42884b;p=xen.git sysctl: Make meaning of max_cpu_index field clearer. Signed-off-by: Keir Fraser --- diff --git a/xen/include/public/sysctl.h b/xen/include/public/sysctl.h index 56506e56a4..71edbf5340 100644 --- a/xen/include/public/sysctl.h +++ b/xen/include/public/sysctl.h @@ -476,8 +476,8 @@ struct xen_sysctl_topologyinfo { * each cpu. * If a cpu has no core/socket/node information (e.g., cpu not present) * then the sentinel value ~0u is written. - * 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 + * The size of this array is specified by the caller (@max_cpu_index+1). + * If the array has more than @max_cpu_index+1 elements then the trailing * elements of the array will not be written by the sysctl. */ XEN_GUEST_HANDLE_64(uint32) cpu_to_core;