Searched refs:fds (Results 1 – 2 of 2) sorted by relevance
199 struct pollfd fds[1] = {}; in ne_poll_enclave_fd() local205 fds[0].fd = enclave_fd; in ne_poll_enclave_fd()206 fds[0].events = POLLIN | POLLERR | POLLHUP; in ne_poll_enclave_fd()212 rc = poll(fds, 1, NE_POLL_WAIT_TIME_MS); in ne_poll_enclave_fd()228 printf("Poll received value 0x%x\n", fds[0].revents); in ne_poll_enclave_fd()230 if (fds[0].revents & POLLHUP) { in ne_poll_enclave_fd()236 if (fds[0].revents & POLLNVAL) { in ne_poll_enclave_fd()656 struct pollfd fds[1] = {}; in ne_start_enclave_check_booted() local696 fds[0].fd = server_vsock_fd; in ne_start_enclave_check_booted()697 fds[0].events = POLLIN; in ne_start_enclave_check_booted()[all …]
229 struct pollfd fds[1]; in monitor_events() local234 fds[0].fd = events->inotify_fd; in monitor_events()235 fds[0].events = POLLIN; in monitor_events()238 ret = poll(fds, ARRAY_SIZE(fds), -1); in monitor_events()242 if (fds[0].revents & POLLERR) in monitor_events()245 if (fds[0].revents & POLLIN) { in monitor_events()250 length = read(fds[0].fd, buffer, INOTIFY_BUFFER_SIZE); in monitor_events()