^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /* Copyright (c) 2017 Facebook
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #ifndef __MAP_IN_MAP_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) #define __MAP_IN_MAP_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #include <linux/types.h>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) struct file;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) struct bpf_map;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) void bpf_map_meta_free(struct bpf_map *map_meta);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) int ufd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) void bpf_map_fd_put_ptr(void *ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) u32 bpf_map_fd_sys_lookup_elem(void *ptr);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #endif