Searched refs:ufds (Results 1 – 3 of 3) sorted by relevance
/system/core/debuggerd/ |
D | getevent.cpp | 31 static struct pollfd* ufds; variable 69 new_ufds = reinterpret_cast<pollfd*>(realloc(ufds, sizeof(ufds[0]) * (nfds + 1))); in open_device() 74 ufds = new_ufds; in open_device() 82 ufds[nfds].fd = fd; in open_device() 83 ufds[nfds].events = POLLIN; in open_device() 97 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); in close_device() 170 ufds = reinterpret_cast<pollfd*>(calloc(1, sizeof(ufds[0]))); in init_getevent() 171 ufds[0].fd = inotify_init(); in init_getevent() 172 ufds[0].events = POLLIN; in init_getevent() 174 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in init_getevent() [all …]
|
/system/core/toolbox/ |
D | getevent.c | 35 static struct pollfd *ufds; variable 363 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device() 368 ufds = new_ufds; in open_device() 404 ufds[nfds].fd = fd; in open_device() 405 ufds[nfds].events = POLLIN; in open_device() 422 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); in close_device() 612 ufds = calloc(1, sizeof(ufds[0])); in getevent_main() 613 ufds[0].fd = inotify_init(); in getevent_main() 614 ufds[0].events = POLLIN; in getevent_main() 626 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in getevent_main() [all …]
|
/system/core/init/ |
D | property_service.cpp | 242 struct pollfd ufds[1]; in handle_property_set_fd() local 257 ufds[0].fd = s; in handle_property_set_fd() 258 ufds[0].events = POLLIN; in handle_property_set_fd() 259 ufds[0].revents = 0; in handle_property_set_fd() 260 nr = TEMP_FAILURE_RETRY(poll(ufds, 1, timeout_ms)); in handle_property_set_fd()
|