Avoid having undeclared stuff in header.
Signed-off-by: Wei Liu <liuw@liuw.name>
return rc;
}
+int notify_remote_via_evtchn(evtchn_port_t port)
+{
+ evtchn_send_t op;
+ op.port = port;
+ return HYPERVISOR_event_channel_op(EVTCHNOP_send, &op);
+}
+
/*
* Local variables:
* mode: C
#include<xen/event_channel.h>
+struct pt_regs;
typedef void (*evtchn_handler_t)(evtchn_port_t, struct pt_regs *, void *);
/* prototypes */
evtchn_port_t *local_port);
void unbind_all_ports(void);
-static inline int notify_remote_via_evtchn(evtchn_port_t port)
-{
- evtchn_send_t op;
- op.port = port;
- return HYPERVISOR_event_channel_op(EVTCHNOP_send, &op);
-}
+int notify_remote_via_evtchn(evtchn_port_t port);
void fini_events(void);