#[repr(C)]pub struct LoadedImage {
pub name: String<MAX_IMAGE_NAME_LENGTH>,
pub segments: Vec<Segment, MAX_IMAGE_LOADED_SEGMENTS>,
pub master_tls: Option<Segment>,
pub entry_point: VAddr,
}
Expand description
Describes an image loaded from the filesystem by the loader, as the kernel does not have the capabilities to do
so. Images are expected to have three segments (rodata
loaded as read-only, data
loaded as read+write, and
text
loaded as read+execute).
Fields§
§name: String<MAX_IMAGE_NAME_LENGTH>
§segments: Vec<Segment, MAX_IMAGE_LOADED_SEGMENTS>
§master_tls: Option<Segment>
§entry_point: VAddr
The virtual address at which to start executing the image.
Trait Implementations§
Source§impl Clone for LoadedImage
impl Clone for LoadedImage
Source§fn clone(&self) -> LoadedImage
fn clone(&self) -> LoadedImage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LoadedImage
impl Debug for LoadedImage
Source§impl Default for LoadedImage
impl Default for LoadedImage
Source§fn default() -> LoadedImage
fn default() -> LoadedImage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadedImage
impl RefUnwindSafe for LoadedImage
impl Send for LoadedImage
impl Sync for LoadedImage
impl Unpin for LoadedImage
impl UnwindSafe for LoadedImage
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