Searched refs:epoll_fd (Results 1 – 4 of 4) sorted by relevance
/systemd-251/src/activate/ |
D | activate.c | 36 static int add_epoll(int epoll_fd, int fd) { in add_epoll() argument 42 assert(epoll_fd >= 0); in add_epoll() 45 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) < 0) in add_epoll() 46 … return log_error_errno(errno, "Failed to add event on epoll fd:%d for fd:%d: %m", epoll_fd, fd); in add_epoll() 51 static int open_sockets(int *epoll_fd, bool accept) { in open_sockets() argument 106 *epoll_fd = epoll_create1(EPOLL_CLOEXEC); in open_sockets() 107 if (*epoll_fd < 0) in open_sockets() 116 r = add_epoll(*epoll_fd, fd); in open_sockets() 440 int epoll_fd = -1; in main() local 454 n = open_sockets(&epoll_fd, arg_accept); in main() [all …]
|
/systemd-251/src/initctl/ |
D | initctl.c | 35 int epoll_fd; member 225 (void) epoll_ctl(f->server->epoll_fd, EPOLL_CTL_DEL, f->fd, NULL); in fifo_free() 240 s->epoll_fd = safe_close(s->epoll_fd); in server_done() 252 s->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in server_init() 253 if (s->epoll_fd < 0) in server_init() 275 if (epoll_ctl(s->epoll_fd, EPOLL_CTL_ADD, fd, &ev) < 0) in server_init() 313 _cleanup_(server_done) Server server = { .epoll_fd = -1 }; in run() 344 k = epoll_wait(server.epoll_fd, &event, 1, TIMEOUT_MSEC); in run()
|
/systemd-251/src/libsystemd/sd-event/ |
D | sd-event.c | 96 int epoll_fd; member 336 safe_close(e->epoll_fd); in event_free() 374 .epoll_fd = -1, in sd_event_new() 399 e->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in sd_event_new() 400 if (e->epoll_fd < 0) { in sd_event_new() 405 e->epoll_fd = fd_move_above_stdio(e->epoll_fd); in sd_event_new() 447 if (epoll_ctl(s->event->epoll_fd, EPOLL_CTL_DEL, s->io.fd, NULL) < 0) in source_io_unregister() 468 if (epoll_ctl(s->event->epoll_fd, in source_io_register() 489 if (epoll_ctl(s->event->epoll_fd, EPOLL_CTL_DEL, s->child.pidfd, NULL) < 0) in source_child_pidfd_unregister() 507 if (epoll_ctl(s->event->epoll_fd, in source_child_pidfd_register() [all …]
|
/systemd-251/src/journal-remote/ |
D | journal-remote-main.c | 389 int r, epoll_fd; in setup_microhttpd_server() local 454 epoll_fd = info->listen_fd; in setup_microhttpd_server() 455 if (epoll_fd < 0) { in setup_microhttpd_server() 462 epoll_fd, EPOLLIN, in setup_microhttpd_server()
|