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-obj/src
Tamir Duberstein f41592663c
maps: `MapFd` and `SockMapFd` are owned
`MapData::fd` is now a `MapFd`. This means that `MapData` now closes the
file descriptor on drop. In the future we might consider making `MapFd`
hold a `BorrowedFd` but this requires API design work due to overlapping
borrows.

Since `SockMapFd` is no longer `Copy`, attach methods to take it by
reference to allow callers to use it multiple times as they are
accustomed to doing.

`SockMapFd` implements `try_clone`. `MapFd` and `SockMapFd` are now
returned by reference to allow callers to avoid file descriptor cloning
when desired.

This is an API breaking change.

Updates #612.
1 year ago
..
btf aya-obj: s/types.types[i]/*t/ where possible 1 year ago
generated [codegen] Update libbpf to f7eb43b90f4c8882edf6354f8585094f8f3aade0Update libbpf to f7eb43b90f4c8882edf6354f8585094f8f3aade0 1 year ago
programs aya-obj: reduce indirection in section parsing 1 year ago
lib.rs maps: `MapFd` and `SockMapFd` are owned 1 year ago
maps.rs aya: flip feature "no_std" to feature "std" 1 year ago
obj.rs aya-obj: reduce indirection in section parsing 1 year ago
relocation.rs maps: `MapFd` and `SockMapFd` are owned 1 year ago
util.rs aya: flip feature "no_std" to feature "std" 1 year ago