pub struct SegmentEntry {
pub range: Range<Paddr>,
}Expand description
Per-Segment entry in the store. Represents one outstanding
Segment<M> covering the contiguous physical range range.
Per exec SegmentOwner::relate_regions: every frame slot in
range carries one forgotten reference for this segment — i.e.,
raw_count at the slot equals the number of SegmentEntrys
covering it (see segment_cover_count). The frame’s
ref_count >= 1 is bumped by the segment’s owning reference (one
per frame); the segment does not hold a separate Frame handle,
so the embedding’s frames map is unrelated to per-segment frame
refcounting.
Multiple SegmentEntrys may overlap (e.g. after clone); each
independently contributes +1 to every covered slot’s raw_count
and ref_count.
Fields§
§range: Range<Paddr>Auto Trait Implementations§
impl Freeze for SegmentEntry
impl RefUnwindSafe for SegmentEntry
impl Send for SegmentEntry
impl Sync for SegmentEntry
impl Unpin for SegmentEntry
impl UnsafeUnpin for SegmentEntry
impl UnwindSafe for SegmentEntry
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