diff options
| author | Yonghong Song <yonghong.song@linux.dev> | 2026-08-28 23:15:55 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-08-29 18:16:33 -0700 |
| commit | 9046109974dd1f3ffc3f62e22555be13eaf7fdb0 (patch) | |
| tree | 132e92590afcd99e2c28f6f0f56f7ebedd17e102 /tools/lib/python | |
| parent | ff08e6b79ee1470e736054e9558c47e4150406b1 (diff) | |
bpf: Allow arena pointers in a by-value kfunc return
A kfunc may already return an arena pointer on its own, which the program
casts back into the arena address space to use. Let the members of a
by-value struct it returns be arena pointers as well, rather than scalars
only.
Such a member carries the arena type tag but not the address space
qualifier, so the program has to cast it itself. Handing it back as a
scalar costs nothing: an arena address has no provenance to track, and the
cast is confined to the caller's arena.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20260829061555.1697503-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
