Struct stivale_boot::v2::StivalePmrsTag
source · [−]#[repr(C)]pub struct StivalePmrsTag {
pub header: StivaleTagHeader,
pub pmr_count: u64,
pub pmrs: [StivalePmr],
}
Fields
header: StivaleTagHeader
pmr_count: u64
Count of PMRs in following array.
pmrs: [StivalePmr]
Array of PMR structs.
Implementations
sourceimpl StivalePmrsTag
impl StivalePmrsTag
sourcepub fn as_slice(&self) -> &[StivalePmr]
pub fn as_slice(&self) -> &[StivalePmr]
Return’s the PMRs array pointer as a rust slice.
sourcepub unsafe fn new_from_ptr_count(ptr: *mut (), pmr_count: u64) -> *mut Self
pub unsafe fn new_from_ptr_count(ptr: *mut (), pmr_count: u64) -> *mut Self
Safety
ptr
must be a pointer to a properly initialized StivalePmrsTag
struct with pmr_count
entries in the prms
field.