Repository navigation
Replies: 1 comment 2 replies
|
I think it would be nice to introduce typed Rust error enums, perhaps using thiserror. Exposing raw errno numbers is not ergonomic in Rust, we could design separate error types for different map APIs, but this needs a lot efforts. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I am writing code with map methods, and I find some of them just wrap the bpf_map_*() helpers and return a Result with Err(i32).
According to the doc of aya, when it failed to execute it will return a negative code that indicate the error type.
I just want to make use of them, but in aya-ebpf their info is not exposed at all. As a reuslt I have to depend on LLM to search them from linux source code.
All reactions