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

TestRunAttr

Public Struct
std.os.linux.bpf.TestRunAttr
pub const TestRunAttr = extern struct

struct used by Cmd.prog_test_run command

Fields

prog_fd: fd_t
retval: u32
data_size_in: u32

input: len of data_in

data_size_out: u32

input/output: len of data_out. returns ENOSPC if data_out is too small.

data_in: u64
data_out: u64
repeat: u32
duration: u32
ctx_size_in: u32

input: len of ctx_in

ctx_size_out: u32

input/output: len of ctx_out. returns ENOSPC if ctx_out is too small.

ctx_in: u64
ctx_out: u64

File

os/linux/bpf.zig:1445
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
pub const TestRunAttr = extern struct {
    prog_fd: fd_t,
    retval: u32,

    /// input: len of data_in
    data_size_in: u32,

    /// input/output: len of data_out. returns ENOSPC if data_out is too small.
    data_size_out: u32,
    data_in: u64,
    data_out: u64,
    repeat: u32,
    duration: u32,

    /// input: len of ctx_in
    ctx_size_in: u32,

    /// input/output: len of ctx_out. returns ENOSPC if ctx_out is too small.
    ctx_size_out: u32,
    ctx_in: u64,
    ctx_out: u64,
}