diff options
| author | Kumar Kartikeya Dwivedi <[email protected]> | 2022-09-04 20:41:16 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2022-09-07 18:46:34 +0000 |
| commit | cc48755808c646666436745b35629c3f0d05e165 (patch) | |
| tree | 6d751a095f90870c410008319bd51e5e33dc36a7 /tools/lib/bpf/bpf_helpers.h | |
| parent | bpf: Support kptrs in percpu arraymap (diff) | |
| download | kernel-cc48755808c646666436745b35629c3f0d05e165.tar.gz kernel-cc48755808c646666436745b35629c3f0d05e165.zip | |
bpf: Add zero_map_value to zero map value with special fields
We need this helper to skip over special fields (bpf_spin_lock,
bpf_timer, kptrs) while zeroing a map value. Use the same logic as
copy_map_value but memset instead of memcpy.
Currently, the code zeroing map value memory does not have to deal with
special fields, hence this is a prerequisite for introducing such
support.
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/lib/bpf/bpf_helpers.h')
0 files changed, 0 insertions, 0 deletions
