pub(crate) struct VirtioDevices {
pub(crate) rng: OptionalCell<(u8, &'static VirtIOPCIDevice)>,
}
Expand description
Provides interrupt servicing logic for Virtio devices which may or may not be present at runtime.
Fields§
§rng: OptionalCell<(u8, &'static VirtIOPCIDevice)>
Trait Implementations§
Source§impl InterruptService for VirtioDevices
impl InterruptService for VirtioDevices
Source§unsafe fn service_interrupt(&self, interrupt: u32) -> bool
unsafe fn service_interrupt(&self, interrupt: u32) -> bool
Service an interrupt, if supported by this chip. If this interrupt
number is not supported, return false.
Auto Trait Implementations§
impl !Freeze for VirtioDevices
impl !RefUnwindSafe for VirtioDevices
impl !Send for VirtioDevices
impl !Sync for VirtioDevices
impl Unpin for VirtioDevices
impl !UnwindSafe for VirtioDevices
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more