struct VmallocNode {
start_page: usize,
page_count: usize,
next: *mut VmallocNode,
frames: Option<FrameList>,
attr: VmallocAttr,
}Expand description
Unified metadata node used both for free extents and live allocations.
frames == None means the node describes a free extent.
frames == Some(_) means the node describes an active allocation.
attr is only meaningful when frames.is_some(); it is zero-initialized
for free-extent nodes.
Fields§
§start_page: usize§page_count: usize§next: *mut VmallocNode§frames: Option<FrameList>§attr: VmallocAttrAttribution captured at allocation time. Used by leak diagnostics.
Trait Implementations§
impl Send for VmallocNode
Auto Trait Implementations§
impl !Sync for VmallocNode
impl Freeze for VmallocNode
impl RefUnwindSafe for VmallocNode
impl Unpin for VmallocNode
impl UnsafeUnpin for VmallocNode
impl UnwindSafe for VmallocNode
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