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. Public Struct

Tos

Public Struct
std.os.plan9.Tos
pub const Tos = extern struct

Fields

prof: extern struct { /// known to be 0(ptr) pp: *Plink, /// known to be 4(ptr) next: *Plink, last: *Plink, first: *Plink, pid: u32, what: u32, }

Per process profiling

cyclefreq: u64

cycle clock frequency if there is one, 0 otherwise

kcycles: i64

cycles spent in kernel

pcycles: i64

cycles spent in process (kernel + user)

pid: u32

might as well put the pid here

clock: u32

File

os/plan9.zig:115
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
pub const Tos = extern struct {
    /// Per process profiling
    prof: extern struct {
        /// known to be 0(ptr)
        pp: *Plink,
        /// known to be 4(ptr)
        next: *Plink,
        last: *Plink,
        first: *Plink,
        pid: u32,
        what: u32,
    },
    /// cycle clock frequency if there is one, 0 otherwise
    cyclefreq: u64,
    /// cycles spent in kernel
    kcycles: i64,
    /// cycles spent in process (kernel + user)
    pcycles: i64,
    /// might as well put the pid here
    pid: u32,
    clock: u32,
    // top of stack is here
}