#[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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.