[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.