#[repr(transparent)]struct SlotH(u32);
Expand description
Entry in the redirection table. Higher Half.
Tuple Fields§
§0: u32
Implementations§
source§impl SlotH
impl SlotH
const DESTINATION_BITS: usize = 8usize
const DESTINATION_OFFSET: usize = 24usize
sourceconst fn destination(&self) -> u8
const fn destination(&self) -> u8
Interrupt destination.
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of
CPU cores).
Setting the n
low-order bits marks all available cores as candidates
for receiving interrupts and thereby balancing the number of interrupts
between the cores.
Bits: 24..32
sourceconst fn with_destination_checked(self, value: u8) -> Result<Self, ()>
const fn with_destination_checked(self, value: u8) -> Result<Self, ()>
Interrupt destination.
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of
CPU cores).
Setting the n
low-order bits marks all available cores as candidates
for receiving interrupts and thereby balancing the number of interrupts
between the cores.
Bits: 24..32
sourceconst fn with_destination(self, value: u8) -> Self
const fn with_destination(self, value: u8) -> Self
Interrupt destination.
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of
CPU cores).
Setting the n
low-order bits marks all available cores as candidates
for receiving interrupts and thereby balancing the number of interrupts
between the cores.
Bits: 24..32
sourcefn set_destination(&mut self, value: u8)
fn set_destination(&mut self, value: u8)
Interrupt destination.
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of
CPU cores).
Setting the n
low-order bits marks all available cores as candidates
for receiving interrupts and thereby balancing the number of interrupts
between the cores.
Bits: 24..32
sourcefn set_destination_checked(&mut self, value: u8) -> Result<(), ()>
fn set_destination_checked(&mut self, value: u8) -> Result<(), ()>
Interrupt destination.
The meaning of destination depends on the destination mode:
For the logical destination mode, destination holds a bit mask made up
of the cores that are candidates for receiving the interrupt.
In the single-core case, this value is 1
, in the multi-core case,
the n
low-order bits needs to be set (with n
being the number of
CPU cores).
Setting the n
low-order bits marks all available cores as candidates
for receiving interrupts and thereby balancing the number of interrupts
between the cores.
Bits: 24..32
Trait Implementations§
impl Copy for SlotH
impl Register for SlotH
Auto Trait Implementations§
impl Freeze for SlotH
impl RefUnwindSafe for SlotH
impl Send for SlotH
impl Sync for SlotH
impl Unpin for SlotH
impl UnwindSafe for SlotH
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)