summaryrefslogtreecommitdiffstats
path: root/kernel/power
diff options
context:
space:
mode:
authorRoberto Sassu <roberto.sassu@huawei.com>2022-10-06 13:07:33 +0200
committerAndrii Nakryiko <andrii@kernel.org>2022-10-11 01:49:20 +0200
commit8f13f168ea14333ac971e5404800b7fb3658e782 (patch)
treea6c1d8ee6b154a51f6e2f6a5e6e0ab6a91dfd1bc /kernel/power
parentlibbpf: Introduce bpf_get_fd_by_id_opts and bpf_map_get_fd_by_id_opts() (diff)
downloadlinux-8f13f168ea14333ac971e5404800b7fb3658e782.tar.xz
linux-8f13f168ea14333ac971e5404800b7fb3658e782.zip
libbpf: Introduce bpf_prog_get_fd_by_id_opts()
Introduce bpf_prog_get_fd_by_id_opts(), for symmetry with bpf_map_get_fd_by_id_opts(), to let the caller pass the newly introduced data structure bpf_get_fd_by_id_opts. Keep the existing bpf_prog_get_fd_by_id(), and call bpf_prog_get_fd_by_id_opts() with NULL as opts argument, to prevent setting open_flags. Currently, the kernel does not support non-zero open_flags for bpf_prog_get_fd_by_id_opts(), and a call with them will result in an error returned by the bpf() system call. The caller should always pass zero open_flags. Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20221006110736.84253-4-roberto.sassu@huaweicloud.com
Diffstat (limited to 'kernel/power')
0 files changed, 0 insertions, 0 deletions