From eb056d374a557b819cde007d0ab056b18856ea2a Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Thu, 28 Jul 2022 21:04:28 -0700 Subject: [PATCH] vmm: Make 'EpollContext::add_event()' public So that it can be reused by other crate, e.g. from fuzz targets. Signed-off-by: Bo Chen --- vmm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/lib.rs b/vmm/src/lib.rs index 1fbf5c41c..0e6246816 100644 --- a/vmm/src/lib.rs +++ b/vmm/src/lib.rs @@ -215,7 +215,7 @@ impl EpollContext { Ok(EpollContext { epoll_file }) } - fn add_event(&mut self, fd: &T, token: EpollDispatch) -> result::Result<(), io::Error> + pub fn add_event(&mut self, fd: &T, token: EpollDispatch) -> result::Result<(), io::Error> where T: AsRawFd, {