Home
last modified time | relevance | path

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

/aosp12/bionic/tests/
H A Dsys_epoll_test.cpp28 int epoll_fd = epoll_create(1); in TEST() local
29 ASSERT_NE(-1, epoll_fd) << strerror(errno); in TEST()
33 ASSERT_EQ(0, epoll_wait(epoll_fd, events, 1, 1)); in TEST()
36 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, nullptr)); in TEST()
40 ASSERT_EQ(0, epoll_pwait64(epoll_fd, events, 1, 1, nullptr)); in TEST()
47 ASSERT_EQ(0, epoll_pwait(epoll_fd, events, 1, 1, &ss)); in TEST()
57 int epoll_fd = epoll_create(1); in TEST() local
58 ASSERT_NE(-1, epoll_fd) << strerror(errno); in TEST()
69 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev)); in TEST()
76 ASSERT_EQ(1, epoll_wait(epoll_fd, events, 1, 1)); in TEST()
/aosp12/system/bt/osi/src/
H A Dreactor.cc43 int epoll_fd; member
72 ret->epoll_fd = INVALID_FD; in reactor_new()
75 ret->epoll_fd = epoll_create1(EPOLL_CLOEXEC); in reactor_new()
76 if (ret->epoll_fd == INVALID_FD) { in reactor_new()
99 if (epoll_ctl(ret->epoll_fd, EPOLL_CTL_ADD, ret->event_fd, &event) == -1) { in reactor_new()
117 close(reactor->epoll_fd); in reactor_free()
159 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_ADD, fd, &event) == -1) { in reactor_register()
181 if (epoll_ctl(object->reactor->epoll_fd, EPOLL_CTL_MOD, object->fd, &event) == in reactor_change_registration()
200 if (epoll_ctl(reactor->epoll_fd, EPOLL_CTL_DEL, obj->fd, NULL) == -1) in reactor_unregister()
246 OSI_NO_INTR(ret = epoll_wait(reactor->epoll_fd, events, MAX_EVENTS, -1)); in run_reactor()
/aosp12/frameworks/native/libs/vr/libpdx_uds/
H A Dchannel_event_set.cpp74 LocalHandle epoll_fd; in ChannelEventReceiver() local
75 if (!SetupHandle(epoll_create1(EPOLL_CLOEXEC), &epoll_fd, "epoll")) { in ChannelEventReceiver()
82 if (epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, data_fd.Get(), &event) < 0) { in ChannelEventReceiver()
91 if (epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, pollin_event_fd.Get(), &event) < in ChannelEventReceiver()
101 if (epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, pollhup_event_fd.Get(), &event) < in ChannelEventReceiver()
113 epoll_fd_ = std::move(epoll_fd); in ChannelEventReceiver()
/aosp12/system/extras/tests/suspend_stress/
H A Dsuspend_stress.cpp103 int epoll_fd = epoll_create(1); in main() local
104 if (epoll_fd < 0) { in main()
111 int ret = epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev); in main()
138 ret = epoll_wait(epoll_fd, &out_ev, 1, -1); in main()
/aosp12/frameworks/native/libs/vr/libpdx/
H A Dservice_dispatcher.cpp78 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_ADD, service->endpoint()->epoll_fd(), in AddService()
96 if (epoll_ctl(epoll_fd_.Get(), EPOLL_CTL_DEL, service->endpoint()->epoll_fd(), in RemoveService()
133 service->endpoint()->epoll_fd()); in ReceiveAndDispatch()
165 service->endpoint()->epoll_fd()); in EnterDispatchLoop()
/aosp12/hardware/interfaces/usb/1.0/default/
H A DUsb.cpp353 int epoll_fd, uevent_fd; in work() local
375 epoll_fd = epoll_create(64); in work()
376 if (epoll_fd == -1) { in work()
381 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, uevent_fd, &ev) == -1) { in work()
389 nevents = epoll_wait(epoll_fd, events, 64, -1); in work()
408 if (epoll_fd >= 0) in work()
409 close(epoll_fd); in work()
/aosp12/bootable/recovery/minui/
H A Devents.cpp147 android::base::unique_fd epoll_fd(epoll_create1(EPOLL_CLOEXEC)); in ev_init() local
148 if (epoll_fd == -1) { in ev_init()
180 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in ev_init()
196 g_epoll_fd.reset(epoll_fd.release()); in ev_init()
/aosp12/bootable/recovery/install/
H A Dadb_install.cpp191 android::base::unique_fd epoll_fd(epoll_create1(O_CLOEXEC)); in ListenAndExecuteMinadbdCommands() local
192 if (epoll_fd == -1) { in ListenAndExecuteMinadbdCommands()
203 if (epoll_ctl(epoll_fd.get(), EPOLL_CTL_ADD, socket_fd.get(), &ev) == -1) { in ListenAndExecuteMinadbdCommands()
219 TEMP_FAILURE_RETRY(epoll_wait(epoll_fd.get(), events, EPOLL_MAX_EVENTS, TIMEOUT_MILLIS)); in ListenAndExecuteMinadbdCommands()
/aosp12/frameworks/native/libs/vr/libbufferhub/
H A Dbuffer_hub-test.cpp114 LocalHandle epoll_fd{epoll_create1(EPOLL_CLOEXEC)}; in TEST_F() local
115 ASSERT_TRUE(epoll_fd.IsValid()); in TEST_F()
126 ASSERT_EQ(0, epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, event_source.event_fd, in TEST_F()
136 ASSERT_EQ(0, epoll_ctl(epoll_fd.Get(), EPOLL_CTL_ADD, event_source.event_fd, in TEST_F()
141 ASSERT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), 0)); in TEST_F()
146 ASSERT_EQ(1, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
155 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
157 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
159 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
161 EXPECT_EQ(0, epoll_wait(epoll_fd.Get(), events.data(), events.size(), in TEST_F()
[all …]
/aosp12/system/core/libappfuse/
H A DFuseAppLoop.cc206 base::unique_fd epoll_fd(epoll_create1(EPOLL_CLOEXEC)); in Start() local
207 if (epoll_fd.get() == -1) { in Start()
215 std::unique_ptr<EpollController> epoll_controller(new EpollController(std::move(epoll_fd))); in Start()
H A DFuseBridgeLoop.cc317 base::unique_fd epoll_fd(epoll_create1(EPOLL_CLOEXEC)); in FuseBridgeLoop() local
318 if (epoll_fd.get() == -1) { in FuseBridgeLoop()
323 epoll_controller_.reset(new BridgeEpollController(std::move(epoll_fd))); in FuseBridgeLoop()
/aosp12/frameworks/native/libs/vr/libpdx/fuzz/
H A Dservice_dispatcher_fuzzer.cpp64 eventfd_write(endpoint->epoll_fd(), wakeup_val); in LLVMFuzzerTestOneInput()
H A Dhelpers.h65 int epoll_fd() const { return _epoll_fd; } in epoll_fd() function
/aosp12/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dmock_service_endpoint.h69 MOCK_CONST_METHOD0(epoll_fd, int());
H A Dservice_endpoint.h142 virtual int epoll_fd() const = 0;
/aosp12/hardware/interfaces/gnss/common/utils/default/include/v2_1/
H A DGnssTemplate.h191 int epoll_fd = epoll_create1(0); in getLocationFromHW() local
192 epoll_ctl(epoll_fd, EPOLL_CTL_ADD, mGnssFd, &ev); in getLocationFromHW()
195 int epoll_ret = epoll_wait(epoll_fd, events, 1, mMinIntervalMs); in getLocationFromHW()
/aosp12/frameworks/native/libs/vr/libpdx_uds/private/uds/
H A Dservice_endpoint.h108 int epoll_fd() const override { return epoll_fd_.Get(); } in epoll_fd() function
/aosp12/frameworks/native/libs/binder/tests/
H A DbinderLibTest.cpp1554 int epoll_fd; in run_server() local
1561 epoll_fd = epoll_create1(EPOLL_CLOEXEC); in run_server()
1562 if (epoll_fd == -1) { in run_server()
1567 if (epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fd, &ev) == -1) { in run_server()
1581 int numEvents = epoll_wait(epoll_fd, events, 1, 1000); in run_server()