mirror of https://github.com/aya-rs/aya
This commit adds from_pin() which allows the creation of a Program from a path on bpffs. This is useful to be able to call `attach` or other APIs for programs that are already loaded to the kernel. This differs from #444 since it implements this on the concrete program type, not the Program enum, allowing the user to pass in any additional context that isn't available from bpf_prog_info. Signed-off-by: Dave Tucker <dave@dtucker.co.uk> |
2 years ago | |
---|---|---|
.. | ||
src | 2 years ago | |
Cargo.toml | 2 years ago |