Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / kernel / bpf / map_in_map.h
blobbcb7534afb3c0d073222a20bc7d38538e986ee27
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2017 Facebook
3 */
4 #ifndef __MAP_IN_MAP_H__
5 #define __MAP_IN_MAP_H__
7 #include <linux/types.h>
9 struct file;
10 struct bpf_map;
12 struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd);
13 void bpf_map_meta_free(struct bpf_map *map_meta);
14 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
15 int ufd);
16 void bpf_map_fd_put_ptr(void *ptr);
17 u32 bpf_map_fd_sys_lookup_elem(void *ptr);
19 #endif