diff options
author | Andres Lagar-Cavilla <andres@lagarcavilla.org> | 2011-12-06 20:10:32 +0000 |
---|---|---|
committer | Andres Lagar-Cavilla <andres@lagarcavilla.org> | 2011-12-06 20:10:32 +0000 |
commit | af875b02aa89dd5ec79812928c75af7eb8182306 (patch) | |
tree | b20f2d8b3635ca4bcd4a8bfdc2d69dd6c431647d /xen/include/xen/event.h | |
parent | a85f0caca62f4909c92927f1fd671bb0cce273f2 (diff) | |
download | xen-af875b02aa89dd5ec79812928c75af7eb8182306.tar.gz xen-af875b02aa89dd5ec79812928c75af7eb8182306.tar.bz2 xen-af875b02aa89dd5ec79812928c75af7eb8182306.zip |
Create a generic callback mechanism for Xen-bound event channels
For event channels for which Xen is the consumer, there currently is
a single action. With this patch, we allow event channel creators to
specify a generic callback (or no callback). Because the expectation
is that there will be few callbacks, they are stored in a small table.
Signed-off-by: Adin Scannell <adin@scannell.ca>
Signed-off-by: Keir Fraser <keir@xen.org>
Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org>
Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/xen/event.h')
-rw-r--r-- | xen/include/xen/event.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xen/include/xen/event.h b/xen/include/xen/event.h index 257cb3a5f0..7e5ad7b9d2 100644 --- a/xen/include/xen/event.h +++ b/xen/include/xen/event.h @@ -51,8 +51,11 @@ int evtchn_unmask(unsigned int port); void evtchn_move_pirqs(struct vcpu *v); /* Allocate/free a Xen-attached event channel port. */ +typedef void (*xen_event_channel_notification_t)( + struct vcpu *v, unsigned int port); int alloc_unbound_xen_event_channel( - struct vcpu *local_vcpu, domid_t remote_domid); + struct vcpu *local_vcpu, domid_t remote_domid, + xen_event_channel_notification_t notification_fn); void free_xen_event_channel( struct vcpu *local_vcpu, int port); |