aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/libbpf_common.h
diff options
context:
space:
mode:
authorSong Liu <[email protected]>2023-11-07 04:57:25 +0000
committerAlexei Starovoitov <[email protected]>2023-11-10 03:07:38 +0000
commit045edee19d591e59ed53772bf6dfc9b1ed9577eb (patch)
treec43ffde215600c1540057a1cb6680d5ac23e90fd /tools/lib/bpf/libbpf_common.h
parentbpf: Factor out helper check_reg_const_str() (diff)
downloadkernel-045edee19d591e59ed53772bf6dfc9b1ed9577eb.tar.gz
kernel-045edee19d591e59ed53772bf6dfc9b1ed9577eb.zip
bpf: Introduce KF_ARG_PTR_TO_CONST_STR
Similar to ARG_PTR_TO_CONST_STR for BPF helpers, KF_ARG_PTR_TO_CONST_STR specifies kfunc args that point to const strings. Annotation "__str" is used to specify kfunc arg of type KF_ARG_PTR_TO_CONST_STR. Also, add documentation for the "__str" annotation. bpf_get_file_xattr() will be the first kfunc that uses this type. Signed-off-by: Song Liu <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Acked-by: Vadim Fedorenko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/libbpf_common.h')
0 files changed, 0 insertions, 0 deletions