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

LinkUpdateAttr

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

struct used by Cmd.link_update command

Fields

link_fd: fd_t
new_prog_fd: fd_t

new program to update link with

flags: u32

extra flags

old_prog_fd: fd_t

expected link's program fd, it is specified only if BPF_F_REPLACE is set in flags

File

os/linux/bpf.zig:1561
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
pub const LinkUpdateAttr = extern struct {
    link_fd: fd_t,

    /// new program to update link with
    new_prog_fd: fd_t,

    /// extra flags
    flags: u32,

    /// expected link's program fd, it is specified only if BPF_F_REPLACE is
    /// set in flags
    old_prog_fd: fd_t,
}