ZXFoundation™ 26h2
Loading...
Searching...
No Matches
zxfoundation::memory::pmm::allocation_result Struct Referenceexport

Node-aware allocation result. More...

Collaboration diagram for zxfoundation::memory::pmm::allocation_result:
[legend]

Public Member Functions

auto into_folio () const noexcept -> folio_embryo
 Convert the result into an embryo folio typestate value.

Data Fields

zone mem_zone {zone::normal}
u32 order {0U}
u64 phys_base {0ULL}
numa::placement_result placement {}
purpose use {purpose::generic}

Detailed Description

Node-aware allocation result.

Member Function Documentation

◆ into_folio()

auto zxfoundation::memory::pmm::allocation_result::into_folio ( ) const->folio_embryo
inlinenodiscardexportnoexcept

Convert the result into an embryo folio typestate value.

Returns
Embryo folio carrying the physical allocation represented by this result.
Note
The result object remains a scalar record so it can be transported by std::expected without copying a typestate object.

The documentation for this struct was generated from the following file: