aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/dynptr.c
diff options
context:
space:
mode:
authorIhor Solodrai <[email protected]>2025-07-02 21:03:08 +0000
committerAndrii Nakryiko <[email protected]>2025-07-03 22:21:20 +0000
commit5fc5d8fded57e5de0c0b56b00c4cfc522aa8c572 (patch)
tree820e5b4bb624cd16cb5a81f797c3bd856f3a6692 /tools/testing/selftests/bpf/prog_tests/dynptr.c
parentselftests/bpf: Allow veristat compile standalone (diff)
downloadkernel-5fc5d8fded57e5de0c0b56b00c4cfc522aa8c572.tar.gz
kernel-5fc5d8fded57e5de0c0b56b00c4cfc522aa8c572.zip
bpf: Add bpf_dynptr_memset() kfunc
Currently there is no straightforward way to fill dynptr memory with a value (most commonly zero). One can do it with bpf_dynptr_write(), but a temporary buffer is necessary for that. Implement bpf_dynptr_memset() - an analogue of memset() from libc. Signed-off-by: Ihor Solodrai <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/dynptr.c')
0 files changed, 0 insertions, 0 deletions