Notify virtqueue in a batch manner

This commit is contained in:
jiangjianfeng
2024-12-17 02:24:07 +00:00
committed by Tate, Hongliang Tian
parent acc10376e6
commit 9a540d0fb6
5 changed files with 109 additions and 17 deletions

View File

@ -18,3 +18,9 @@ pub trait WithDevice: Send + Sync {
where
F: FnOnce(&mut Self::Device) -> R;
}
/// A trait for notifying device drivers about the polling process.
pub trait NotifyDevice {
/// Notifies the device driver that polling has ended.
fn notify_poll_end(&mut self);
}