struct used by Cmd.map_create command

Fields

map_type: u32,

one of MapType

key_size: u32,

size of key in bytes

value_size: u32,

size of value in bytes

max_entries: u32,

max number of entries in a map

map_flags: u32,

.map_create related flags

inner_map_fd: fd_t,

fd pointing to the inner map

numa_node: u32,

numa node (effective only if MapCreateFlags.numa_node is set)

map_name: [obj_name_len]u8,
map_ifindex: u32,

ifindex of netdev to create on

btf_fd: fd_t,

fd pointing to a BTF type data

btf_key_type_id: u32,

BTF type_id of the key

bpf_value_type_id: u32,

BTF type_id of the value

btf_vmlinux_value_type_id: u32,

BTF type_id of a kernel struct stored as the map value