You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aya/aya/src/maps
Adam Schreck e997f4f93d aya: add Map::from_map_data() for pinned map access
Enables creation of Map enum variants directly from MapData instances,
allowing user-space handles to pinned BPF maps without requiring the
original BPF object.

Supports multiple BPF map types.

Motivation:
- Simplifies accessing pinned maps from user space applications.
- Avoids full BPF reloads and potential deadlocks.
- Matches existing ergonomic APIs like LruHashMap::try_from.
- Keeps user code safe and idiomatic.

Closes https://github.com/aya-rs/aya/issues/1305.

Includes test coverage to validate the new API.
3 weeks ago
..
array Bump edition to 2024 7 months ago
hash_map appease `clippy::uninlined-format-args` 5 months ago
perf aya: remove `AsyncPerfEventArray{,Buffer}` 3 months ago
sock Bump edition to 2024 7 months ago
xdp chore(*): set clippy unused_trait_names = warn 7 months ago
bloom_filter.rs Bump edition to 2024 7 months ago
info.rs aya: remove `AsyncPerfEventArray{,Buffer}` 3 months ago
lpm_trie.rs Bump edition to 2024 7 months ago
mod.rs aya: add Map::from_map_data() for pinned map access 3 weeks ago
queue.rs Bump edition to 2024 7 months ago
ring_buf.rs aya: remove `AsyncPerfEventArray{,Buffer}` 3 months ago
stack.rs Bump edition to 2024 7 months ago
stack_trace.rs Bump edition to 2024 7 months ago