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

[xen-users]event channel

To: xen-users@xxxxxxxxxxxxxxxxxxx, xen-users-request@xxxxxxxxxxxxxxxxxxx
Subject: [xen-users]event channel
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Reply-to: sanjib.kgp@xxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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
<Prev in Thread] Current Thread [Next in Thread>
  • [xen-users]event channel, Sanjib Kumar Das <=