/// Initialize a new OffsetPageTable.
///
/// This function is unsafe because the caller must guarantee that the
/// complete physical memory is mapped to virtual memory at the passed
/// `physical_memory_offset`. Also, this function must be only called once
/// to avoid aliasing `&mut` references (which is undefined behavior).
Initialize a new OffsetPageTable.
This function is unsafe because the caller must guarantee that the
complete physical memory is mapped to virtual memory at the passed
`physical_memory_offset`. Also, this function must be only called once
to avoid aliasing `&mut` references (which is undefined behavior).
Initialize a new OffsetPageTable . This function is unsafe because the caller must guarantee that the complete physical memory is mapped to virtual memory at the passed ` physical_memory_offset ` . Also this function must be only called once to avoid aliasing ` &mut ` references ( which is undefined behavior ) .
pub unsafe fn init<'a>(
    physical_memory_offset: Optional<u64>,
) -> Result<OffsetPageTable<'static>, &'a str> {
    let offset = try_get_physical_memory_offset(physical_memory_offset)?;
    let (l4_table, _) = get_active_l4_table(offset);
    Ok(OffsetPageTable::new(l4_table, offset))
}
pub unsafe fn init < ' a > ( physical_memory_offset : Optional < u64 > , ) -> Result < OffsetPageTable < ' static > , & ' a str > { let offset = try_get_physical_memory_offset ( physical_memory_offset ) ? ; let ( l4_table , _ ) = get_active_l4_table ( offset ) ; Ok ( OffsetPageTable :: new ( l4_table , offset ) ) }
Initialize a new OffsetPageTable.
Initialize a new OffsetPageTable .
physical_memory_offset
Optional<u64>