[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen-users]event channel
Hi all, Can somebody please send me a C code to setup an event channel between two domains and sending a simple mssg through the channel. I'm facing problems in writing such a code.I want to use the hypercalls of Xen in my code but I'm unable. I'm facing problem if I include the event_channel.h header file: My code snippet looks like: #include<stdio.h> #include<xen/event_channel.h> int main(){ int dom1=0; int dom2=1; int port1=3500; int port2=3500; //bind_interdomain(dom1,dom2,port1,port2); return 0; } I have commented out the bind-interdomain() call.Still facing the following errors on compilation: /usr/include/xen/event_channel.h:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'evtchn_port_t' /usr/include/xen/event_channel.h:25: error: expected specifier-qualifier-list before 'domid_t' /usr/include/xen/event_channel.h:42: error: expected specifier-qualifier-list before 'domid_t' /usr/include/xen/event_channel.h:59: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/xen/event_channel.h:74: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/xen/event_channel.h:89: error: expected specifier-qualifier-list before 'uint32_t' /usr/include/xen/event_channel.h:102: error: expected specifier-qualifier-list before 'evtchn_port_t' /usr/include/xen/event_channel.h:112: error: expected specifier-qualifier-list before 'evtchn_port_t' /usr/include/xen/event_channel.h:126: error: expected specifier-qualifier-list before 'domid_t' /usr/include/xen/event_channel.h:163: error: expected specifier-qualifier-list before 'evtchn_port_t' /usr/include/xen/event_channel.h:174: error: expected specifier-qualifier-list before 'evtchn_port_t' /usr/include/xen/event_channel.h:178: error: expected specifier-qualifier-list before 'uint32_t' please help me figure out the problem.If possible please send me a sample code to setup an event channel between two domains and also specify the header files to be included. Thanks in advance. Sanjib(newbie) _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |