mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Notify virtqueue in a batch manner
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
acc10376e6
commit
9a540d0fb6
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user