[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] domain id
Hi Jaikumar, Since I might be missing some info, I'm also copying the message to the list. So, someone else can confirm/correct my answer. In the file: <xen-source>/tools/xenstat/libxenstat/src/xenstat.c There is the definition of the following data structure: struct xenstat_domain { unsigned int id; char *name; .... }; Moreover, in the same file, you're going to find the function below that determines the domain name based on the domain id. This information is stored in the XenStore and recovered by using the function xs_read (see xs.h for details). xenstat_get_domain_name(xenstat_handle *handle, unsigned int domain_id) I hope this helps, Eli On Sun, 2006-02-26 at 18:00 -0600, jaikumar Ganesh wrote: > Hi Eli > Thanks for that info. > > But is the name of the domain (not the id) available in any structure? > > Say xm list gives the following: > > Domain Id .... > Domain-0 0 > Domain-1 5 > > So any idea where is the name "Domain-1" stored? > > Thanks > Jaikumar > > On 2/24/06, Elizeu Santos-Neto <elizeu@xxxxxxxxxxxxxxx> wrote: > > > > > > Hi Jaikumar, > > > > I'm not sure whether it is the same information used by "xm list" or > > not. However, the function "domain_create()" receives a variable > > "domid_t dom_id" which is assigned to "d->domain_id". > > > > This might be what you want. > > > > Regards, > > Eli > > > > On Fri, 2006-02-24 at 14:12 -0600, jaikumar Ganesh wrote: > > > Hi All > > > I am a newbie to the xen community and I am facing some crashes due > > > to my code changes. > > > > > > A quick question: When i start a new domain with id being set to say > > > "VM100" (the id that is shown in the xm list ouput), whats the id that > > > will be stored in the domain structure? i.e > > > > > > struct domain *d ; > > > d->id ?? > > > > > > Any help will be appreciated. > > > > > > Thanks > > > Jaikumar > > > > > > _______________________________________________ > > > Xen-devel mailing list > > > Xen-devel@xxxxxxxxxxxxxxxxxxx > > > http://lists.xensource.com/xen-devel > > > > > > > > _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |