Struct starry::loader::ELFSegment
source · pub struct ELFSegment {
pub start_vaddr: VirtAddr,
pub size: usize,
pub flags: MappingFlags,
pub data: &'static [u8],
pub offset: usize,
}
Expand description
The segment of the elf file, which is used to map the elf file to the memory space
Fields§
§start_vaddr: VirtAddr
The start virtual address of the segment
size: usize
The size of the segment
flags: MappingFlags
The flags of the segment which is used to set the page table entry
data: &'static [u8]
The data of the segment
offset: usize
The offset of the segment relative to the start of the page
Auto Trait Implementations§
impl Freeze for ELFSegment
impl RefUnwindSafe for ELFSegment
impl Send for ELFSegment
impl Sync for ELFSegment
impl Unpin for ELFSegment
impl UnwindSafe for ELFSegment
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