All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juergen Gross <juergen.gross@ts.fujitsu.com>
To: Ian Campbell <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: Re: [PATCH 1 of 4] Support getting topology info in libxl
Date: Wed, 08 Dec 2010 13:01:43 +0100	[thread overview]
Message-ID: <4CFF73A7.7080704@ts.fujitsu.com> (raw)
In-Reply-To: <1291805483.13966.4507.camel@zakaz.uk.xensource.com>

On 12/08/10 11:51, Ian Campbell wrote:
> On Fri, 2010-11-26 at 07:10 +0000, Juergen Gross wrote:
>
>> diff -r 79b71c77907b -r 37fdfe90e0c2 tools/libxl/libxl.h
>> --- a/tools/libxl/libxl.h       Wed Nov 24 10:20:03 2010 +0000
>> +++ b/tools/libxl/libxl.h       Thu Nov 25 09:29:43 2010 +0100
>> @@ -148,6 +148,13 @@
>>       uint8_t *map;
>>   } libxl_cpumap;
>>   void libxl_cpumap_destroy(libxl_cpumap *map);
>> +
>> +typedef struct {
>> +    uint32_t entries;
>> +    uint32_t *array;
>> +} libxl_cpuarray;
>> +#define LIBXL_CPUARRAY_INVENTRY  ~0
>
> This looked at first glance like you had misspelled INVENTORY. Perhaps
> LIBXL_CPUARRAY_INVALID_ENTRY?

Okay, I don't mind.

>
>> +void libxl_cpuarray_destroy(libxl_cpuarray *array);
>>
>>   typedef enum {
>>       XENFV = 1,
>> @@ -464,6 +471,7 @@
>>   int libxl_button_press(libxl_ctx *ctx, uint32_t domid, libxl_button button);
>>
>>   int libxl_get_physinfo(libxl_ctx *ctx, libxl_physinfo *physinfo);
>> +libxl_topologyinfo *libxl_get_topologyinfo(libxl_ctx *ctx);
>
> The idiom in libxl is for such functions to take a pointer to the
> structure to fill in and return a status code, e.g.
> 	int libxl_get_topologyinfo(libxl_ctx *ctx, libxl_topologyinfo *info)
> e..g libxl_get_physinfo()
>
> This is useful since the caller doesn't always need to manage the
> dynamic allocation of the info structure e.g, it can use a stack
> variable for temporary stuff or nest inside another structure etc.

I'll change it.


Juergen

-- 
Juergen Gross                 Principal Developer Operating Systems
TSP ES&S SWE OS6                       Telephone: +49 (0) 89 3222 2967
Fujitsu Technology Solutions              e-mail: juergen.gross@ts.fujitsu.com
Domagkstr. 28                           Internet: ts.fujitsu.com
D-80807 Muenchen                 Company details: ts.fujitsu.com/imprint.html

  reply	other threads:[~2010-12-08 12:01 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26  7:10 [PATCH 0 of 4] support of NUMA topology in xl Juergen Gross
2010-11-26  7:10 ` [PATCH 1 of 4] Support getting topology info in libxl Juergen Gross
2010-12-07 17:21   ` Ian Jackson
2010-12-08 10:51   ` Ian Campbell
2010-12-08 12:01     ` Juergen Gross [this message]
2010-12-09 12:09   ` Gianni Tedesco
2010-11-26  7:10 ` [PATCH 2 of 4] support topolgy info in xl info Juergen Gross
2010-12-07 17:23   ` Ian Jackson
2010-12-08  5:47     ` Juergen Gross
2010-11-26  7:10 ` [PATCH 3 of 4] Extend cpupools to support numa Juergen Gross
2010-12-07 17:25   ` Ian Jackson
2010-12-08 10:58   ` Ian Campbell
2010-12-08 12:07     ` Juergen Gross
2010-11-26  7:10 ` [PATCH 4 of 4] Support new xl command cpupool-numa-split Juergen Gross
2010-12-07 17:26   ` Ian Jackson
2010-12-07 17:31     ` George Dunlap
2010-12-07 17:34       ` Ian Jackson
2010-12-08 11:16   ` Ian Campbell
2010-12-08 12:20     ` Juergen Gross
2010-12-08 13:12       ` Ian Campbell
2010-12-08 13:17         ` Juergen Gross
2010-12-08 13:38           ` Ian Campbell
2010-12-08 13:41             ` Juergen Gross
2010-12-08 14:12               ` Ian Campbell
2010-12-09  9:45                 ` Juergen Gross

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4CFF73A7.7080704@ts.fujitsu.com \
    --to=juergen.gross@ts.fujitsu.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.