pub struct MsiRequest {
pub address: u64,
pub data: u32,
}
Expand description
An message-signaled interrupt request.
Fields§
§address: u64
The MSI address.
data: u32
The data payload.
Implementations§
Source§impl MsiRequest
impl MsiRequest
Sourcepub fn new_x86(
mode: DeliveryMode,
destination: u32,
is_logical_destination: bool,
vector: u8,
is_level_triggered: bool,
) -> Self
pub fn new_x86( mode: DeliveryMode, destination: u32, is_logical_destination: bool, vector: u8, is_level_triggered: bool, ) -> Self
Creates a new MSI request for an x86 system.
Sourcepub fn as_x86(&self) -> (MsiAddress, MsiData)
pub fn as_x86(&self) -> (MsiAddress, MsiData)
Interprets the MSI address and data as an x86 MSI request.
Sourcepub fn hv_x86_interrupt_control(&self) -> HvInterruptControl
pub fn hv_x86_interrupt_control(&self) -> HvInterruptControl
Constructs an interrupt control for sending this interrupt request to a Microsoft hypervisor.
Note that this may produce an invalid interrupt control that the hypervisor will reject.
Trait Implementations§
Source§impl Clone for MsiRequest
impl Clone for MsiRequest
Source§fn clone(&self) -> MsiRequest
fn clone(&self) -> MsiRequest
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MsiRequest
impl Debug for MsiRequest
impl Copy for MsiRequest
Auto Trait Implementations§
impl Freeze for MsiRequest
impl RefUnwindSafe for MsiRequest
impl Send for MsiRequest
impl Sync for MsiRequest
impl Unpin for MsiRequest
impl UnwindSafe for MsiRequest
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