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:
Rob Bradford 2020-07-23 17:13:41 +01:00 committed by Sebastien Boeuf
parent 1dcf1b11e4
commit d66fa942be

View File

@ -132,3 +132,9 @@ impl EpollHelper {
}
}
}
impl AsRawFd for EpollHelper {
fn as_raw_fd(&self) -> RawFd {
self.epoll_file.as_raw_fd()
}
}