eBPF for Windows
Data Fields
bpf_attr Union Reference

Parameters used by the bpf() API. More...

#include <bpf.h>

Data Fields

sys_bpf_map_create_attr_t map_create
 Attributes used by BPF_MAP_CREATE. More...
 
sys_bpf_map_lookup_attr_t map_lookup
 
sys_bpf_map_lookup_attr_t map_update
 Attributes used by BPF_MAP_LOOKUP_ELEM, BPF_MAP_UPDATE_ELEM and. More...
 
sys_bpf_map_next_key_attr_t map_get_next_key
 Attributes used by BPF_MAP_GET_NEXT_KEY. More...
 
sys_bpf_map_delete_attr_t map_delete
 Attributes used by BPF_MAP_DELETE_ELEM. More...
 
sys_bpf_prog_load_attr_t prog_load
 Attributes used by BPF_PROG_LOAD. More...
 
sys_bpf_prog_attach_attr_t prog_attach
 
sys_bpf_prog_attach_attr_t prog_detach
 Attributes used by BPF_PROG_ATTACH/DETACH. More...
 
sys_bpf_obj_pin_attr_t obj_pin
 
sys_bpf_obj_pin_attr_t obj_get
 Attributes used by BPF_OBJ_PIN and BPF_OBJ_GET. More...
 
sys_bpf_map_next_id_attr_t map_get_next_id
 
sys_bpf_map_next_id_attr_t prog_get_next_id
 
sys_bpf_map_next_id_attr_t link_get_next_id
 Attributes used by BPF_PROG_GET_NEXT_ID, BPF_MAP_GET_NEXT_ID, and BPF_LINK_GET_NEXT_ID. More...
 
uint32_t map_id
 ID of map for BPF_MAP_GET_FD_BY_ID to find. More...
 
uint32_t prog_id
 ID of program for BPF_PROG_GET_FD_BY_ID to find. More...
 
uint32_t link_id
 ID of link for BPF_LINK_GET_FD_BY_ID to find. More...
 
sys_bpf_obj_info_attr_t info
 Attributes used by BPF_OBJ_GET_INFO_BY_FD. More...
 
sys_bpf_link_detach_attr_t link_detach
 Attributes used by BPF_LINK_DETACH. More...
 
sys_bpf_prog_bind_map_attr_t prog_bind_map
 Attributes used by BPF_PROG_BIND_MAP. More...
 
sys_bpf_prog_run_attr_t test
 Attributes used by BPF_PROG_TEST_RUN. More...
 

Detailed Description

Parameters used by the bpf() API.

Field Documentation

◆ info

sys_bpf_obj_info_attr_t bpf_attr::info

Attributes used by BPF_OBJ_GET_INFO_BY_FD.

◆ link_detach

sys_bpf_link_detach_attr_t bpf_attr::link_detach

Attributes used by BPF_LINK_DETACH.

◆ link_get_next_id

sys_bpf_map_next_id_attr_t bpf_attr::link_get_next_id

Attributes used by BPF_PROG_GET_NEXT_ID, BPF_MAP_GET_NEXT_ID, and BPF_LINK_GET_NEXT_ID.

◆ link_id

uint32_t bpf_attr::link_id

ID of link for BPF_LINK_GET_FD_BY_ID to find.

◆ map_create

sys_bpf_map_create_attr_t bpf_attr::map_create

Attributes used by BPF_MAP_CREATE.

◆ map_delete

sys_bpf_map_delete_attr_t bpf_attr::map_delete

Attributes used by BPF_MAP_DELETE_ELEM.

◆ map_get_next_id

sys_bpf_map_next_id_attr_t bpf_attr::map_get_next_id

◆ map_get_next_key

sys_bpf_map_next_key_attr_t bpf_attr::map_get_next_key

Attributes used by BPF_MAP_GET_NEXT_KEY.

◆ map_id

uint32_t bpf_attr::map_id

ID of map for BPF_MAP_GET_FD_BY_ID to find.

◆ map_lookup

sys_bpf_map_lookup_attr_t bpf_attr::map_lookup

◆ map_update

sys_bpf_map_lookup_attr_t bpf_attr::map_update

Attributes used by BPF_MAP_LOOKUP_ELEM, BPF_MAP_UPDATE_ELEM and.

◆ obj_get

sys_bpf_obj_pin_attr_t bpf_attr::obj_get

Attributes used by BPF_OBJ_PIN and BPF_OBJ_GET.

◆ obj_pin

sys_bpf_obj_pin_attr_t bpf_attr::obj_pin

◆ prog_attach

sys_bpf_prog_attach_attr_t bpf_attr::prog_attach

◆ prog_bind_map

sys_bpf_prog_bind_map_attr_t bpf_attr::prog_bind_map

Attributes used by BPF_PROG_BIND_MAP.

◆ prog_detach

sys_bpf_prog_attach_attr_t bpf_attr::prog_detach

Attributes used by BPF_PROG_ATTACH/DETACH.

◆ prog_get_next_id

sys_bpf_map_next_id_attr_t bpf_attr::prog_get_next_id

◆ prog_id

uint32_t bpf_attr::prog_id

ID of program for BPF_PROG_GET_FD_BY_ID to find.

◆ prog_load

sys_bpf_prog_load_attr_t bpf_attr::prog_load

Attributes used by BPF_PROG_LOAD.

◆ test

sys_bpf_prog_run_attr_t bpf_attr::test

Attributes used by BPF_PROG_TEST_RUN.


The documentation for this union was generated from the following file: