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

FUTEX_WAKE_OP

Public Struct
std.os.linux.FUTEX_WAKE_OP
pub const FUTEX_WAKE_OP = packed struct(u32)

Futex v1 FUTEX_WAKE_OP val3 operation:

Fields

cmd: FUTEX_WAKE_OP_CMD
arg_shift: bool = false

From C API FUTEX_OP_ARG_SHIFT: Use (1 << oparg) as operand

cmp: FUTEX_WAKE_OP_CMP
oparg: u12
cmdarg: u12

File

os/linux.zig:4281
4281
4282
4283
4284
4285
4286
4287
4288
pub const FUTEX_WAKE_OP = packed struct(u32) {
    cmd: FUTEX_WAKE_OP_CMD,
    /// From C API `FUTEX_OP_ARG_SHIFT`:  Use (1 << oparg) as operand
    arg_shift: bool = false,
    cmp: FUTEX_WAKE_OP_CMP,
    oparg: u12,
    cmdarg: u12,
}