mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
virtio-devices: Implement AsRawFd for EpollHelper
This is required for implementing virtio-net as the epoll RawFd must be assigned into the NetQueuePair. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
1dcf1b11e4
commit
d66fa942be
@ -132,3 +132,9 @@ impl EpollHelper {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl AsRawFd for EpollHelper {
|
||||
fn as_raw_fd(&self) -> RawFd {
|
||||
self.epoll_file.as_raw_fd()
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user