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

MapBatchAttr

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

struct used by Cmd.map_*_batch commands

Fields

in_batch: u64

start batch, NULL to start from beginning

out_batch: u64

output: next start batch

keys: u64
values: u64
count: u32

input/output: input: # of key/value elements output: # of filled elements

map_fd: fd_t
elem_flags: u64
flags: u64

File

os/linux/bpf.zig:1349
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
pub const MapBatchAttr = extern struct {
    /// start batch, NULL to start from beginning
    in_batch: u64,

    /// output: next start batch
    out_batch: u64,
    keys: u64,
    values: u64,

    /// input/output:
    /// input: # of key/value elements
    /// output: # of filled elements
    count: u32,
    map_fd: fd_t,
    elem_flags: u64,
    flags: u64,
}