Home
last modified time | relevance | path

Searched refs:epoll_fd (Results 1 – 3 of 3) sorted by relevance

/system/bt/osi/src/
Dreactor.c41 int epoll_fd; member
68 ret->epoll_fd = INVALID_FD; in reactor_new()
71 ret->epoll_fd = epoll_create(MAX_EVENTS); in reactor_new()
72 if (ret->epoll_fd == INVALID_FD) { in reactor_new()
94 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { in reactor_new()
112 close(reactor->epoll_fd); in reactor_free()
157 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_ADD, fd, &event) == -1) { in reactor_register()
180 if (epoll_ctl(object->reactor->epoll_fd, EPOLL_CTL_MOD, object->fd, &event) == -1) { in reactor_change_registration()
198 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_DEL, obj->fd, NULL) == -1) in reactor_unregister()
240 OSI_NO_INTR(ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1)); in run_reactor()
/system/extras/tests/suspend_stress/
Dsuspend_stress.cpp104 int epoll_fd = epoll_create(1); in main() local
105 if (epoll_fd < 0) { in main()
112 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); in main()
139 ret = epoll_wait(epoll_fd, &out_ev, 1, -1); in main()
/system/core/init/
Dinit.cpp86 static int epoll_fd = -1; variable
92 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in register_epoll_handler()
669 epoll_fd = epoll_create1(EPOLL_CLOEXEC); in main()
670 if (epoll_fd == -1) { in main()
740 int nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd, &ev, 1, timeout)); in main()