Struct multiboot2::BasicMemoryInfoTag
source · #[repr(C)]pub struct BasicMemoryInfoTag { /* private fields */ }
Expand description
Basic memory info tag.
This tag includes “basic memory information”. This means (legacy) lower and upper memory: In Real Mode (modeled after the 8086), only the first 1MB of memory is accessible. Typically, the region between 640KB and 1MB is not freely usable, because it is used for memory-mapped IO, for instance. The term “lower memory” refers to those first 640KB of memory that are freely usable for an application in Real Mode. “Upper memory” then refers to the next freely usable chunk of memory, starting at 1MB up to about 10MB, in practice. This is the memory an application running on a 286 (which had a 24-bit address bus) could use, historically.
Nowadays, much bigger chunks of continuous memory are available at higher addresses, but the Multiboot standard still references those two terms.
Implementations§
source§impl BasicMemoryInfoTag
impl BasicMemoryInfoTag
pub fn new(memory_lower: u32, memory_upper: u32) -> Self
pub fn memory_lower(&self) -> u32
pub fn memory_upper(&self) -> u32
Trait Implementations§
source§impl Clone for BasicMemoryInfoTag
impl Clone for BasicMemoryInfoTag
source§fn clone(&self) -> BasicMemoryInfoTag
fn clone(&self) -> BasicMemoryInfoTag
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BasicMemoryInfoTag
impl Debug for BasicMemoryInfoTag
source§impl Hash for BasicMemoryInfoTag
impl Hash for BasicMemoryInfoTag
source§impl Ord for BasicMemoryInfoTag
impl Ord for BasicMemoryInfoTag
source§impl PartialEq for BasicMemoryInfoTag
impl PartialEq for BasicMemoryInfoTag
source§fn eq(&self, other: &BasicMemoryInfoTag) -> bool
fn eq(&self, other: &BasicMemoryInfoTag) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BasicMemoryInfoTag
impl PartialOrd for BasicMemoryInfoTag
impl Copy for BasicMemoryInfoTag
impl Eq for BasicMemoryInfoTag
impl StructuralEq for BasicMemoryInfoTag
impl StructuralPartialEq for BasicMemoryInfoTag
Auto Trait Implementations§
impl RefUnwindSafe for BasicMemoryInfoTag
impl Send for BasicMemoryInfoTag
impl Sync for BasicMemoryInfoTag
impl Unpin for BasicMemoryInfoTag
impl UnwindSafe for BasicMemoryInfoTag
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
source§impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
impl<T> TagTrait for Twhere
T: Pointee<Metadata = ()>,
source§fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
fn dst_size(_: &Tag) -> <T as Pointee>::Metadata
source§unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
unsafe fn from_base_tag<'a>(tag: &Tag) -> &'a Self
Self::dst_size
implementation. Read more