extern struct MapCreateAttr [src]
struct used by Cmd.map_create command
Fields
map_type: u32one of MapType
key_size: u32size of key in bytes
value_size: u32size of value in bytes
max_entries: u32max number of entries in a map
map_flags: u32.map_create related flags
inner_map_fd: fd_tfd pointing to the inner map
numa_node: u32numa node (effective only if MapCreateFlags.numa_node is set)
map_name: [obj_name_len]u8
map_ifindex: u32ifindex of netdev to create on
btf_fd: fd_tfd pointing to a BTF type data
btf_key_type_id: u32BTF type_id of the key
bpf_value_type_id: u32BTF type_id of the value
btf_vmlinux_value_type_id: u32BTF type_id of a kernel struct stored as the map value
Source
pub const MapCreateAttr = extern struct {
/// one of MapType
map_type: u32,
/// size of key in bytes
key_size: u32,
/// size of value in bytes
value_size: u32,
/// max number of entries in a map
max_entries: u32,
/// .map_create related flags
map_flags: u32,
/// fd pointing to the inner map
inner_map_fd: fd_t,
/// numa node (effective only if MapCreateFlags.numa_node is set)
numa_node: u32,
map_name: [obj_name_len]u8,
/// ifindex of netdev to create on
map_ifindex: u32,
/// fd pointing to a BTF type data
btf_fd: fd_t,
/// BTF type_id of the key
btf_key_type_id: u32,
/// BTF type_id of the value
bpf_value_type_id: u32,
/// BTF type_id of a kernel struct stored as the map value
btf_vmlinux_value_type_id: u32,
}