#[repr(C, align(64))]pub struct MigrationFrame {
pub src_ctx: N3MinimalContext,
pub dst_ctx: N3MinimalContext,
pub state: AtomicU8,
_pad_state: [u8; 3],
pub generation: AtomicU32,
pub msg_len: u16,
pub flags: u16,
_pad_flags: [u8; 4],
pub tsc_start: AtomicU64,
pub owner_tid: AtomicU64,
pub _pad: [u8; 32],
}Expand description
Shared migration frame : one per N3 transport endpoint pair.
Must reside in a dedicated physical page mapped at the same kernel
virtual address (N3_SHARED_FRAME_VA) in both sender and receiver
address spaces. The mapping is kernel-only (no USER_ACCESSIBLE
flag) : all access is controlled by the kernel via the CAS state
machine. Both address spaces see the same physical page through
their own kernel half of the page tables.
Fields§
§src_ctx: N3MinimalContextSender context (saved by ASM primitive).
dst_ctx: N3MinimalContextReceiver context (prepared by kernel before migration).
state: AtomicU8Atomic state: MigrationState.
_pad_state: [u8; 3]§generation: AtomicU32Monotonically increasing migration counter.
msg_len: u16Message length in bytes.
flags: u16Migration flags.
_pad_flags: [u8; 4]§tsc_start: AtomicU64TSC snapshot at migration start (for watchdog).
owner_tid: AtomicU64Thread ID of the frame owner.
_pad: [u8; 32]Reserved padding for future use and cache-line alignment.
Auto Trait Implementations§
impl !Freeze for MigrationFrame
impl RefUnwindSafe for MigrationFrame
impl Send for MigrationFrame
impl Sync for MigrationFrame
impl Unpin for MigrationFrame
impl UnsafeUnpin for MigrationFrame
impl UnwindSafe for MigrationFrame
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
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> ⓘ
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> ⓘ
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