Searched refs:control_fd_ (Results 1 – 3 of 3) sorted by relevance
/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | reactor.cc | 103 Reactor::Reactor() : epoll_fd_(0), control_fd_(0), is_running_(false) { in Reactor() 107 control_fd_ = eventfd(0, EFD_NONBLOCK); in Reactor() 108 log::assert_that(control_fd_ != -1, "assert failed: control_fd_ != -1"); in Reactor() 112 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_ADD, control_fd_, &control_epoll_event)); in Reactor() 118 RUN_NO_INTR(result = epoll_ctl(epoll_fd_, EPOLL_CTL_DEL, control_fd_, nullptr)); in ~Reactor() 121 RUN_NO_INTR(result = close(control_fd_)); in ~Reactor() 158 eventfd_read(control_fd_, &value); in Run() 207 auto control = eventfd_write(control_fd_, kStopReactor); in Stop() 286 auto control = eventfd_write(control_fd_, kWaitForIdle); in WaitForIdle()
|
/packages/modules/adb/daemon/ |
D | usb.cpp | 149 control_fd_(std::move(control)), in UsbFfsConnection() 174 control_fd_.reset(); in ~UsbFfsConnection() 266 { .fd = control_fd_.get(), .events = POLLIN, .revents = 0 }, in StartMonitor() 287 rc = TEMP_FAILURE_RETRY(adb_read(control_fd_.get(), &event, sizeof(event))); in StartMonitor() 371 ssize_t rc = adb_write(control_fd_.get(), "", 0); in StartMonitor() 380 ssize_t rc = adb_read(control_fd_.get(), buf.data(), buf.size()); in StartMonitor() 719 unique_fd control_fd_; member
|
/packages/modules/Bluetooth/system/gd/os/ |
D | reactor.h | 102 int control_fd_; variable
|