Home
last modified time | relevance | path

Searched refs:fd (Results 1 – 25 of 187) sorted by relevance

12345678

/xen-4.10.0-shim-comet/tools/libs/evtchn/
A Dlinux.c40 if ( fd == -1 ) in osdep_evtchn_open()
42 xce->fd = fd; in osdep_evtchn_open()
48 if ( xce->fd == -1 ) in osdep_evtchn_close()
63 return xce->fd; in xenevtchn_fd()
68 int fd = xce->fd; in xenevtchn_notify() local
79 int fd = xce->fd; in xenevtchn_bind_unbound_port() local
91 int fd = xce->fd; in xenevtchn_bind_interdomain() local
103 int fd = xce->fd; in xenevtchn_bind_virq() local
113 int fd = xce->fd; in xenevtchn_unbind() local
123 int fd = xce->fd; in xenevtchn_pending() local
[all …]
A Dsolaris.c34 int fd; in osdep_evtchn_open() local
42 xce->fd = fd; in osdep_evtchn_open()
48 if ( xce->fd == -1 ) in osdep_evtchn_close()
62 return xce->fd; in xenevtchn_fd()
67 int fd = xce->fd; in xenevtchn_notify() local
77 int fd = xce->fd; in xenevtchn_bind_unbound_port() local
88 int fd = xce->fd; in xenevtchn_bind_interdomain() local
99 int fd = xce->fd; in xenevtchn_bind_virq() local
109 int fd = xce->fd; in xenevtchn_unbind() local
119 int fd = xce->fd; in xenevtchn_pending() local
[all …]
A Dnetbsd.c37 if ( fd == -1 ) in osdep_evtchn_open()
39 xce->fd = fd; in osdep_evtchn_open()
45 if ( xce->fd == -1 ) in osdep_evtchn_close()
59 return xce->fd; in xenevtchn_fd()
64 int fd = xce->fd; in xenevtchn_notify() local
74 int fd = xce->fd; in xenevtchn_bind_unbound_port() local
90 int fd = xce->fd; in xenevtchn_bind_interdomain() local
106 int fd = xce->fd; in xenevtchn_unbind() local
116 int fd = xce->fd; in xenevtchn_bind_virq() local
131 int fd = xce->fd; in xenevtchn_pending() local
[all …]
A Dfreebsd.c37 if ( fd == -1 ) in osdep_evtchn_open()
39 xce->fd = fd; in osdep_evtchn_open()
45 if ( xce->fd == -1 ) in osdep_evtchn_close()
59 return xce->fd; in xenevtchn_fd()
64 int fd = xce->fd; in xenevtchn_notify() local
74 int ret, fd = xce->fd; in xenevtchn_bind_unbound_port() local
86 int ret, fd = xce->fd; in xenevtchn_bind_interdomain() local
98 int ret, fd = xce->fd; in xenevtchn_bind_virq() local
109 int fd = xce->fd; in xenevtchn_unbind() local
119 int fd = xce->fd; in xenevtchn_pending() local
[all …]
A Dminios.c69 if ( fd == -1 ) in osdep_evtchn_open()
72 xce->fd = fd; in osdep_evtchn_open()
79 if ( xce->fd == -1 ) in osdep_evtchn_close()
102 return xce->fd; in xenevtchn_fd()
133 files[fd].read = 1; in evtchn_handler()
139 int fd = xce->fd; in xenevtchn_bind_unbound_port() local
167 int fd = xce->fd; in xenevtchn_bind_interdomain() local
194 int fd = xce->fd; in xenevtchn_unbind() local
210 int fd = xce->fd; in xenevtchn_bind_virq() local
235 int fd = xce->fd; in xenevtchn_pending() local
[all …]
/xen-4.10.0-shim-comet/tools/libs/gnttab/
A Dminios.c40 if ( fd == -1 ) in osdep_gnttab_open()
42 gntmap_init(&files[fd].gntmap); in osdep_gnttab_open()
43 xgt->fd = fd; in osdep_gnttab_open()
49 if ( xgt->fd == -1 ) in osdep_gnttab_close()
52 return close(xgt->fd); in osdep_gnttab_close()
55 void minios_gnttab_close_fd(int fd) in minios_gnttab_close_fd() argument
57 gntmap_fini(&files[fd].gntmap); in minios_gnttab_close_fd()
58 files[fd].type = FTYPE_NONE; in minios_gnttab_close_fd()
67 int fd = xgt->fd; in osdep_gnttab_grant_map() local
84 int fd = xgt->fd; in osdep_gnttab_unmap() local
[all …]
A Dfreebsd.c45 if ( fd == -1 ) in osdep_gnttab_open()
47 xgt->fd = fd; in osdep_gnttab_open()
54 if ( xgt->fd == -1 ) in osdep_gnttab_close()
57 return close(xgt->fd); in osdep_gnttab_close()
72 int fd = xgt->fd; in osdep_gnttab_grant_map() local
165 int fd = xgt->fd; in osdep_gnttab_unmap() local
216 if ( fd == -1 ) in osdep_gntshr_open()
218 xgs->fd = fd; in osdep_gntshr_open()
225 if ( xgs->fd == -1 ) in osdep_gntshr_close()
228 return close(xgs->fd); in osdep_gntshr_close()
[all …]
A Dlinux.c51 if ( fd == -1 ) in osdep_gnttab_open()
53 xgt->fd = fd; in osdep_gnttab_open()
59 if ( xgt->fd == -1 ) in osdep_gnttab_close()
62 return close(xgt->fd); in osdep_gnttab_close()
67 int fd = xgt->fd, rc; in osdep_gnttab_set_max_grants() local
91 int fd = xgt->fd; in osdep_gnttab_grant_map() local
198 int fd = xgt->fd; in osdep_gnttab_unmap() local
241 int fd = xgt->fd; in osdep_gnttab_grant_copy() local
315 if ( fd == -1 ) in osdep_gntshr_open()
317 xgs->fd = fd; in osdep_gntshr_open()
[all …]
/xen-4.10.0-shim-comet/tools/xenstore/
A Dxenstored_posix.c34 int fd; in write_pidfile() local
37 if (fd == -1) in write_pidfile()
48 close(fd); in write_pidfile()
106 int fd; in xenbus_evtchn() local
112 if (fd == -1) in xenbus_evtchn()
119 close(fd); in xenbus_evtchn()
127 close(fd); in xenbus_evtchn()
133 int fd; in xenbus_map() local
137 if (fd == -1) in xenbus_map()
141 MAP_SHARED, fd, 0); in xenbus_map()
[all …]
A Dxenstored_solaris.c31 int fd; in xenbus_evtchn() local
34 fd = open("/dev/xen/xenbus", O_RDONLY); in xenbus_evtchn()
35 if (fd == -1) in xenbus_evtchn()
40 close(fd); in xenbus_evtchn()
46 int fd; in xenbus_map() local
49 fd = open("/dev/xen/xenbus", O_RDWR); in xenbus_map()
50 if (fd == -1) in xenbus_map()
54 MAP_SHARED, fd, 0); in xenbus_map()
59 close(fd); in xenbus_map()
66 int fd; in xenbus_notify_running() local
[all …]
/xen-4.10.0-shim-comet/tools/libs/call/
A Dsolaris.c32 int fd = open("/dev/xen/privcmd", O_RDWR); in osdep_xencall_open() local
34 if ( fd == -1 ) in osdep_xencall_open()
44 if ( (flags = fcntl(fd, F_GETFD)) < 0 ) in osdep_xencall_open()
50 if ( fcntl(fd, F_SETFD, flags) < 0 ) in osdep_xencall_open()
56 xcall->fd = fd; in osdep_xencall_open()
61 close(fd); in osdep_xencall_open()
68 int fd = xcall->fd; in osdep_xencall_close() local
69 return close(fd); in osdep_xencall_close()
85 int fd = xcall->fd; in do_xen_hypercall() local
86 return ioctl(fd, IOCTL_PRIVCMD_HYPERCALL, hypercall); in do_xen_hypercall()
A Dnetbsd.c32 int fd = open("/kern/xen/privcmd", O_RDWR); in osdep_xencall_open() local
34 if ( fd == -1 ) in osdep_xencall_open()
44 if ( (flags = fcntl(fd, F_GETFD)) < 0 ) in osdep_xencall_open()
50 if ( fcntl(fd, F_SETFD, flags) < 0 ) in osdep_xencall_open()
56 xcall->fd = fd; in osdep_xencall_open()
61 close(fd); in osdep_xencall_open()
68 int fd = xcall->fd; in osdep_xencall_close() local
69 return close(fd); in osdep_xencall_close()
98 int fd = xcall->fd; in do_xen_hypercall() local
99 int error = ioctl(fd, IOCTL_PRIVCMD_HYPERCALL, hypercall); in do_xen_hypercall()
A Dfreebsd.c38 int fd = open(PRIVCMD_DEV, O_RDWR|O_CLOEXEC); in osdep_xencall_open() local
46 if ( fd == -1 ) in osdep_xencall_open()
53 xcall->fd = fd; in osdep_xencall_open()
59 int fd = xcall->fd; in osdep_xencall_close() local
60 if ( fd == -1 ) in osdep_xencall_close()
62 return close(fd); in osdep_xencall_close()
67 int fd = xcall->fd; in osdep_hypercall() local
70 ret = ioctl(fd, IOCTL_PRIVCMD_HYPERCALL, hypercall); in osdep_hypercall()
A Dlinux.c39 int fd; in osdep_xencall_open() local
44 fd = open("/dev/xen/privcmd", O_RDWR|O_CLOEXEC); in osdep_xencall_open()
46 if ( fd == -1 && ( errno == ENOENT || errno == ENXIO || errno == ENODEV )) in osdep_xencall_open()
49 fd = open("/proc/xen/privcmd", O_RDWR|O_CLOEXEC); in osdep_xencall_open()
52 if ( fd == -1 ) in osdep_xencall_open()
58 xcall->fd = fd; in osdep_xencall_open()
64 int fd = xcall->fd; in osdep_xencall_close() local
65 if (fd == -1) in osdep_xencall_close()
67 return close(fd); in osdep_xencall_close()
72 return ioctl(xcall->fd, IOCTL_PRIVCMD_HYPERCALL, hypercall); in osdep_hypercall()
/xen-4.10.0-shim-comet/tools/blktap2/drivers/
A Dblock-log.c60 int fd; member
220 int i, l, fd; in shmem_open() local
237 close(fd); in shmem_open()
242 close(fd); in shmem_open()
363 if (s->connections[i].fd == fd) { in ctl_close_sock()
380 int fd; in ctl_accept() local
383 if ((fd = accept(s->ctl.fd, NULL, NULL)) < 0) { in ctl_accept()
390 close(fd); in ctl_accept()
398 close(fd); in ctl_accept()
402 s->connections[s->connected].fd = fd; in ctl_accept()
[all …]
A Dtapdisk-client.c101 int fd; in tdctl_open() local
114 close(fd); in tdctl_open()
118 return fd; in tdctl_open()
210 static int ctl_kick(int fd) in ctl_kick() argument
243 int fd; in writelog_map() local
253 close(fd); in writelog_map()
372 rc = ctl_get_writes(fd); in get_writes()
431 if (ctl_kick(fd) < 0) in read_loop()
444 int fd; in main() local
458 fd = tdctl_open(argv[1]); in main()
[all …]
A Dtapdisk-ring.c35 int fd, err; in tapdisk_uring_create_ctlfd() local
43 if (fd == -1) in tapdisk_uring_create_ctlfd()
72 close(fd); in tapdisk_uring_create_ctlfd()
94 int fd, err; in tapdisk_uring_connect_ctlfd() local
102 if (fd == -1) in tapdisk_uring_connect_ctlfd()
119 close(fd); in tapdisk_uring_connect_ctlfd()
135 int fd, err; in tapdisk_uring_create_shmem() local
158 close(fd); in tapdisk_uring_create_shmem()
180 int fd, err; in tapdisk_uring_connect_shmem() local
223 close(fd); in tapdisk_uring_connect_shmem()
[all …]
A Dblock-aio.c55 int fd; member
72 ret = fstat(fd, &stat); in tdaio_get_image_info()
81 if (blk_getimagesize(fd, &info->size) != 0) in tdaio_get_image_info()
115 int i, fd, ret, o_flags; in tdaio_open() local
132 fd = open(name, o_flags); in tdaio_open()
138 fd = open(name, o_flags); in tdaio_open()
144 if (fd == -1) { in tdaio_open()
152 close(fd); in tdaio_open()
156 prv->fd = fd; in tdaio_open()
189 td_prep_read(&aio->tiocb, prv->fd, treq.buf, in tdaio_queue_read()
[all …]
/xen-4.10.0-shim-comet/tools/libs/foreignmemory/
A Dsolaris.c30 int fd = open("/dev/xen/privcmd", O_RDWR); in osdep_xenforeignmemory_open() local
32 if ( fd == -1 ) in osdep_xenforeignmemory_open()
42 if ( (flags = fcntl(fd, F_GETFD)) < 0 ) in osdep_xenforeignmemory_open()
48 if ( fcntl(fd, F_SETFD, flags) < 0 ) in osdep_xenforeignmemory_open()
54 fmem->fd = fd; in osdep_xenforeignmemory_open()
59 close(fd); in osdep_xenforeignmemory_open()
66 int fd = fmem->fd; in osdep_xenforeignmemory_close() local
67 return close(fd); in osdep_xenforeignmemory_close()
73 int fd = fmem->fd; in osdep_map_foreign_batch() local
75 addr = mmap(addr, num*XC_PAGE_SIZE, prot, flags | MAP_SHARED, fd, 0); in osdep_map_foreign_batch()
[all …]
A Dnetbsd.c29 int fd = open("/kern/xen/privcmd", O_RDWR); in osdep_xenforeignmemory_open() local
31 if ( fd == -1 ) in osdep_xenforeignmemory_open()
41 if ( (flags = fcntl(fd, F_GETFD)) < 0 ) in osdep_xenforeignmemory_open()
47 if ( fcntl(fd, F_SETFD, flags) < 0 ) in osdep_xenforeignmemory_open()
53 fmem->fd = fd; in osdep_xenforeignmemory_open()
58 close(fd); in osdep_xenforeignmemory_open()
65 int fd = fmem->fd; in osdep_xenforeignmemory_close() local
66 return close(fd); in osdep_xenforeignmemory_close()
73 int fd = fmem->fd; in osdep_map_foreign_batch() local
85 if ( ioctl(fd, IOCTL_PRIVCMD_MMAPBATCH, &ioctlx) < 0 ) in osdep_map_foreign_batch()
A Dlinux.c39 int fd; in osdep_xenforeignmemory_open() local
42 fd = open("/dev/xen/privcmd", O_RDWR|O_CLOEXEC); in osdep_xenforeignmemory_open()
47 fd = open("/proc/xen/privcmd", O_RDWR|O_CLOEXEC); in osdep_xenforeignmemory_open()
50 if ( fd == -1 ) in osdep_xenforeignmemory_open()
56 fmem->fd = fd; in osdep_xenforeignmemory_open()
62 int fd = fmem->fd; in osdep_xenforeignmemory_close() local
63 if (fd == -1) in osdep_xenforeignmemory_close()
65 return close(fd); in osdep_xenforeignmemory_close()
99 static int retry_paged(int fd, uint32_t dom, void *addr, in retry_paged() argument
149 int fd = fmem->fd; in osdep_xenforeignmemory_map() local
[all …]
A Dfreebsd.c36 int fd = open(PRIVCMD_DEV, O_RDWR|O_CLOEXEC); in osdep_xenforeignmemory_open() local
38 if ( fd == -1 ) in osdep_xenforeignmemory_open()
45 fmem->fd = fd; in osdep_xenforeignmemory_open()
51 int fd = fmem->fd; in osdep_xenforeignmemory_close() local
52 if ( fd == -1 ) in osdep_xenforeignmemory_close()
54 return close(fd); in osdep_xenforeignmemory_close()
62 int fd = fmem->fd; in osdep_xenforeignmemory_map() local
66 addr = mmap(addr, num << PAGE_SHIFT, prot, flags | MAP_SHARED, fd, 0); in osdep_xenforeignmemory_map()
79 rc = ioctl(fd, IOCTL_PRIVCMD_MMAPBATCH, &ioctlx); in osdep_xenforeignmemory_map()
/xen-4.10.0-shim-comet/tools/libs/devicemodel/
A Dlinux.c40 int fd = open("/dev/xen/privcmd", O_RDWR | O_CLOEXEC); in osdep_xendevicemodel_open() local
44 if (fd < 0) { in osdep_xendevicemodel_open()
65 rc = ioctl(fd, IOCTL_PRIVCMD_DM_OP, &uop); in osdep_xendevicemodel_open()
67 close(fd); in osdep_xendevicemodel_open()
68 fd = -1; in osdep_xendevicemodel_open()
72 dmod->fd = fd; in osdep_xendevicemodel_open()
78 if (dmod->fd < 0) in osdep_xendevicemodel_close()
81 return close(dmod->fd); in osdep_xendevicemodel_close()
93 if (dmod->fd < 0) in osdep_xendevicemodel_op()
109 rc = ioctl(dmod->fd, IOCTL_PRIVCMD_DM_OP, &uop); in osdep_xendevicemodel_op()
[all …]
/xen-4.10.0-shim-comet/tools/xenpaging/
A Dfile_ops.c25 static int file_op(int fd, void *page, int i, in file_op() argument
32 offset = lseek(fd, offset << PAGE_SHIFT, SEEK_SET); in file_op()
38 bytes = fn(fd, page + total, PAGE_SIZE - total); in file_op()
48 static ssize_t my_write(int fd, void *buf, size_t count) in my_write() argument
50 return write(fd, buf, count); in my_write()
53 int read_page(int fd, void *page, int i) in read_page() argument
55 return file_op(fd, page, i, &read); in read_page()
58 int write_page(int fd, void *page, int i) in write_page() argument
60 return file_op(fd, page, i, &my_write); in write_page()
/xen-4.10.0-shim-comet/tools/console/client/
A Dmain.c192 if (fd != -1) FD_SET(fd, &fds); in console_loop()
193 if (fd > max_fd) max_fd = fd; in console_loop()
206 close(fd); in console_loop()
210 fd = newfd; in console_loop()
233 fd = -1; in console_loop()
238 if (fd != -1 && FD_ISSET(fd, &fds)) { in console_loop()
249 fd = -1; in console_loop()
284 int fd; in console_lock() local
290 if (fd < 0) in console_lock()
309 close(fd); in console_lock()
[all …]

Completed in 32 milliseconds

12345678