diff options
| author | Andrii Nakryiko <[email protected]> | 2024-08-06 21:31:34 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-08-13 22:58:14 +0000 |
| commit | 535ead44ffd08479212e31729a7118bd4e9ac699 (patch) | |
| tree | 301911644ba4325cef2f6a95deac4c165bf4d106 /rust/helpers/mutex.c | |
| parent | bpf: switch fdget_raw() uses to CLASS(fd_raw, ...) (diff) | |
| download | kernel-535ead44ffd08479212e31729a7118bd4e9ac699.tar.gz kernel-535ead44ffd08479212e31729a7118bd4e9ac699.zip | |
bpf: factor out fetching bpf_map from FD and adding it to used_maps list
Factor out the logic to extract bpf_map instances from FD embedded in
bpf_insns, adding it to the list of used_maps (unless it's already
there, in which case we just reuse map's index). This simplifies the
logic in resolve_pseudo_ldimm64(), especially around `struct fd`
handling, as all that is now neatly contained in the helper and doesn't
leak into a dozen error handling paths.
Signed-off-by: Andrii Nakryiko <[email protected]>
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions
