MaeBPF.IR.MapDef (maebpf v0.1.0)

Copy Markdown View Source

Typed BPF map definition inside %MaeBPF.IR.Module{}.

Summary

Types

btf_type()

@type btf_type() ::
  :none
  | :u8
  | :u16
  | :u32
  | :u64
  | :lpm_ipv4
  | {:lpm_bytes, pos_integer()}
  | {:bytes, pos_integer()}

kind()

@type kind() ::
  :percpu_array
  | :array
  | :prog_array
  | :hash
  | :percpu_hash
  | :lru_hash
  | :lpm_trie
  | :ringbuf

t()

@type t() :: %MaeBPF.IR.MapDef{
  hidden: boolean(),
  id: atom(),
  key_size: non_neg_integer(),
  key_type: btf_type(),
  kind: kind(),
  map_flags: non_neg_integer(),
  max_entries: pos_integer(),
  meta: map(),
  name: String.t(),
  value_size: non_neg_integer(),
  value_type: btf_type()
}