Searched refs:revents (Results 1 - 25 of 58) sorted by relevance

123

/systemd/src/libsystemd-network/
H A Dlldp-internal.h90 int lldp_receive_packet(sd_event_source *s, int fd, uint32_t revents, void *userdata);
/systemd/src/shared/
H A Dptyfwd.c264 static int on_master_event(sd_event_source *e, int fd, uint32_t revents, void *userdata) { argument
273 if (revents & (EPOLLIN|EPOLLHUP))
276 if (revents & (EPOLLOUT|EPOLLHUP))
282 static int on_stdin_event(sd_event_source *e, int fd, uint32_t revents, void *userdata) { argument
291 if (revents & (EPOLLIN|EPOLLHUP))
297 static int on_stdout_event(sd_event_source *e, int fd, uint32_t revents, void *userdata) { argument
306 if (revents & (EPOLLOUT|EPOLLHUP))
H A Dask-password-api.c316 if (notify >= 0 && pollfd[POLL_INOTIFY].revents != 0)
319 if (pollfd[POLL_TTY].revents == 0)
594 if (pollfd[FD_SIGNAL].revents & POLLIN) {
599 if (pollfd[FD_SOCKET].revents != POLLIN) {
/systemd/src/systemd/
H A Dsd-event.h69 typedef int (*sd_event_io_handler_t)(sd_event_source *s, int fd, uint32_t revents, void *userdata);
123 int sd_event_source_get_io_revents(sd_event_source *s, uint32_t* revents);
/systemd/src/basic/
H A Dbarrier.c248 if (pfd[1].revents) {
258 } else if (pfd[0].revents & (POLLHUP | POLLERR | POLLNVAL))
H A Dio-util.c181 return pollfd.revents & POLLHUP;
201 return pollfd.revents;
/systemd/src/import/
H A Dcurl-util.c42 static int curl_glue_on_io(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
51 if ((revents & (EPOLLIN|EPOLLOUT)) == (EPOLLIN|EPOLLOUT))
53 else if (revents & EPOLLIN)
55 else if (revents & EPOLLOUT)
/systemd/src/journal/
H A Djournald-kmsg.c382 static int dispatch_dev_kmsg(sd_event_source *es, int fd, uint32_t revents, void *userdata) { argument
389 if (revents & EPOLLERR)
392 if (!(revents & EPOLLIN))
393 log_error("Got invalid event from epoll for /dev/kmsg: %"PRIx32, revents);
H A Djournald-stream.c437 static int stdout_stream_process(sd_event_source *es, int fd, uint32_t revents, void *userdata) { argument
444 if ((revents|EPOLLIN|EPOLLHUP) != (EPOLLIN|EPOLLHUP)) {
445 log_error("Got invalid event from epoll for stdout stream: %"PRIx32, revents);
524 static int stdout_stream_new(sd_event_source *es, int listen_fd, uint32_t revents, void *userdata) { argument
531 if (revents != EPOLLIN) {
532 log_error("Got invalid event from epoll for stdout server fd: %"PRIx32, revents);
H A Djournald-server.h184 int server_process_datagram(sd_event_source *es, int fd, uint32_t revents, void *userdata);
/systemd/src/udev/
H A Dudevadm-settle.c149 if (poll(pfd, 1, MSEC_PER_SEC) > 0 && pfd[0].revents & POLLIN)
H A Dudev-ctrl.c279 if (r > 0 && pfd[0].revents & POLLERR) {
362 if (!(pfd[0].revents & POLLIN)) {
/systemd/src/tty-ask-password-agent/
H A Dtty-ask-password-agent.c151 if (notify >= 0 && pollfd[POLL_INOTIFY].revents != 0)
154 if (pollfd[POLL_SOCKET].revents == 0)
553 if (pollfd[FD_INOTIFY].revents != 0)
556 if (pollfd[FD_SIGNAL].revents != 0)
/systemd/src/core/
H A Dpath.c48 static int path_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata);
160 int path_spec_fd_event(PathSpec *s, uint32_t revents) { argument
166 if (revents != EPOLLIN) {
650 static int path_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata) { argument
676 changed = path_spec_fd_event(s, revents);
H A Ddevice.c44 static int device_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata);
700 static int device_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata) { argument
708 if (revents != EPOLLIN) {
713 if (!(revents & EPOLLIN))
H A Dmanager.c94 static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);
95 static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);
96 static int manager_dispatch_time_change_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);
97 static int manager_dispatch_idle_pipe_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata);
245 int fd, uint32_t revents, void *userdata) {
1516 static int manager_dispatch_notify_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) { argument
1548 if (revents != EPOLLIN) {
1712 static int manager_dispatch_signal_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) { argument
1722 if (revents != EPOLLIN) {
1940 static int manager_dispatch_time_change_fd(sd_event_source *source, int fd, uint32_t revents, voi argument
244 manager_dispatch_ask_password_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) argument
1966 manager_dispatch_idle_pipe_fd(sd_event_source *source, int fd, uint32_t revents, void *userdata) argument
[all...]
H A Dbusname.c51 static int busname_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata);
827 static int busname_dispatch_io(sd_event_source *source, int fd, uint32_t revents, void *userdata) { argument
838 if (revents != EPOLLIN) {
839 log_unit_error(UNIT(n), "Got unexpected poll event (0x%x) on starter fd.", revents); local
/systemd/src/journal-remote/
H A Djournal-remote.c292 uint32_t revents,
300 uint32_t revents,
304 uint32_t revents,
771 uint32_t revents,
1031 uint32_t revents,
1091 uint32_t revents,
1164 uint32_t revents,
769 dispatch_http_event(sd_event_source *event, int fd, uint32_t revents, void *userdata) argument
1029 handle_raw_source(sd_event_source *event, int fd, uint32_t revents, RemoteServer *s) argument
1089 dispatch_raw_source_event(sd_event_source *event, int fd, uint32_t revents, void *userdata) argument
1162 dispatch_raw_connection_event(sd_event_source *event, int fd, uint32_t revents, void *userdata) argument
H A Djournal-upload.c337 uint32_t revents,
344 if (revents & EPOLLHUP) {
350 if (!(revents & EPOLLIN)) {
351 log_warning("Unexpected poll event %"PRIu32".", revents);
335 dispatch_fd_input(sd_event_source *event, int fd, uint32_t revents, void *userp) argument
/systemd/src/resolve/
H A Dresolved-dns-stream.c198 static int on_stream_io(sd_event_source *es, int fd, uint32_t revents, void *userdata) { argument
208 if ((revents & EPOLLOUT) &&
237 if ((revents & (EPOLLIN|EPOLLHUP|EPOLLRDHUP)) &&
H A Dresolved-llmnr.c87 static int on_llmnr_packet(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
308 static int on_llmnr_stream(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
/systemd/src/socket-proxy/
H A Dsocket-proxyd.c191 static int traffic_cb(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
299 static int connect_cb(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
491 static int accept_cb(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
498 assert(revents & EPOLLIN);
/systemd/src/login/
H A Dlogind.c482 static int manager_dispatch_seat_udev(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
496 static int manager_dispatch_device_udev(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
510 static int manager_dispatch_vcsa_udev(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
532 static int manager_dispatch_button_udev(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
546 static int manager_dispatch_console(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
/systemd/src/libsystemd/sd-event/
H A Dtest-event.c36 static int unref_handler(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
42 static int io_handler(sd_event_source *s, int fd, uint32_t revents, void *userdata) { argument
H A Dsd-event.c122 uint32_t revents; member in struct:sd_event_source::__anon147::__anon148
1517 _public_ int sd_event_source_get_io_revents(sd_event_source *s, uint32_t* revents) { argument
1519 assert_return(revents, -EINVAL);
1524 *revents = s->io.revents;
2021 static int process_io(sd_event *e, sd_event_source *s, uint32_t revents) { argument
2027 * new revents, otherwise we reset the value. The ORing is
2033 s->io.revents |= revents;
2035 s->io.revents
[all...]

Completed in 212 milliseconds

123