From 1dc5178097e62fc7137cf17cd16628675f0b5ee1 Mon Sep 17 00:00:00 2001 From: Dario Faggioli Date: Thu, 3 Oct 2013 19:46:02 +0200 Subject: libxl: introduce libxl_node_to_cpumap As an helper for the special case (of libxl_nodemap_to_cpumap) when one wants the cpumap for just one node. Signed-off-by: Dario Faggioli Acked-by: Ian Jackson --- tools/libxl/libxl_utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools/libxl/libxl_utils.h') diff --git a/tools/libxl/libxl_utils.h b/tools/libxl/libxl_utils.h index a430362fe5..7b84e6a0a4 100644 --- a/tools/libxl/libxl_utils.h +++ b/tools/libxl/libxl_utils.h @@ -129,6 +129,9 @@ static inline int libxl_node_bitmap_alloc(libxl_ctx *ctx, int libxl_nodemap_to_cpumap(libxl_ctx *ctx, const libxl_bitmap *nodemap, libxl_bitmap *cpumap); +/* Populate cpumap with the cpus spanned by node */ +int libxl_node_to_cpumap(libxl_ctx *ctx, int node, + libxl_bitmap *cpumap); /* Populate nodemap with the nodes of the cpus in cpumap */ int libxl_cpumap_to_nodemap(libxl_ctx *ctx, const libxl_bitmap *cpuemap, -- cgit v1.2.3