Home
last modified time | relevance | path

Searched refs:fd_ep (Results 1 - 4 of 4) sorted by relevance

/third_party/eudev/src/udev/
H A Dudevadm-monitor.c88 _cleanup_close_ int fd_ep = -1; in adm_monitor() local
161 fd_ep = epoll_create1(EPOLL_CLOEXEC); in adm_monitor()
162 if (fd_ep < 0) { in adm_monitor()
202 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_udev, &ep_udev) < 0) { in adm_monitor()
236 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_kernel, &ep_kernel) < 0) { in adm_monitor()
250 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), -1); in adm_monitor()
H A Dudevd.c63 static int fd_ep = -1; variable
254 close(fd_ep); in worker_spawn()
264 fd_ep = epoll_create1(EPOLL_CLOEXEC); in worker_spawn()
265 if (fd_ep < 0) { in worker_spawn()
279 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_signal, &ep_signal) < 0 || in worker_spawn()
280 epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_monitor, &ep_monitor) < 0) { in worker_spawn()
383 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), -1); in worker_spawn()
413 safe_close(fd_ep); in worker_spawn()
1345 fd_ep = epoll_create1(EPOLL_CLOEXEC); in main()
1346 if (fd_ep < in main()
[all...]
H A Dudev-event.c455 _cleanup_close_ int fd_ep = -1; in spawn_read() local
471 fd_ep = epoll_create1(EPOLL_CLOEXEC); in spawn_read()
472 if (fd_ep < 0) { in spawn_read()
478 r = epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_stdout, &ep_outpipe); in spawn_read()
486 r = epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_stderr, &ep_errpipe); in spawn_read()
513 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), timeout); in spawn_read()
561 r = epoll_ctl(fd_ep, EPOLL_CTL_DEL, *fd, NULL); in spawn_read()
/third_party/eudev/test/
H A Dtest-libudev.c220 int fd_ep; in test_monitor() local
224 fd_ep = epoll_create1(EPOLL_CLOEXEC); in test_monitor()
225 if (fd_ep < 0) { in test_monitor()
252 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, fd_udev, &ep_udev) < 0) { in test_monitor()
260 if (epoll_ctl(fd_ep, EPOLL_CTL_ADD, STDIN_FILENO, &ep_stdin) < 0) { in test_monitor()
272 fdcount = epoll_wait(fd_ep, ev, ARRAY_SIZE(ev), -1); in test_monitor()
291 if (fd_ep >= 0) in test_monitor()
292 close(fd_ep); in test_monitor()

Completed in 5 milliseconds