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/bpf/aya-bpf/src/maps
Tatsuyuki Ishi 41c6b56142 bpf: Replace map types to use &self, remove HashMap::get_mut
The bpf_map_defs are now wrapped with UnsafeCell, which also happens to
provide a cozy way to get a *mut pointer. An UnsafeCell isn't strictly
required as the struct fields are practically opaque to us, but using an
UnsafeCell follows the general best practices against miscompilation and
also prevents some obvious errors.

HashMap::get_mut was removed because the idea is completely unsound.
Previous users should wrap their data with UnsafeCell instead or use
atomics.

Closes: https://github.com/aya-rs/aya/issues/233
3 years ago
..
perf bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
array.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
bloom_filter.rs Add support for BPF_MAP_TYPE_BLOOM_FILTER 3 years ago
hash_map.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
lpm_trie.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
mod.rs Merge pull request #286 from nak3/add-BPF_MAP_TYPE_BLOOM_FILTER 3 years ago
per_cpu_array.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
program_array.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
queue.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
sock_hash.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
sock_map.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago
stack.rs Add missing BPF_MAP_TYPE_STACK in BPF code 3 years ago
stack_trace.rs bpf: Replace map types to use &self, remove HashMap::get_mut 3 years ago