events.h
来自「xen虚拟机源代码安装包」· C头文件 代码 · 共 52 行
H
52 行
/* -*- Mode:C; c-basic-offset:4; tab-width:4 -*- **************************************************************************** * (C) 2003 - Rolf Neugebauer - Intel Research Cambridge * (C) 2005 - Grzegorz Milos - Intel Reseach Cambridge **************************************************************************** * * File: events.h * Author: Rolf Neugebauer (neugebar@dcs.gla.ac.uk) * Changes: Grzegorz Milos (gm281@cam.ac.uk) * * Date: Jul 2003, changes Jun 2005 * * Environment: Xen Minimal OS * Description: Deals with events on the event channels * **************************************************************************** */#ifndef _EVENTS_H_#define _EVENTS_H_#include<mini-os/traps.h>#include<xen/event_channel.h>typedef void (*evtchn_handler_t)(evtchn_port_t, struct pt_regs *, void *);/* prototypes */int do_event(evtchn_port_t port, struct pt_regs *regs);evtchn_port_t bind_virq(uint32_t virq, evtchn_handler_t handler, void *data);evtchn_port_t bind_pirq(uint32_t pirq, int will_share, evtchn_handler_t handler, void *data);evtchn_port_t bind_evtchn(evtchn_port_t port, evtchn_handler_t handler, void *data);void unbind_evtchn(evtchn_port_t port);void init_events(void);int evtchn_alloc_unbound(domid_t pal, evtchn_handler_t handler, void *data, evtchn_port_t *port);int evtchn_bind_interdomain(domid_t pal, evtchn_port_t remote_port, evtchn_handler_t handler, void *data, 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);}void fini_events(void);#endif /* _EVENTS_H_ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?