Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Private Struct

AreaDesc

Private Struct
std.os.linux.tls.AreaDesc
const AreaDesc = struct

Describes a process's TLS area. The area encompasses the DTV, both TCBs, and the TLS block, with the exact layout of these being dependent primarily on current_variant.

Fields

size: usize
alignment: usize
dtv: struct { /// Offset into the TLS area. offset: usize, }
abi_tcb: struct { /// Offset into the TLS area. offset: usize, }
block: struct { /// The initial data to be copied into the TLS block. Note that this may be smaller than /// `size`, in which case any remaining data in the TLS block is simply left uninitialized. init: []const u8, /// Offset into the TLS area. offset: usize, /// This is the effective size of the TLS block, which may be greater than `init.len`. size: usize, }
gdt_entry_number: usize

Only used on the 32-bit x86 architecture (not x86_64, nor x32).

File

os/linux/tls.zig:190
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
const AreaDesc = struct {
    size: usize,
    alignment: usize,

    dtv: struct {
        /// Offset into the TLS area.
        offset: usize,
    },

    abi_tcb: struct {
        /// Offset into the TLS area.
        offset: usize,
    },

    block: struct {
        /// The initial data to be copied into the TLS block. Note that this may be smaller than
        /// `size`, in which case any remaining data in the TLS block is simply left uninitialized.
        init: []const u8,
        /// Offset into the TLS area.
        offset: usize,
        /// This is the effective size of the TLS block, which may be greater than `init.len`.
        size: usize,
    },

    /// Only used on the 32-bit x86 architecture (not x86_64, nor x32).
    gdt_entry_number: usize,
}