Lines Matching refs:fd
36 int fd = open(EVTCHN_DEV, O_RDWR|O_CLOEXEC); in osdep_evtchn_open() local
37 if ( fd == -1 ) in osdep_evtchn_open()
39 xce->fd = fd; in osdep_evtchn_open()
45 if ( xce->fd == -1 ) in osdep_evtchn_close()
48 return close(xce->fd); in osdep_evtchn_close()
59 return xce->fd; in xenevtchn_fd()
64 int fd = xce->fd; in xenevtchn_notify() local
69 return ioctl(fd, IOCTL_EVTCHN_NOTIFY, ¬ify); in xenevtchn_notify()
74 int ret, fd = xce->fd; in xenevtchn_bind_unbound_port() local
79 ret = ioctl(fd, IOCTL_EVTCHN_BIND_UNBOUND_PORT, &bind); in xenevtchn_bind_unbound_port()
86 int ret, fd = xce->fd; in xenevtchn_bind_interdomain() local
92 ret = ioctl(fd, IOCTL_EVTCHN_BIND_INTERDOMAIN, &bind); in xenevtchn_bind_interdomain()
98 int ret, fd = xce->fd; in xenevtchn_bind_virq() local
103 ret = ioctl(fd, IOCTL_EVTCHN_BIND_VIRQ, &bind); in xenevtchn_bind_virq()
109 int fd = xce->fd; in xenevtchn_unbind() local
114 return ioctl(fd, IOCTL_EVTCHN_UNBIND, &unbind); in xenevtchn_unbind()
119 int fd = xce->fd; in xenevtchn_pending() local
122 if ( read(fd, &port, sizeof(port)) != sizeof(port) ) in xenevtchn_pending()
130 int fd = xce->fd; in xenevtchn_unmask() local
132 if ( write(fd, &port, sizeof(port)) != sizeof(port) ) in xenevtchn_unmask()