mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
tools/libxenevtchn: propagate xenevtchn_open() flags parameter
Propagate the flags parameter of xenevtchn_open() to the OS-specific handlers in order to enable handling them there. Signed-off-by: Juergen Gross <jgross@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
f7918dc8f9
commit
935e5fb0d5
7 files changed
+7
-7
No files matched your search
@@ -60,7 +60,7 @@ xenevtchn_handle *xenevtchn_open(xentoollog_logger *logger, unsigned int flags)
|
||||
goto err;
|
||||
}
|
||||
|
||||
rc = osdep_evtchn_open(xce);
|
||||
rc = osdep_evtchn_open(xce, flags);
|
||||
if ( rc < 0 )
|
||||
goto err;
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#define EVTCHN_DEV "/dev/xen/evtchn"
|
||||
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce)
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
|
||||
{
|
||||
int fd = open(EVTCHN_DEV, O_RDWR|O_CLOEXEC);
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
#define O_CLOEXEC 0
|
||||
#endif
|
||||
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce)
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
|
||||
{
|
||||
int fd = open("/dev/xen/evtchn", O_RDWR|O_CLOEXEC);
|
||||
|
||||
|
||||
@@ -69,7 +69,7 @@ static void port_dealloc(struct evtchn_port_info *port_info)
|
||||
free(port_info);
|
||||
}
|
||||
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce)
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
|
||||
{
|
||||
int fd = alloc_fd(FTYPE_EVTCHN);
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
|
||||
#define EVTCHN_DEV_NAME "/dev/xenevt"
|
||||
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce)
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
|
||||
{
|
||||
int fd = open(EVTCHN_DEV_NAME, O_NONBLOCK|O_RDWR);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ struct xenevtchn_handle {
|
||||
Xentoolcore__Active_Handle tc_ah;
|
||||
};
|
||||
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce);
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags);
|
||||
int osdep_evtchn_close(xenevtchn_handle *xce);
|
||||
int osdep_evtchn_restrict(xenevtchn_handle *xce, domid_t domid);
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
#include "private.h"
|
||||
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce)
|
||||
int osdep_evtchn_open(xenevtchn_handle *xce, unsigned int flags)
|
||||
{
|
||||
int fd;
|
||||
|
||||
|
||||