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-devel

[Xen-devel] Some questions about Wrting XenStore Code!~~

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Some questions about Wrting XenStore Code!~~
From: 吴佳民 <wujiamin_tyut@xxxxxxx>
Date: Fri, 4 Jul 2008 08:37:39 +0800 (CST)
Delivery-date: Thu, 03 Jul 2008 17:38:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi:
    I am  now writing code about using XenStore to write some (keys, values) on Dom0.
    my code is as follows:

//filename: w_main.h

#include "w_xenstore.h"
//The "w_xenstore.h" is a header file I write myself

#include <x86_mm.h>

extern shared_info_t * shared_info;

int main(void)
{    
    /* Set up the XenStore driver */
    xenstore_init(start_info);
    /* Test the store */
    xenstore_test();
    /* Flush the console buffer */    
    
    return 0;
}
 
and I know that if I wanna use xenStore, I have to use shared_info_t * shared_info. When I compile the code, it tells me that shared_info is not stated before using.

my question is :
(1)
How to get a pointer to shared_info_t structure in my program (running in Userspace)?

(2) I can not include ":hypercall-x86_32.h" and "x86_mm.h" , and I really can not find these two files on my machine.What is the problem?

Thanks a lot!

                                                                                      Danius Wu
================================================================




350万起 独栋山墅
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>