diff options
| author | Stanislav Fomichev <sdf@google.com> | 2019-08-14 10:37:48 -0700 |
|---|---|---|
| committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-08-17 23:18:54 +0200 |
| commit | b0e4701ce15d0381cdea0643c7f0a35dc529cec2 (patch) | |
| tree | 35f71eca49d4baa3ce31be4c830db41f60f2cb32 /scripts/gdb/linux/modules.py | |
| parent | fae55527ac1164b66bee983a4d82ade2bfedb332 (diff) | |
bpf: export bpf_map_inc_not_zero
Rename existing bpf_map_inc_not_zero to __bpf_map_inc_not_zero to
indicate that it's caller's responsibility to do proper locking.
Create and export bpf_map_inc_not_zero wrapper that properly
locks map_idr_lock. Will be used in the next commit to
hold a map while cloning a socket.
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Yonghong Song <yhs@fb.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions
