Zig 0.17.0-dev (Split by item)

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 library itself.

LinkCreateAttr

struct used by Cmd.link_create command

bpf.LinkCreateAttr
pub const LinkCreateAttr = extern struct

File

lib/std/os/linux/bpf.zig:1548

Code

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,
}