diff options
| author | Martin KaFai Lau <martin.lau@kernel.org> | 2026-09-17 13:05:29 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-19 05:32:55 +0000 |
| commit | 3668bc410260fbd97784c3c4cdc73cf06f86f940 (patch) | |
| tree | 6cb65e18496b6156afb9dafee7f5c040a5f969f9 /include/linux/debugobjects.h | |
| parent | 5db69b0fbdc88150e80c1b904f5201502c365b35 (diff) | |
bpf: Add bpf_struct_ops accessor helpers
Add the helper functions bpf_struct_ops_map_kdata() and
bpf_struct_ops_map_cfi_stubs() in bpf_struct_ops.c. They will be called
from cgroup.c in the upcoming patch to create a struct_ops to cgroup
attachment link.
bpf_struct_ops_valid_to_reg() is also exposed for the upcoming caller
in cgroup.c.
The link update validation is also refactored into a new function
bpf_struct_ops_link_update_check() such that it can be reused by the
caller in cgroup.c in the upcoming patch.
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Reviewed-by: Emil Tsalapatis <emil@etsalapatis.com>
Link: https://patch.msgid.link/20260917200542.3689605-4-ameryhung@gmail.com
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
