Searched refs:ev (Results 1 - 9 of 9) sorted by relevance

/systemd/src/login/
H A Dlogind-button.c140 struct input_event ev; local
147 l = read(b->fd, &ev, sizeof(ev));
150 if ((size_t) l < sizeof(ev))
153 if (ev.type == EV_KEY && ev.value > 0) {
155 switch (ev.code) {
192 } else if (ev.type == EV_SW && ev.value > 0) {
194 if (ev
[all...]
/systemd/src/initctl/
H A Dinitctl.c277 struct epoll_event ev; local
304 zero(ev);
305 ev.events = EPOLLIN;
306 ev.data.ptr = f;
307 if (epoll_ctl(s->epoll_fd, EPOLL_CTL_ADD, fd, &ev) < 0) {
335 static int process_event(Server *s, struct epoll_event *ev) { argument
341 if (!(ev->events & EPOLLIN)) {
346 f = (Fifo*) ev->data.ptr;
/systemd/src/udev/
H A Dudevadm-monitor.c240 struct epoll_event ev[4]; local
243 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), -1);
251 if (ev[i].data.fd == fd_kernel && ev[i].events & EPOLLIN) {
259 } else if (ev[i].data.fd == fd_udev && ev[i].events & EPOLLIN) {
H A Dudev-event.c493 struct epoll_event ev[4]; local
509 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), timeout);
521 int *fd = (int *)ev[i].data.ptr;
526 if (ev[i].events & EPOLLIN) {
556 } else if (ev[i].events & EPOLLHUP) {
H A Dudevd.c495 struct epoll_event ev[4]; local
499 fdcount = epoll_wait(fd_ep, ev, ELEMENTSOF(ev), -1);
508 if (ev[i].data.fd == fd_monitor && ev[i].events & EPOLLIN) {
511 } else if (ev[i].data.fd == fd_signal && ev[i].events & EPOLLIN) {
/systemd/src/basic/
H A Dfs-util.h68 for ((e) = &buffer.ev; \
73 struct inotify_event ev; member in union:inotify_event_buffer
/systemd/src/test/
H A Dtest-libudev.c263 struct epoll_event ev[4]; local
268 fdcount = epoll_wait(fd_ep, ev, ARRAY_SIZE(ev), -1);
272 if (ev[i].data.fd == fd_udev && ev[i].events & EPOLLIN) {
280 } else if (ev[i].data.fd == STDIN_FILENO && ev[i].events & EPOLLIN) {
/systemd/src/activate/
H A Dactivate.c47 struct epoll_event ev = { local
55 ev.data.fd = fd;
56 r = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev);
/systemd/src/libsystemd/sd-event/
H A Dsd-event.c525 struct epoll_event ev = {}; local
532 ev.events = events;
533 ev.data.ptr = s;
536 ev.events |= EPOLLONESHOT;
539 r = epoll_ctl(s->event->epoll_fd, EPOLL_CTL_MOD, s->io.fd, &ev);
541 r = epoll_ctl(s->event->epoll_fd, EPOLL_CTL_ADD, s->io.fd, &ev);
628 struct epoll_event ev = {}; local
693 ev.events = EPOLLIN;
694 ev.data.ptr = d;
696 r = epoll_ctl(e->epoll_fd, EPOLL_CTL_ADD, d->fd, &ev);
1024 struct epoll_event ev = {}; local
2840 struct epoll_event ev = {}; local
[all...]

Completed in 1370 milliseconds