[][src]Attribute Macro redbpf_macros::map

#[map]

Attribute macro that must be used when creating eBPF maps.

Example

#[map("dns_queries")]
static mut queries: PerfMap<Query> = PerfMap::with_max_entries(1024);

struct Query {
// ...
}