Home
last modified time | relevance | path

Searched refs:epollFd_ (Results 1 - 19 of 19) sorted by relevance

/base/msdp/device_status/utils/ipc/src/
H A Dstream_socket.cpp38 epollFd_ = ::epoll_create1(EPOLL_CLOEXEC); in EpollCreate()
39 if (epollFd_ < 0) { in EpollCreate()
52 if (epollFd_ < 0) { in EpollCtl()
53 FI_HILOGE("Invalid epollFd:%{public}d", epollFd_); in EpollCtl()
56 if (::epoll_ctl(epollFd_, op, fd, &event) != 0) { in EpollCtl()
57 FI_HILOGE("epoll_ctl(%{public}d,%{public}d,%{public}d) failed:%{public}s", epollFd_, op, fd, ::strerror(errno)); in EpollCtl()
65 if (epollFd_ < 0) { in EpollWait()
66 FI_HILOGE("Invalid epollFd:%{public}d", epollFd_); in EpollWait()
69 return epoll_wait(epollFd_, &events, maxevents, timeout); in EpollWait()
116 if (epollFd_ > in EpollClose()
[all...]
/base/msdp/device_status/intention/common/epoll/src/
H A Depoll_manager.cpp39 if (epollFd_ != -1) { in Open()
42 epollFd_ = ::epoll_create1(EPOLL_CLOEXEC); in Open()
43 if (epollFd_ == -1) { in Open()
52 if (epollFd_ != -1) { in Close()
53 if (::close(epollFd_) != 0) { in Close()
54 FI_HILOGE("close(%d) failed:%{public}s", epollFd_, ::strerror(errno)); in Close()
56 epollFd_ = -1; in Close()
72 int32_t ret = ::epoll_ctl(epollFd_, EPOLL_CTL_ADD, source->GetFd(), &ev); in Add()
91 int32_t ret = ::epoll_ctl(epollFd_, EPOLL_CTL_DEL, source->GetFd(), nullptr); in Remove()
110 int32_t ret = ::epoll_ctl(epollFd_, EPOLL_CTL_MO in Update()
[all...]
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Depoll_io_waiter.cpp50 if (epollFd_ >= 0) { in ~EpollIoWaiter()
51 close(epollFd_); in ~EpollIoWaiter()
52 epollFd_ = -1; in ~EpollIoWaiter()
64 if (epollFd_ >= 0) { in Init()
98 epollFd_ = epollFd; in Init()
118 if (epollFd_ < 0) { in WaitFor()
129 int32_t retVal = epoll_wait(epollFd_, epollEvents, MAX_EPOLL_EVENTS_SIZE, NanosecondsToTimeout(nanoseconds)); in WaitFor()
221 if (epollFd_ < 0) { in AddFileDescriptor()
237 if (EpollCtrl(epollFd_, EPOLL_CTL_ADD, fileDescriptor, epollEvents) < 0) { in AddFileDescriptor()
254 if (epollFd_ < in RemoveFileDescriptor()
[all...]
H A Ddeamon_io_waiter.cpp56 if (epollFd_ >= 0) { in ~DeamonIoWaiter()
57 close(epollFd_); in ~DeamonIoWaiter()
58 epollFd_ = -1; in ~DeamonIoWaiter()
79 if (epollFd_ >= 0) { in Init()
113 epollFd_ = epollFd; in Init()
225 if (epollFd_ < 0) { in EpollWaitFor()
246 int32_t retVal = epoll_wait(epollFd_, epollEvents, MAX_EPOLL_EVENTS_SIZE, -1); in EpollWaitFor()
305 if (epollFd_ < 0) { in AddFileDescriptor()
321 if (EpollCtrl(epollFd_, EPOLL_CTL_ADD, fileDescriptor, epollEvents | EPOLLET) < 0) { in AddFileDescriptor()
339 if (epollFd_ < in RemoveFileDescriptor()
[all...]
/base/msdp/device_status/test/unittest/intention/services/src/
H A Ddevice_manager_test.cpp175 FI_HILOGI("AddEpoll, epollfd:%{public}d, fd:%{public}d", epollFd_, delegateTasks_.GetReadFd()); in InitDelegateTasks()
182 epollFd_ = ::epoll_create1(EPOLL_CLOEXEC); in EpollCreate()
183 if (epollFd_ < 0) { in EpollCreate()
245 if (epollFd_ >= 0) { in EpollClose()
246 if (close(epollFd_) < 0) { in EpollClose()
247 FI_HILOGE("Close epoll fd failed, error:%{public}s, epollFd_:%{public}d", strerror(errno), epollFd_); in EpollClose()
249 epollFd_ = -1; in EpollClose()
260 if (epollFd_ < 0) { in EpollCtl()
261 FI_HILOGE("Invalid epollFd:%{public}d", epollFd_); in EpollCtl()
[all...]
/base/msdp/device_status/test/fuzztest/msdpdevicemanager_fuzzer/
H A Dmsdpdevicemanager_fuzzer.cpp173 FI_HILOGI("AddEpoll, epollfd:%{public}d, fd:%{public}d", epollFd_, delegateTasks_.GetReadFd()); in InitDelegateTasks()
180 epollFd_ = ::epoll_create1(EPOLL_CLOEXEC); in EpollCreate()
181 if (epollFd_ < 0) { in EpollCreate()
243 if (epollFd_ >= 0) { in EpollClose()
244 if (close(epollFd_) < 0) { in EpollClose()
245 FI_HILOGE("Close epoll fd failed, error:%{public}s, epollFd_:%{public}d", strerror(errno), epollFd_); in EpollClose()
247 epollFd_ = -1; in EpollClose()
258 if (epollFd_ < 0) { in EpollCtl()
259 FI_HILOGE("Invalid epollFd:%{public}d", epollFd_); in EpollCtl()
[all...]
H A Dmsdpdevicemanager_fuzzer.h100 int32_t epollFd_ { -1 };
/base/msdp/device_status/intention/common/epoll/include/
H A Depoll_manager.h53 int32_t epollFd_ { -1 };
59 return epollFd_; in GetFd()
/base/msdp/device_status/test/unittest/intention/scheduler/src/
H A Dtimer_manager_test.cpp166 FI_HILOGI("AddEpoll, epollfd:%{public}d, fd:%{public}d", epollFd_, delegateTasks_.GetReadFd()); in InitDelegateTasks()
173 epollFd_ = ::epoll_create1(EPOLL_CLOEXEC); in EpollCreate()
174 if (epollFd_ < 0) { in EpollCreate()
236 if (epollFd_ >= 0) { in EpollClose()
237 if (close(epollFd_) < 0) { in EpollClose()
238 FI_HILOGE("Close epoll fd failed, error:%{public}s, epollFd_:%{public}d", strerror(errno), epollFd_); in EpollClose()
240 epollFd_ = -1; in EpollClose()
251 if (epollFd_ < 0) { in EpollCtl()
252 FI_HILOGE("Invalid epollFd:%{public}d", epollFd_); in EpollCtl()
[all...]
/base/time/time_service/services/timer/src/
H A Dtimer_handler.cpp89 : fds_ {fds}, epollFd_ {epollfd} in TimerHandler()
96 epoll_ctl(epollFd_, EPOLL_CTL_DEL, fd, nullptr); in ~TimerHandler()
99 close(epollFd_); in ~TimerHandler()
128 nevents = epoll_wait(epollFd_, events, N_TIMER_FDS, -1); in WaitForAlarm()
/base/sensors/sensor/utils/ipc/include/
H A Dstream_socket.h56 int32_t epollFd_ { -1 };
/base/time/time_service/services/timer/include/
H A Dtimer_handler.h42 const int epollFd_; member in OHOS::MiscServices::TimerHandler
/base/msdp/device_status/utils/ipc/include/
H A Dstream_socket.h59 int32_t epollFd_ { -1 };
/base/msdp/device_status/services/native/src/
H A Dstream_server.cpp41 if (epollFd_ != -1) { in UdsStop()
42 if (close(epollFd_) < 0) { in UdsStop()
43 FI_HILOGE("Close epoll fd failed, error:%{public}s, epollFd_:%{public}d", strerror(errno), epollFd_); in UdsStop()
45 epollFd_ = -1; in UdsStop()
H A Ddevicestatus_service.cpp482 FI_HILOGI("AddEpoll, epollfd:%{public}d, fd:%{public}d", epollFd_, delegateTasks_.GetReadFd()); in InitDelegateTasks()
/base/notification/eventhandler/frameworks/eventhandler/include/
H A Depoll_io_waiter.h67 int32_t epollFd_{-1};
H A Ddeamon_io_waiter.h70 int32_t epollFd_{-1};
/base/msdp/device_status/test/unittest/intention/services/include/
H A Ddevice_manager_test.h100 int32_t epollFd_ { -1 };
/base/msdp/device_status/test/unittest/intention/scheduler/include/
H A Dtimer_manager_test.h94 int32_t epollFd_ { -1 };

Completed in 8 milliseconds