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.
Go to file
Alessandro Decina 4dc01f64dd bpf: make map() and map_mut() optionally return concrete map types
map() and map_mut() used to return Ref<Map>, then to convert to a concrete
type you had to:

    let mut perf_map: PerfMap<_> = bpf.map_mut("PERF_MAP").unwrap().try_into()?;;

But the base Map type is pretty much only useful internally. This change
makes map() and map_mut() use TryInto internally, so that now
conversions can can be done with:

    let mut perf_map: PerfMap<_> = bpf.map_mut("PERF_MAP")?.unwrap();
4 years ago
scripts Initial commit 4 years ago
src bpf: make map() and map_mut() optionally return concrete map types 4 years ago
.gitignore Initial commit 4 years ago
Cargo.toml Initial commit 4 years ago