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

[Xen-cim] Provider Initialize functions

To: xen-cim@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-cim] Provider Initialize functions
From: Jim Fehlig <jfehlig@xxxxxxxxxx>
Date: Mon, 24 Apr 2006 18:01:04 -0600
Delivery-date: Mon, 24 Apr 2006 17:01:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
Most of the providers have an initialize function that is called when for example the <ProviderName>_Create_InstanceMI function is executed. The initialize function is provided in calls to the various CM*MIStub macros. The second parameter of the initialize function (ctx) is not defined anywhere that I can find but is referenced during execution of the initialize function and crashes the cimom. Only one of the providers does anything useful in the initialization function - Xen_CompterSystemIndication. All of them however print some debug info and in doing so reference the bogus context and crash. I simply commented all of the offending

_SBLIM_TRACE(2, ("--- context=\"%s\"", CMGetCharPtr(CDToString(_BROKER, context, NULL))));

statements in the various initialized routines to avoid the crash.

Do we anticipate needing the initialization routines? If not, I can remove them. Xen_ComputerSystemIndication apparently needs one although I doubt it works given the bogus context parameter.

BTW, I now have all of the providers working on SLES/openwbem. The "get it working on suse/openwbem" patch will be committed to the repository after some cleanup, e.g. like the issue described above.

Regards,
Jim

_______________________________________________
Xen-cim mailing list
Xen-cim@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-cim

<Prev in Thread] Current Thread [Next in Thread>