Lines Matching refs:bridge
246 bool AddBridgePoll(FuseBridgeEntry* bridge) const { in AddBridgePoll()
247 return InvokeControl(EPOLL_CTL_ADD, bridge); in AddBridgePoll()
250 bool UpdateOrDeleteBridgePoll(FuseBridgeEntry* bridge) const { in UpdateOrDeleteBridgePoll()
252 bridge->state_ != FuseBridgeState::kClosing ? EPOLL_CTL_MOD : EPOLL_CTL_DEL, bridge); in UpdateOrDeleteBridgePoll()
272 bool InvokeControl(int op, FuseBridgeEntry* bridge) const { in InvokeControl()
273 LOG(VERBOSE) << "InvokeControl op=" << op << " bridge=" << bridge->mount_id_ in InvokeControl()
274 << " state=" << static_cast<int>(bridge->state_) in InvokeControl()
275 << " last_state=" << static_cast<int>(bridge->last_state_); in InvokeControl()
281 GetObservedEvents(bridge->last_state_, &last_device_events, &last_proxy_events); in InvokeControl()
282 GetObservedEvents(bridge->state_, &device_events, &proxy_events); in InvokeControl()
285 result &= EpollController::InvokeControl(op, bridge->device_fd_, device_events, in InvokeControl()
286 &bridge->last_device_events_); in InvokeControl()
289 result &= EpollController::InvokeControl(op, bridge->proxy_fd_, proxy_events, in InvokeControl()
290 &bridge->last_proxy_events_); in InvokeControl()
311 std::unique_ptr<FuseBridgeEntry> bridge( in AddBridge() local
322 if (!epoll_controller_->AddBridgePoll(bridge.get())) { in AddBridge()
326 bridges_.emplace(mount_id, std::move(bridge)); in AddBridge()