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 Function

init_vdso_sys_riscv_hwprobe

Private Function
std.os.linux.init_vdso_sys_riscv_hwprobe
fn init_vdso_sys_riscv_hwprobe(
    pairs: [*]riscv_hwprobe,
    pair_count: usize,
    cpusetsize: usize,
    cpus: ?[*]cpu_set_t,
    flags: u32,
) callconv(.c) usize

Params

File

os/linux.zig:3270
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
fn init_vdso_sys_riscv_hwprobe(
    pairs: [*]riscv_hwprobe,
    pair_count: usize,
    cpusetsize: usize,
    cpus: ?[*]cpu_set_t,
    flags: u32,
) callconv(.c) usize {
    const ptr: ?VdsoSysRiscvHwprobe = @ptrFromInt(vdso.lookup(VDSO.HWPROBE_VER, VDSO.HWPROBE_SYM));
    @atomicStore(?VdsoSysRiscvHwprobe, &vdso_sys_riscv_hwprobe, ptr, .monotonic);
    if (ptr) |f| return f(pairs, pair_count, cpusetsize, cpus, flags);
    return @bitCast(-@as(isize, @backingInt(E.NOSYS)));
}