# `MaeBPF.IR.MapDef`
[🔗](https://github.com/cocoa-xu/MaeBPF/blob/v0.1.0/maebpf/lib/maebpf/ir.ex#L51)

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

# `btf_type`

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

# `kind`

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

# `t`

```elixir
@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()
}
```

---

*Consult [api-reference.md](api-reference.md) for complete listing*
