enumstd.os.linux.bpf.Cmd[src]

Fields

map_create

Create a map and return a file descriptor that refers to the map. The close-on-exec file descriptor flag is automatically enabled for the new file descriptor.

uses MapCreateAttr

map_lookup_elem

Look up an element by key in a specified map and return its value.

uses MapElemAttr

map_update_elem

Create or update an element (key/value pair) in a specified map.

uses MapElemAttr

map_delete_elem

Look up and delete an element by key in a specified map.

uses MapElemAttr

map_get_next_key

Look up an element by key in a specified map and return the key of the next element.

prog_load

Verify and load an eBPF program, returning a new file descriptor associated with the program. The close-on-exec file descriptor flag is automatically enabled for the new file descriptor.

uses ProgLoadAttr

obj_pin

Pin a map or eBPF program to a path within the minimal BPF filesystem

uses ObjAttr

obj_get

Get the file descriptor of a BPF object pinned to a certain path

uses ObjAttr

prog_attach

uses ProgAttachAttr

prog_detach

uses ProgAttachAttr

prog_test_run

uses TestRunAttr

prog_get_next_id

uses GetIdAttr

map_get_next_id

uses GetIdAttr

prog_get_fd_by_id

uses GetIdAttr

map_get_fd_by_id

uses GetIdAttr

obj_get_info_by_fd

uses InfoAttr

prog_query

uses QueryAttr

raw_tracepoint_open

uses RawTracepointAttr

btf_load

uses BtfLoadAttr

btf_get_fd_by_id

uses GetIdAttr

task_fd_query

uses TaskFdQueryAttr

map_lookup_and_delete_elem

uses MapElemAttr

map_freeze
btf_get_next_id

uses GetIdAttr

map_lookup_batch

uses MapBatchAttr

map_lookup_and_delete_batch

uses MapBatchAttr

map_update_batch

uses MapBatchAttr

map_delete_batch

uses MapBatchAttr

link_create

uses LinkCreateAttr

link_update

uses LinkUpdateAttr

link_get_fd_by_id

uses GetIdAttr

link_get_next_id

uses GetIdAttr

enable_stats

uses EnableStatsAttr

iter_create

uses IterCreateAttr

link_detach
_

Source Code

Source code
pub const Cmd = enum(usize) {
    /// Create  a map and return a file descriptor that refers to the map. The
    /// close-on-exec file descriptor flag is automatically enabled for the new
    /// file descriptor.
    ///
    /// uses MapCreateAttr
    map_create,

    /// Look up an element by key in a specified map and return its value.
    ///
    /// uses MapElemAttr
    map_lookup_elem,

    /// Create or update an element (key/value pair) in a specified map.
    ///
    /// uses MapElemAttr
    map_update_elem,

    /// Look up and delete an element by key in a specified map.
    ///
    /// uses MapElemAttr
    map_delete_elem,

    /// Look up an element by key in a specified map and return the key of the
    /// next element.
    map_get_next_key,

    /// Verify and load an eBPF program, returning a new file descriptor
    /// associated with the program. The close-on-exec file descriptor flag
    /// is automatically enabled for the new file descriptor.
    ///
    /// uses ProgLoadAttr
    prog_load,

    /// Pin a map or eBPF program to a path within the minimal BPF filesystem
    ///
    /// uses ObjAttr
    obj_pin,

    /// Get the file descriptor of a BPF object pinned to a certain path
    ///
    /// uses ObjAttr
    obj_get,

    /// uses ProgAttachAttr
    prog_attach,

    /// uses ProgAttachAttr
    prog_detach,

    /// uses TestRunAttr
    prog_test_run,

    /// uses GetIdAttr
    prog_get_next_id,

    /// uses GetIdAttr
    map_get_next_id,

    /// uses GetIdAttr
    prog_get_fd_by_id,

    /// uses GetIdAttr
    map_get_fd_by_id,

    /// uses InfoAttr
    obj_get_info_by_fd,

    /// uses QueryAttr
    prog_query,

    /// uses RawTracepointAttr
    raw_tracepoint_open,

    /// uses BtfLoadAttr
    btf_load,

    /// uses GetIdAttr
    btf_get_fd_by_id,

    /// uses TaskFdQueryAttr
    task_fd_query,

    /// uses MapElemAttr
    map_lookup_and_delete_elem,
    map_freeze,

    /// uses GetIdAttr
    btf_get_next_id,

    /// uses MapBatchAttr
    map_lookup_batch,

    /// uses MapBatchAttr
    map_lookup_and_delete_batch,

    /// uses MapBatchAttr
    map_update_batch,

    /// uses MapBatchAttr
    map_delete_batch,

    /// uses LinkCreateAttr
    link_create,

    /// uses LinkUpdateAttr
    link_update,

    /// uses GetIdAttr
    link_get_fd_by_id,

    /// uses GetIdAttr
    link_get_next_id,

    /// uses EnableStatsAttr
    enable_stats,

    /// uses IterCreateAttr
    iter_create,
    link_detach,
    _,
}