Home
last modified time | relevance | path

Searched refs:ufds (Results 1 – 6 of 6) sorted by relevance

/system/core/debuggerd/
Dgetevent.c15 static struct pollfd *ufds; variable
57 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
62 ufds = new_ufds; in open_device()
69 ufds[nfds].fd = fd; in open_device()
70 ufds[nfds].events = POLLIN; in open_device()
85 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); in close_device()
165 ufds = calloc(1, sizeof(ufds[0])); in init_getevent()
166 ufds[0].fd = inotify_init(); in init_getevent()
167 ufds[0].events = POLLIN; in init_getevent()
169 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in init_getevent()
[all …]
/system/core/toolbox/
Dgetevent.c16 static struct pollfd *ufds; variable
338 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
343 ufds = new_ufds; in open_device()
379 ufds[nfds].fd = fd; in open_device()
380 ufds[nfds].events = POLLIN; in open_device()
397 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); in close_device()
589 ufds = calloc(1, sizeof(ufds[0])); in getevent_main()
590 ufds[0].fd = inotify_init(); in getevent_main()
591 ufds[0].events = POLLIN; in getevent_main()
603 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in getevent_main()
[all …]
/system/core/init/
Dinit.c839 struct pollfd ufds[4]; in main() local
968 ufds[fd_count].fd = get_property_set_fd(); in main()
969 ufds[fd_count].events = POLLIN; in main()
970 ufds[fd_count].revents = 0; in main()
975 ufds[fd_count].fd = get_signal_fd(); in main()
976 ufds[fd_count].events = POLLIN; in main()
977 ufds[fd_count].revents = 0; in main()
982 ufds[fd_count].fd = get_keychord_fd(); in main()
983 ufds[fd_count].events = POLLIN; in main()
984 ufds[fd_count].revents = 0; in main()
[all …]
/system/bluetooth/tools/
Dpipetest.c55 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { in _poll() argument
59 ret = poll(ufds, nfds, timeout); in _poll()
64 if (ufds[i].revents) { in _poll()
65 printf("\tfd %d ", ufds[i].fd); print_events(ufds[i].revents); in _poll()
Dasocket_test.c79 static void print_fds(struct pollfd *ufds, nfds_t nfds) { in print_fds() argument
82 printf("%d ", ufds[i].fd); in print_fds()
297 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { in _poll() argument
302 print_fds(ufds, nfds); in _poll()
304 ret = poll(ufds, nfds, timeout); in _poll()
309 if (ufds[i].revents) { in _poll()
310 printf("\tfd %d ", ufds[i].fd); print_events(ufds[i].revents); in _poll()
Dsocktest.c78 static void print_fds(struct pollfd *ufds, nfds_t nfds) { in print_fds() argument
81 printf("%d ", ufds[i].fd); in print_fds()
311 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { in _poll() argument
316 print_fds(ufds, nfds); in _poll()
318 ret = poll(ufds, nfds, timeout); in _poll()
323 if (ufds[i].revents) { in _poll()
324 printf("\tfd %d ", ufds[i].fd); print_events(ufds[i].revents); in _poll()