Home
last modified time | relevance | path

Searched refs:epollFd (Results 1 – 6 of 6) sorted by relevance

/base/startup/init/services/loopevent/loop/
Dle_epoll.c23 return loop->epollFd >= 0; in IsValid_()
41 LE_LOGV("Close_ epollFd %d", epoll->epollFd); in Close_()
42 close(epoll->epollFd); in Close_()
57 ret = epoll_ctl(epoll->epollFd, EPOLL_CTL_ADD, fd, &event); in AddEvent_()
73 ret = epoll_ctl(epoll->epollFd, EPOLL_CTL_MOD, fd, &event); in ModEvent_()
87 (void)epoll_ctl(epoll->epollFd, EPOLL_CTL_DEL, fd, &event); in DelEvent_()
102 int number = epoll_wait(epoll->epollFd, epoll->waitEvents, loop->maxevents, -1); in RunLoop_()
131 epoll->epollFd = epoll_create(maxevents); in CreateEpollLoop()
132 LE_CHECK(epoll->epollFd >= 0, free(epoll); in CreateEpollLoop()
Dle_epoll.h24 int epollFd; member
/base/notification/eventhandler/frameworks/eventhandler/src/
Depoll_io_waiter.cpp35 inline int32_t EpollCtrl(int32_t epollFd, int32_t operation, int32_t fileDescriptor, uint32_t epoll… in EpollCtrl() argument
42 return epoll_ctl(epollFd, operation, fileDescriptor, &epollEvent); in EpollCtrl()
69 int32_t epollFd = -1; in Init() local
73 epollFd = epoll_create(MAX_EPOLL_EVENTS_SIZE); in Init()
74 if (epollFd < 0) { in Init()
90 if (EpollCtrl(epollFd, EPOLL_CTL_ADD, awakenFd, EPOLLIN | EPOLLET) < 0) { in Init()
98 epollFd_ = epollFd; in Init()
105 if (epollFd >= 0) { in Init()
106 close(epollFd); in Init()
/base/hiviewdfx/faultloggerd/services/
Dfault_logger_daemon.h34 void AddEvent(int32_t epollFd, int32_t addFd, uint32_t event);
35 void DelEvent(int32_t epollFd, int32_t delFd, uint32_t event);
36 void HandleAccept(int32_t epollFd, int32_t socketFd);
37 void HandleRequest(int32_t epollFd, int32_t connectionFd);
Dfault_logger_daemon.cpp131 void FaultLoggerDaemon::HandleAccept(int32_t epollFd, int32_t socketFd) in HandleAccept() argument
146 void FaultLoggerDaemon::HandleRequest(int32_t epollFd, int32_t connectionFd) in HandleRequest() argument
148 …if (epollFd < 0 || connectionFd < 3) { // 3: not allow fd = 0,1,2 because they are reserved by sys… in HandleRequest()
586 void FaultLoggerDaemon::AddEvent(int32_t epollFd, int32_t addFd, uint32_t event) in AddEvent() argument
591 int ret = epoll_ctl(epollFd, EPOLL_CTL_ADD, addFd, &ev); in AddEvent()
597 void FaultLoggerDaemon::DelEvent(int32_t epollFd, int32_t delFd, uint32_t event) in DelEvent() argument
602 int ret = epoll_ctl(epollFd, EPOLL_CTL_DEL, delFd, &ev); in DelEvent()
/base/hiviewdfx/faultloggerd/test/fuzztest/faultloggerd_fuzzer/
Dfaultloggerd_fuzzer.cpp107 int32_t epollFd[1]; in FaultloggerdServerTest() local
109 errno_t err = memcpy_s(epollFd, sizeof(epollFd), data, sizeof(int32_t)); in FaultloggerdServerTest()
122 daemon->HandleRequest(epollFd[0], connectionFd[0]); in FaultloggerdServerTest()