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
impl Clone for TlsTemplate
source§fn clone(&self) -> TlsTemplate
fn clone(&self) -> TlsTemplate
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 TlsTemplate
impl Debug for TlsTemplate
source§impl PartialEq for TlsTemplate
impl PartialEq for TlsTemplate
source§fn eq(&self, other: &TlsTemplate) -> bool
fn eq(&self, other: &TlsTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TlsTemplate
impl Eq for TlsTemplate
impl StructuralPartialEq for TlsTemplate
Auto Trait Implementations§
impl Freeze for TlsTemplate
impl RefUnwindSafe for TlsTemplate
impl Send for TlsTemplate
impl Sync for TlsTemplate
impl Unpin for TlsTemplate
impl UnwindSafe for TlsTemplate
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