]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: prepare for more bpf syscall to be used from kernel and user space.
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 24 Aug 2022 13:40:36 +0000 (15:40 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 26 Aug 2022 01:52:05 +0000 (18:52 -0700)
commit3b8b8b70357b91b78f655f4543efb402fd95cc28
treeb164faaef1fc867f3dc9eb3db74664c4bec89f84
parent81f91bb4b5ee43fca43584437e62ce10935748c4
bpf: prepare for more bpf syscall to be used from kernel and user space.

Add BPF_MAP_GET_FD_BY_ID and BPF_MAP_DELETE_PROG.

Only BPF_MAP_GET_FD_BY_ID needs to be amended to be able
to access the bpf pointer either from the userspace or the kernel.

Acked-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20220824134055.1328882-7-benjamin.tissoires@redhat.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/syscall.c