mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
tools/libs/evtchn: Use uint32_t for domid arguments
Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
650c168e62
commit
449e75b16a
6 files changed
+12
-12
No files matched your search
@@ -62,7 +62,7 @@ int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port)
|
||||
return ioctl(fd, IOCTL_EVTCHN_NOTIFY, ¬ify);
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, int domid)
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, uint32_t domid)
|
||||
{
|
||||
int ret, fd = xce->fd;
|
||||
struct ioctl_evtchn_bind_unbound_port bind;
|
||||
@@ -74,7 +74,7 @@ evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, int do
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t
|
||||
xenevtchn_bind_interdomain(xenevtchn_handle *xce, int domid, evtchn_port_t remote_port)
|
||||
xenevtchn_bind_interdomain(xenevtchn_handle *xce, uint_32 domid, evtchn_port_t remote_port)
|
||||
{
|
||||
int ret, fd = xce->fd;
|
||||
struct ioctl_evtchn_bind_interdomain bind;
|
||||
|
||||
@@ -86,14 +86,14 @@ int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port);
|
||||
* domain ID, or -1 on failure, in which case errno will be set appropriately.
|
||||
*/
|
||||
evtchn_port_or_error_t
|
||||
xenevtchn_bind_unbound_port(xenevtchn_handle *xce, int domid);
|
||||
xenevtchn_bind_unbound_port(xenevtchn_handle *xce, uint32_t domid);
|
||||
|
||||
/*
|
||||
* Returns a new event port bound to the remote port for the given domain ID,
|
||||
* or -1 on failure, in which case errno will be set appropriately.
|
||||
*/
|
||||
evtchn_port_or_error_t
|
||||
xenevtchn_bind_interdomain(xenevtchn_handle *xce, int domid,
|
||||
xenevtchn_bind_interdomain(xenevtchn_handle *xce, uint32_t domid,
|
||||
evtchn_port_t remote_port);
|
||||
|
||||
/*
|
||||
|
||||
@@ -61,7 +61,7 @@ int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port)
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce,
|
||||
int domid)
|
||||
uint32_t domid)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
struct ioctl_evtchn_bind_unbound_port bind;
|
||||
@@ -72,7 +72,7 @@ evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce,
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_interdomain(xenevtchn_handle *xce,
|
||||
int domid,
|
||||
uint32_t domid,
|
||||
evtchn_port_t remote_port)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
|
||||
@@ -128,7 +128,7 @@ static void evtchn_handler(evtchn_port_t port, struct pt_regs *regs, void *data)
|
||||
wake_up(&event_queue);
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, int domid)
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, uint32_t domid)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
struct evtchn_port_info *port_info;
|
||||
@@ -155,7 +155,7 @@ evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, int do
|
||||
return port;
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_interdomain(xenevtchn_handle *xce, int domid,
|
||||
evtchn_port_or_error_t xenevtchn_bind_interdomain(xenevtchn_handle *xce, uint32_t domid,
|
||||
evtchn_port_t remote_port)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
|
||||
@@ -62,7 +62,7 @@ int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port)
|
||||
return ioctl(fd, IOCTL_EVTCHN_NOTIFY, ¬ify);
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle * xce, int domid)
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle * xce, uint32_t domid)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
struct ioctl_evtchn_bind_unbound_port bind;
|
||||
@@ -77,7 +77,7 @@ evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle * xce, int d
|
||||
return -1;
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_interdomain(xenevtchn_handle *xce, int domid,
|
||||
evtchn_port_or_error_t xenevtchn_bind_interdomain(xenevtchn_handle *xce, uint32_t domid,
|
||||
evtchn_port_t remote_port)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
|
||||
@@ -65,7 +65,7 @@ int xenevtchn_notify(xenevtchn_handle *xce, evtchn_port_t port)
|
||||
return ioctl(fd, IOCTL_EVTCHN_NOTIFY, ¬ify);
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, int domid)
|
||||
evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, uint32_t domid)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
struct ioctl_evtchn_bind_unbound_port bind;
|
||||
@@ -75,7 +75,7 @@ evtchn_port_or_error_t xenevtchn_bind_unbound_port(xenevtchn_handle *xce, int do
|
||||
return ioctl(fd, IOCTL_EVTCHN_BIND_UNBOUND_PORT, &bind);
|
||||
}
|
||||
|
||||
evtchn_port_or_error_t xenevtchn_bind_interdomain(xenevtchn_handle *xce, int domid,
|
||||
evtchn_port_or_error_t xenevtchn_bind_interdomain(xenevtchn_handle *xce, uint32_t domid,
|
||||
evtchn_port_t remote_port)
|
||||
{
|
||||
int fd = xce->fd;
|
||||
|
||||