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

[xen-users]event channel


  • To: xen-users@xxxxxxxxxxxxxxxxxxx, xen-users-request@xxxxxxxxxxxxxxxxxxx
  • From: "Sanjib Kumar Das" <Sanjib.Kumar.Das@xxxxxxxxxxxx>
  • Date: Sun, 9 Jul 2006 22:19:14 -0700
  • Delivery-date: Sun, 09 Jul 2006 22:19:55 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:sender:to:subject:mime-version:content-type:x-google-sender-auth; b=Wze5Wr71XRk30Tl5Mb+qXXvFiHmG/HchDM9Yr0O7VAt13pP18jzBu1nf/dlMGEnbdfv8Wa1blTAV0YYoKPdvMI8fqj/V7lRcrwu7GHgukWxbL1sdjqcu4GzIaLPko+Xw/tHBQYZ2aw2nwAua0ojsMkEh6XarBaiJBevbBXmnyjg=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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

 


Rackspace

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