Home
last modified time | relevance | path

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

/system/core/toolbox/
Dgetevent.c36 static struct pollfd *ufds; variable
362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); in open_device()
367 ufds = new_ufds; in open_device()
403 ufds[nfds].fd = fd; in open_device()
404 ufds[nfds].events = POLLIN; in open_device()
421 memmove(ufds + i, ufds + i + 1, sizeof(ufds[0]) * count); in close_device()
614 ufds = calloc(1, sizeof(ufds[0])); in getevent_main()
615 ufds[0].fd = inotify_init(); in getevent_main()
616 ufds[0].events = POLLIN; in getevent_main()
628 res = inotify_add_watch(ufds[0].fd, device_path, IN_DELETE | IN_CREATE); in getevent_main()
[all …]
/system/core/init/
Dproperty_service.cpp346 struct pollfd ufds[1]; in PollIn() local
347 ufds[0].fd = socket_; in PollIn()
348 ufds[0].events = POLLIN; in PollIn()
349 ufds[0].revents = 0; in PollIn()
352 int nr = poll(ufds, 1, *timeout_ms); in PollIn()