libbpf: Add ring__map_fd

Add ring__map_fd to get the file descriptor underlying a given
ringbuffer.

Signed-off-by: Martin Kelly <martin.kelly@crowdstrike.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20230925215045.2375758-12-martin.kelly@crowdstrike.com
This commit is contained in:
Martin Kelly
2023-09-25 14:50:42 -07:00
committed by Andrii Nakryiko
parent cd3fe56c75
commit 6413c2d063
3 changed files with 15 additions and 0 deletions

View File

@@ -402,6 +402,7 @@ LIBBPF_1.3.0 {
bpf_program__attach_uprobe_multi;
ring__avail_data_size;
ring__consumer_pos;
ring__map_fd;
ring__producer_pos;
ring__size;
ring_buffer__ring;