#[repr(C)]pub struct NicRoutingTable {
pub count: AtomicU32,
_pad: [u8; 60],
pub entries: [RoutingEntry; 64],
}Expand description
Shared NIC ←→ scheduler routing table.
Updated by the scheduler on each context switch; read only by the NIC driver via a read-only (PTE_RO) mapping in Ring 3. The NIC must never write this table : doing so would corrupt scheduler state.
Fields§
§count: AtomicU32Number of valid entries.
_pad: [u8; 60]§entries: [RoutingEntry; 64]Routing entries, one per silo.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for NicRoutingTable
impl RefUnwindSafe for NicRoutingTable
impl Send for NicRoutingTable
impl Sync for NicRoutingTable
impl Unpin for NicRoutingTable
impl UnsafeUnpin for NicRoutingTable
impl UnwindSafe for NicRoutingTable
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more