Struct bootloader::bootinfo::TlsTemplate

source ·
#[repr(C)]
pub struct TlsTemplate { pub start_addr: u64, pub file_size: u64, pub mem_size: u64, }
Expand description

Information about the thread local storage (TLS) template.

This template can be used to set up thread local storage for threads. For each thread, a new memory location of size mem_size must be initialized. Then the first file_size bytes of this template needs to be copied to the location. The additional mem_size - file_size bytes must be initialized with zero.

Fields§

§start_addr: u64

The virtual start address of the thread local storage template.

§file_size: u64

The number of data bytes in the template.

Corresponds to the length of the .tdata section.

§mem_size: u64

The total number of bytes that the TLS segment should have in memory.

Corresponds to the combined length of the .tdata and .tbss sections.

Trait Implementations§

source§

impl Clone for TlsTemplate

source§

fn clone(&self) -> TlsTemplate

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TlsTemplate

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for TlsTemplate

source§

fn eq(&self, other: &TlsTemplate) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for TlsTemplate

source§

impl Eq for TlsTemplate

source§

impl StructuralPartialEq for TlsTemplate

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.