pub(super) struct L1Entry(u64);
Expand description
L1 table entry.
- Bit 0 - 8: Reserved (set to 0)
- Bit 9 – 55: Bits 9-55 of the offset into the image file at which the L2 table starts. Must be aligned to a cluster boundary. If the offset is 0, the L2 table and all clusters described by this L2 table are unallocated.
- Bit 56 - 62: Reserved (set to 0)
- Bit 63: 0 for an L2 table that is unused or requires COW, 1 if its refcount is exactly one. This information is only accurate in the active L1 table.
Tuple Fields§
§0: u64
Implementations§
Source§impl L1Entry
impl L1Entry
Sourcepub fn l2_offset(&self) -> Option<HostOffset>
pub fn l2_offset(&self) -> Option<HostOffset>
Offset of the L2 table, if any.
Sourcepub fn is_copied(&self) -> bool
pub fn is_copied(&self) -> bool
Whether the L2 table’s cluster is “copied”.
true
means is refcount is one, false
means modifying it will require COW.
Sourcepub fn reserved_bits(&self) -> u64
pub fn reserved_bits(&self) -> u64
Return all reserved bits.
Trait Implementations§
Source§impl TableEntry for L1Entry
impl TableEntry for L1Entry
impl Copy for L1Entry
Auto Trait Implementations§
impl Freeze for L1Entry
impl RefUnwindSafe for L1Entry
impl Send for L1Entry
impl Sync for L1Entry
impl Unpin for L1Entry
impl UnwindSafe for L1Entry
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