pub struct AssignedSpiConfig { /* private fields */ }Expand description
One physical SPI binding fixed before controller creation.
Implementations§
Source§impl AssignedSpiConfig
impl AssignedSpiConfig
Sourcepub fn new(
intid: SpiId,
host_irq: HostIrqId,
target_vcpu: usize,
trigger: InterruptTrigger,
) -> VgicResult<Self>
pub fn new( intid: SpiId, host_irq: HostIrqId, target_vcpu: usize, trigger: InterruptTrigger, ) -> VgicResult<Self>
Creates an identity-mapped physical SPI binding.
Sourcepub const fn target_vcpu(self) -> usize
pub const fn target_vcpu(self) -> usize
Returns the fixed target vCPU.
Sourcepub const fn trigger(self) -> InterruptTrigger
pub const fn trigger(self) -> InterruptTrigger
Returns the immutable physical trigger.
Trait Implementations§
Source§impl Clone for AssignedSpiConfig
impl Clone for AssignedSpiConfig
Source§fn clone(&self) -> AssignedSpiConfig
fn clone(&self) -> AssignedSpiConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AssignedSpiConfig
Source§impl Debug for AssignedSpiConfig
impl Debug for AssignedSpiConfig
impl Eq for AssignedSpiConfig
Source§impl PartialEq for AssignedSpiConfig
impl PartialEq for AssignedSpiConfig
impl StructuralPartialEq for AssignedSpiConfig
Auto Trait Implementations§
impl Freeze for AssignedSpiConfig
impl RefUnwindSafe for AssignedSpiConfig
impl Send for AssignedSpiConfig
impl Sync for AssignedSpiConfig
impl Unpin for AssignedSpiConfig
impl UnsafeUnpin for AssignedSpiConfig
impl UnwindSafe for AssignedSpiConfig
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