WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-cim

Re: [Xen-cim] Provider Initialize functions

To: Jim Fehlig <jfehlig@xxxxxxxxxx>
Subject: Re: [Xen-cim] Provider Initialize functions
From: Gareth S Bestor <bestor@xxxxxxxxxx>
Date: Tue, 25 Apr 2006 16:14:04 -0700
Cc: xen-cim@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 25 Apr 2006 16:09:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Importance: Normal
In-reply-to: <444EA651.2040405@xxxxxxxxxx>
List-help: <mailto:xen-cim-request@lists.xensource.com?subject=help>
List-id: xen-cim mailing list <xen-cim.lists.xensource.com>
List-post: <mailto:xen-cim@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-cim>, <mailto:xen-cim-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-cim>, <mailto:xen-cim-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-cim-bounces@xxxxxxxxxxxxxxxxxxx


>Right.  I think this is a bug in openwbem but I'm not familiar with the
>cmpi provider interface code in openwbem.  I have turned it over to one
>of the openwbem developers in hopes he will find the bug before I waste
>more time on it :-)
>
>openwbem stashes some thread context object in thread local storage but
>doesn't seem to have done it yet when the initialize routine is called.  
>No problem with the same code path on post-initialize routines, e.g.
>EnumInstances.

Good point, it may well be my bug - ie that the context is not defined until *after* initialization (but just happens to work OK with Pegasus). I'll check if the CMPI spec says anything about this...
 
>Yes, in fact I changed it to
>
>#ifdef CMGetCharPtr
># undef CMGetCharPtr
># define CMGetCharPtr(s) (((s)==NULL || *((void**)(s))==NULL)? NULL :
>(char*)s->hdl)
>#endif

Good idea! thnx

-G

_______________________________________________
Xen-cim mailing list
Xen-cim@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-cim
<Prev in Thread] Current Thread [Next in Thread>