Struct bootloader_api::info::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: u64The virtual start address of the thread local storage template.
file_size: u64The number of data bytes in the template.
Corresponds to the length of the .tdata section.
mem_size: u64The 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<TlsTemplate> for TlsTemplate
impl PartialEq<TlsTemplate> 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 ==.