virtio-devices: Reserve first 16 events for the EpollHelper

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-07-23 16:27:47 +01:00 committed by Sebastien Boeuf
parent 609f34fa43
commit 1dcf1b11e4

View File

@ -29,7 +29,7 @@ pub enum EpollHelperError {
pub const EPOLL_HELPER_EVENT_PAUSE: u16 = 0;
pub const EPOLL_HELPER_EVENT_KILL: u16 = 1;
pub const EPOLL_HELPER_EVENT_LAST: u16 = EPOLL_HELPER_EVENT_KILL;
pub const EPOLL_HELPER_EVENT_LAST: u16 = 15;
pub trait EpollHelperHandler {
// Return true if execution of the loop should be stopped