diff options
| author | Ihor Solodrai <[email protected]> | 2025-07-02 21:03:08 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2025-07-03 22:21:20 +0000 |
| commit | 5fc5d8fded57e5de0c0b56b00c4cfc522aa8c572 (patch) | |
| tree | 820e5b4bb624cd16cb5a81f797c3bd856f3a6692 /tools/testing/selftests/bpf/prog_tests/dynptr.c | |
| parent | selftests/bpf: Allow veristat compile standalone (diff) | |
| download | kernel-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
