Maps
BPF maps are shared data structures between eBPF programs and user space, or between multiple eBPF programs.
Map Declaration
map map_name {
type: .array;
key: u32;
value: u64;
max: 8;
}
Map Types
.hash- Hash table map.array- Array map.ringbuf- Ring buffer map.lru_hash- LRU hash map.prog_array- Program array map
Map Operations
heap p0 = results.lookup(k0);