Lines Matching refs:fd
34 int fd; in osdep_evtchn_open() local
36 if ( (fd = open("/dev/xen/evtchn", O_RDWR)) == -1 ) in osdep_evtchn_open()
42 xce->fd = fd; in osdep_evtchn_open()
48 if ( xce->fd == -1 ) in osdep_evtchn_close()
51 return close(xce->fd); in osdep_evtchn_close()
62 return xce->fd; in xenevtchn_fd()
67 int fd = xce->fd; in xenevtchn_notify() local
72 return ioctl(fd, IOCTL_EVTCHN_NOTIFY, ¬ify); in xenevtchn_notify()
77 int fd = xce->fd; in xenevtchn_bind_unbound_port() local
82 return ioctl(fd, IOCTL_EVTCHN_BIND_UNBOUND_PORT, &bind); in xenevtchn_bind_unbound_port()
88 int fd = xce->fd; in xenevtchn_bind_interdomain() local
94 return ioctl(fd, IOCTL_EVTCHN_BIND_INTERDOMAIN, &bind); in xenevtchn_bind_interdomain()
99 int fd = xce->fd; in xenevtchn_bind_virq() local
104 return 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_exact(fd, (char *)&port, sizeof(port)) == -1 ) in xenevtchn_pending()
130 int fd = xce->fd; in xenevtchn_unmask() local
131 return write_exact(fd, (char *)&port, sizeof(port)); in xenevtchn_unmask()