/bionic/tests/ |
sys_epoll_test.cpp | 26 int epoll_fd = epoll_create(1); local 27 ASSERT_NE(-1, epoll_fd) << strerror(errno); 31 ASSERT_EQ(0, epoll_wait(epoll_fd, events, 1, 1)); 34 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, NULL)); 40 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, &ss)); 50 int epoll_fd = epoll_create(1); local 51 ASSERT_NE(-1, epoll_fd) << strerror(errno); 62 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev)); 69 ASSERT_EQ(1, epoll_wait(epoll_fd, events, 1, 1));
|
/frameworks/native/libs/vr/libpdx_uds/ |
channel_event_set.cpp | 13 LocalHandle epoll_fd, event_fd; local 15 if (!SetupHandle(epoll_create1(EPOLL_CLOEXEC), &epoll_fd, "epoll") || 23 if (epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, event_fd.Get(), &event) < 0) { 30 epoll_fd_ = std::move(epoll_fd);
|
/frameworks/native/libs/vr/libpdx_uds/private/uds/ |
service_endpoint.h | 108 int epoll_fd() const { return epoll_fd_.Get(); } function in class:android::pdx::uds::Endpoint
|
/system/extras/tests/suspend_stress/ |
suspend_stress.cpp | 103 int epoll_fd = epoll_create(1); local 104 if (epoll_fd < 0) { 111 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); 138 ret = epoll_wait(epoll_fd, &out_ev, 1, -1);
|
/system/bt/osi/src/ |
reactor.cc | 43 int epoll_fd; member in struct:reactor_t 72 ret->epoll_fd = INVALID_FD; 75 ret->epoll_fd = epoll_create(MAX_EVENTS); 76 if (ret->epoll_fd == INVALID_FD) { 101 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { 119 close(reactor->epoll_fd); 161 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_ADD, fd, &event) == -1) { 183 if (epoll_ctl(object->reactor->epoll_fd, EPOLL_CTL_MOD, object->fd, &event) == 202 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_DEL, obj->fd, NULL) == -1) 248 OSI_NO_INTR(ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1)) [all...] |
/device/google/marlin/usb/ |
Usb.cpp | 409 int epoll_fd, uevent_fd; local 431 epoll_fd = epoll_create(64); 432 if (epoll_fd == -1) { 437 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { 445 nevents = epoll_wait(epoll_fd, events, 64, -1); 463 if (epoll_fd >= 0) close(epoll_fd);
|
/external/ltp/testcases/kernel/syscalls/epoll/ |
epoll-ltp.c | 43 Next run epoll_ctl on that fd (epoll_fd) with a variety of 174 #define PROTECT_FUNC(fn, errval, epoll_fd) ( \ 182 return fn(epoll_fd); \ 205 int epoll_fd = -1; local 215 epoll_fd = epoll_create(fd_set_size); 216 if (epoll_fd >= 0) { 220 close(epoll_fd); 238 epoll_fd = epoll_create(fd_set_size); 239 if (epoll_fd == -1) { 254 close(epoll_fd); [all...] |
/hardware/interfaces/usb/1.0/default/ |
Usb.cpp | 353 int epoll_fd, uevent_fd; local 375 epoll_fd = epoll_create(64); 376 if (epoll_fd == -1) { 381 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { 389 nevents = epoll_wait(epoll_fd, events, 64, -1); 408 if (epoll_fd >= 0) 409 close(epoll_fd);
|
/device/generic/goldfish/gps/ |
gps_qemu.c | 650 epoll_register( int epoll_fd, int fd ) 662 ret = epoll_ctl( epoll_fd, EPOLL_CTL_ADD, fd, &ev ); 669 epoll_deregister( int epoll_fd, int fd ) 673 ret = epoll_ctl( epoll_fd, EPOLL_CTL_DEL, fd, NULL ); 687 int epoll_fd = epoll_create(2); local 695 epoll_register( epoll_fd, control_fd ); 696 epoll_register( epoll_fd, gps_fd ); 705 nevents = epoll_wait( epoll_fd, events, 2, -1 );
|
/system/core/init/ |
init.cpp | 88 static int epoll_fd = -1; variable 98 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { [all...] |
/device/generic/goldfish/qemud/ |
qemud.c | 335 int epoll_fd; member in struct:__anon3000 346 l->epoll_fd = epoll_create(4); 362 close(l->epoll_fd); 363 l->epoll_fd = -1; 401 epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, hook->fd, &ev ); 430 epoll_ctl( l->epoll_fd, EPOLL_CTL_ADD, fd, &ev ); 449 epoll_ctl( l->epoll_fd, EPOLL_CTL_DEL, fd, NULL ); 473 epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, fd, &ev ); 498 epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, fd, &ev ); 512 count = epoll_wait( l->epoll_fd, l->events, l->num_fds, -1 ) [all...] |
/external/libmicrohttpd/src/microhttpd/ |
internal.h | 1132 int epoll_fd; member in struct:MHD_Daemon [all...] |