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

LinkCreateAttr

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

struct used by Cmd.link_create command

Fields

prog_fd: fd_t

eBPF program to attach

target_fd: fd_t

object to attach to

attach_type: u32
flags: u32

extra flags

File

os/linux/bpf.zig:1548
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
pub const LinkCreateAttr = extern struct {
    /// eBPF program to attach
    prog_fd: fd_t,

    /// object to attach to
    target_fd: fd_t,
    attach_type: u32,

    /// extra flags
    flags: u32,
}