aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorKui-Feng Lee <[email protected]>2024-05-29 23:59:41 -0700
committerMartin KaFai Lau <[email protected]>2024-05-30 15:34:13 -0700
commit1adddc97aa44c8783f9f0276ea70854d56f9f6df (patch)
tree9bf857f946cbe8a3c1cdb08f759f981bb11d8f09 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parent6fb2544ea1493f52e50b753604791c01bd2cf897 (diff)
bpf: support epoll from bpf struct_ops links.
Add epoll support to bpf struct_ops links to trigger EPOLLHUP event upon detachment. This patch implements the "poll" of the "struct file_operations" for BPF links and introduces a new "poll" operator in the "struct bpf_link_ops". By implementing "poll" of "struct bpf_link_ops" for the links of struct_ops, the file descriptor of a struct_ops link can be added to an epoll file descriptor to receive EPOLLHUP events. Signed-off-by: Kui-Feng Lee <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Martin KaFai Lau <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions