MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / run_ctrl

Method run_ctrl

virtio-devices/src/net.rs:76–86  ·  view source on GitHub ↗
(
        &mut self,
        paused: &AtomicBool,
        paused_sync: &Barrier,
    )

Source from the content-addressed store, hash-verified

74 }
75
76 pub fn run_ctrl(
77 &mut self,
78 paused: &AtomicBool,
79 paused_sync: &Barrier,
80 ) -> std::result::Result<(), EpollHelperError> {
81 let mut helper = EpollHelper::new(&self.kill_evt, &self.pause_evt)?;
82 helper.add_event(self.queue_evt.as_raw_fd(), CTRL_QUEUE_EVENT)?;
83 helper.run(paused, paused_sync, self)?;
84
85 Ok(())
86 }
87}
88
89impl EpollHelperHandler for NetCtrlEpollHandler {

Callers 2

activateMethod · 0.80
activateMethod · 0.80

Calls 4

newFunction · 0.85
add_eventMethod · 0.45
as_raw_fdMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected