From: "Geoffrey Lefebvre" Subject: Re: xenstore -- read UUID Date: Thu, 11 Sep 2008 14:28:37 -0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: dinesh chandrasekaran Cc: xen developers community , xen users community List-Id: xen-devel@lists.xenproject.org > Hi geoffrey, > the xen_domain_handle_t in the domain handle field is an > unsigned char array of size 16. > Where could the UUID be accessed from? > or how would you relate the d->handle to the domain's uuid (where d is of > type struct domain *d). > is all the 16 entries in the d->handle clubbed together to get the domain's > uuid? > Hi dinesh, d->handle contains the domain uuid. A uuid is a 16 byte number. Xen and libuuid store uuids as 16 byte char array. They both define typedefs (xen_domain_handle_t and uuid_t respectively) for a 16 byte char array. If you want to generate a human readable version, you can use uuid_unparse to generate a 37 character C string from the uuid_t. Hope this helps. geoffrey