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

sched_attr

Public Struct
std.os.linux.sched_attr
pub const sched_attr = extern struct

Fields

size: u32 = 48
policy: u32 = 0
flags: u64 = 0
nice: u32 = 0
priority: u32 = 0
runtime: u64 = 0

Remaining fields are for SCHED_DEADLINE

deadline: u64 = 0
period: u64 = 0

File

os/linux.zig:2761
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
pub const sched_attr = extern struct {
    size: u32 = 48, // Size of this structure
    policy: u32 = 0, // Policy (SCHED_*)
    flags: u64 = 0, // Flags
    nice: u32 = 0, // Nice value (SCHED_OTHER, SCHED_BATCH)
    priority: u32 = 0, // Static priority (SCHED_FIFO, SCHED_RR)
    // Remaining fields are for SCHED_DEADLINE
    runtime: u64 = 0,
    deadline: u64 = 0,
    period: u64 = 0,
}