Home
last modified time | relevance | path

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

/system/bt/osi/src/
Dreactor.c39 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()
160 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_ADD, fd, &event) == -1) { in reactor_register()
183 if (epoll_ctl(object->reactor->epoll_fd, EPOLL_CTL_MOD, object->fd, &event) == -1) { in reactor_change_registration()
201 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_DEL, obj->fd, NULL) == -1) in reactor_unregister()
244 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/adb/
Dfdevent.cpp105 static int epoll_fd = -1; variable
110 epoll_fd = epoll_create(256); in fdevent_init()
112 if(epoll_fd < 0) { in fdevent_init()
118 fcntl(epoll_fd, F_SETFD, FD_CLOEXEC); in fdevent_init()
130 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) { in fdevent_connect()
150 epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fde->fd, &ev); in fdevent_disconnect()
176 if(epoll_ctl(epoll_fd, EPOLL_CTL_MOD, fde->fd, &ev)) { in fdevent_update()
181 if(epoll_ctl(epoll_fd, EPOLL_CTL_DEL, fde->fd, &ev)) { in fdevent_update()
191 if(epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fde->fd, &ev)) { in fdevent_update()
205 n = epoll_wait(epoll_fd, events, 256, -1); in fdevent_process()
/system/core/init/
Dinit.cpp85 static int epoll_fd = -1; variable
91 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in register_epoll_handler()
1069 epoll_fd = epoll_create1(EPOLL_CLOEXEC); in main()
1070 if (epoll_fd == -1) { in main()
1129 int nr = TEMP_FAILURE_RETRY(epoll_wait(epoll_fd, &ev, 1, timeout)); in main()