Lines Matching refs:fds
200 struct pollfd fds[1] = {}; in ne_poll_enclave_fd() local
206 fds[0].fd = enclave_fd; in ne_poll_enclave_fd()
207 fds[0].events = POLLIN | POLLERR | POLLHUP; in ne_poll_enclave_fd()
213 rc = poll(fds, 1, NE_POLL_WAIT_TIME_MS); in ne_poll_enclave_fd()
229 printf("Poll received value 0x%x\n", fds[0].revents); in ne_poll_enclave_fd()
231 if (fds[0].revents & POLLHUP) { in ne_poll_enclave_fd()
237 if (fds[0].revents & POLLNVAL) { in ne_poll_enclave_fd()
657 struct pollfd fds[1] = {}; in ne_start_enclave_check_booted() local
697 fds[0].fd = server_vsock_fd; in ne_start_enclave_check_booted()
698 fds[0].events = POLLIN; in ne_start_enclave_check_booted()
700 rc = poll(fds, 1, NE_POLL_WAIT_TIME_MS); in ne_start_enclave_check_booted()
715 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted()
716 printf("Poll received value %d\n", fds[0].revents); in ne_start_enclave_check_booted()