Home
last modified time | relevance | path

Searched refs:epoll (Results 1 – 8 of 8) sorted by relevance

/aosp14/system/core/init/
H A Depoll_test.cpp40 TEST(epoll, UnregisterHandler) { in TEST() argument
41 Epoll epoll; in TEST() local
42 ASSERT_RESULT_OK(epoll.Open()); in TEST()
50 auto result = epoll.UnregisterHandler(fds[0]); in TEST()
58 epoll.RegisterHandler(fds[0], std::move(handler)); in TEST()
63 auto epoll_result = epoll.Wait({}); in TEST()
H A Dinit.cpp138 static void InstallInitNotifier(Epoll* epoll) { in InstallInitNotifier() argument
751 static void InstallSignalFdHandler(Epoll* epoll) { in InstallSignalFdHandler() argument
994 Epoll epoll; in SecondStageMain() local
995 if (auto result = epoll.Open(); !result.ok()) { in SecondStageMain()
1002 epoll.SetFirstCallback(ReapAnyOutstandingChildren); in SecondStageMain()
1004 InstallSignalFdHandler(&epoll); in SecondStageMain()
1005 InstallInitNotifier(&epoll); in SecondStageMain()
1019 MountHandler mount_handler(&epoll); in SecondStageMain()
1065 [&epoll, &keychords](const BuiltinArguments& args) -> Result<void> { in SecondStageMain()
1069 keychords.Start(&epoll, HandleKeychord); in SecondStageMain()
[all …]
H A Dmount_handler.cpp167 MountHandler::MountHandler(Epoll* epoll) : epoll_(epoll), fp_(fopen("/proc/mounts", "re"), fclose) { in MountHandler() argument
169 auto result = epoll->RegisterHandler( in MountHandler()
H A Dmount_handler.h43 explicit MountHandler(Epoll* epoll);
H A Dkeychords.h40 void Start(Epoll* epoll, std::function<void(const std::vector<int>&)> handler);
H A Dkeychords.cpp286 void Keychords::Start(Epoll* epoll, std::function<void(const std::vector<int>&)> handler) { in Start() argument
287 epoll_ = epoll; in Start()
H A Dproperty_service.cpp1423 Epoll epoll; in PropertyServiceThread() local
1424 if (auto result = epoll.Open(); !result.ok()) { in PropertyServiceThread()
1428 if (auto result = epoll.RegisterHandler(property_set_fd, handle_property_set_fd); in PropertyServiceThread()
1433 if (auto result = epoll.RegisterHandler(init_socket, HandleInitSocket); !result.ok()) { in PropertyServiceThread()
1438 auto epoll_result = epoll.Wait(std::nullopt); in PropertyServiceThread()
H A DAndroid.bp39 "epoll.cpp",