Searched refs:pollfds (Results 1 - 5 of 5) sorted by relevance
/linux-4.4.14/arch/um/os-Linux/ |
H A D | irq.c | 19 static struct pollfd *pollfds = NULL; variable in typeref:struct:pollfd 28 n = poll(pollfds, pollfds_num, 0); os_waiting_for_events() 43 if (pollfds[i].revents != 0) { os_waiting_for_events() 44 irq_fd->current_events = pollfds[i].revents; os_waiting_for_events() 45 pollfds[i].fd = -1; os_waiting_for_events() 55 if (size_tmpfds <= pollfds_size * sizeof(pollfds[0])) { os_create_pollfd() 56 /* return min size needed for new pollfds area */ os_create_pollfd() 57 return (pollfds_size + 1) * sizeof(pollfds[0]); os_create_pollfd() 60 if (pollfds != NULL) { os_create_pollfd() 61 memcpy(tmp_pfd, pollfds, os_create_pollfd() 62 sizeof(pollfds[0]) * pollfds_size); os_create_pollfd() 63 /* remove old pollfds */ os_create_pollfd() 64 kfree(pollfds); os_create_pollfd() 66 pollfds = tmp_pfd; os_create_pollfd() 71 pollfds[pollfds_num] = ((struct pollfd) { .fd = fd, os_create_pollfd() 89 if ((pollfds[i].fd != -1) && os_free_irq_by_cb() 90 (pollfds[i].fd != (*prev)->fd)) { os_free_irq_by_cb() 93 "pollfds, fd %d vs %d\n", os_free_irq_by_cb() 94 (*prev)->fd, pollfds[i].fd); os_free_irq_by_cb() 101 * This moves the *whole* array after pollfds[i] os_free_irq_by_cb() 104 memmove(&pollfds[i], &pollfds[i + 1], os_free_irq_by_cb() 105 (pollfds_num - i) * sizeof(pollfds[0])); os_free_irq_by_cb() 124 return pollfds[i].fd; os_get_pollfd() 129 pollfds[i].fd = fd; os_set_pollfd()
|
H A D | sigio.c | 37 struct pollfds { struct 47 static struct pollfds current_poll; 48 static struct pollfds next_poll; 49 static struct pollfds all_sigio_fds; 53 struct pollfds *fds, tmp; write_sigio_thread() 103 static int need_poll(struct pollfds *polls, int n) need_poll() 113 "pollfds\n"); need_poll() 298 current_poll = ((struct pollfds) { .poll = p, write_sigio_workaround() 325 current_poll = ((struct pollfds) { .poll = NULL, write_sigio_workaround()
|
/linux-4.4.14/arch/um/kernel/ |
H A D | sigio.c | 38 /* These are called from os-Linux/sigio.c to protect its pollfds arrays. */
|
H A D | irq.c | 112 * It means we couldn't put new pollfd to current pollfds activate_fd() 113 * and tmp_fds is NULL or too small for new pollfds array. activate_fd() 118 * If something else came in and changed the pollfds array activate_fd() 119 * so we will not be able to put new pollfd struct to pollfds activate_fd() 212 "and pollfds, fd %d vs %d, need %d\n", irq->fd, find_irq_by_fd()
|
/linux-4.4.14/tools/firewire/ |
H A D | nosy-dump.c | 917 struct pollfd pollfds[2]; main() local 981 pollfds[0].fd = fd; main() 982 pollfds[0].events = POLLIN; main() 983 pollfds[1].fd = STDIN_FILENO; main() 984 pollfds[1].events = POLLIN; main() 992 poll(pollfds, 2, -1); main() 993 if (pollfds[1].revents) { main() 1003 if (pollfds[0].revents) main()
|
Completed in 140 milliseconds