enum Cmd [src]

Fields

map_createCreate 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_elemLook up an element by key in a specified map and return its value. uses MapElemAttr
map_update_elemCreate or update an element (key/value pair) in a specified map. uses MapElemAttr
map_delete_elemLook up and delete an element by key in a specified map. uses MapElemAttr
map_get_next_keyLook up an element by key in a specified map and return the key of the next element.
prog_loadVerify 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_pinPin a map or eBPF program to a path within the minimal BPF filesystem uses ObjAttr
obj_getGet the file descriptor of a BPF object pinned to a certain path uses ObjAttr
prog_attachuses ProgAttachAttr
prog_detachuses ProgAttachAttr
prog_test_runuses TestRunAttr
prog_get_next_iduses GetIdAttr
map_get_next_iduses GetIdAttr
prog_get_fd_by_iduses GetIdAttr
map_get_fd_by_iduses GetIdAttr
obj_get_info_by_fduses InfoAttr
prog_queryuses QueryAttr
raw_tracepoint_openuses RawTracepointAttr
btf_loaduses BtfLoadAttr
btf_get_fd_by_iduses GetIdAttr
task_fd_queryuses TaskFdQueryAttr
map_lookup_and_delete_elemuses MapElemAttr
map_freeze
btf_get_next_iduses GetIdAttr
map_lookup_batchuses MapBatchAttr
map_lookup_and_delete_batchuses MapBatchAttr
map_update_batchuses MapBatchAttr
map_delete_batchuses MapBatchAttr
link_createuses LinkCreateAttr
link_updateuses LinkUpdateAttr
link_get_fd_by_iduses GetIdAttr
link_get_next_iduses GetIdAttr
enable_statsuses EnableStatsAttr
iter_createuses IterCreateAttr
link_detach
_

Source

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