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

ProgAttachAttr

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

struct used by Cmd.prog_attach/detach commands

Fields

target_fd: fd_t

container object to attach to

attach_bpf_fd: fd_t

eBPF program to attach

attach_type: u32
attach_flags: u32
replace_bpf_fd: fd_t

previously attached eBPF program to replace if .replace is used

File

os/linux/bpf.zig:1429
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
pub const ProgAttachAttr = extern struct {
    /// container object to attach to
    target_fd: fd_t,

    /// eBPF program to attach
    attach_bpf_fd: fd_t,

    attach_type: u32,
    attach_flags: u32,

    // TODO: BPF_F_REPLACE flags
    /// previously attached eBPF program to replace if .replace is used
    replace_bpf_fd: fd_t,
}