]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blame - kernel/bpf/map_in_map.h
Merge tag 'libata-5.10-2020-10-24' of git://git.kernel.dk/linux-block
[mirror_ubuntu-hirsute-kernel.git] / kernel / bpf / map_in_map.h
CommitLineData
25763b3c 1/* SPDX-License-Identifier: GPL-2.0-only */
56f668df 2/* Copyright (c) 2017 Facebook
56f668df
MKL
3 */
4#ifndef __MAP_IN_MAP_H__
5#define __MAP_IN_MAP_H__
6
7#include <linux/types.h>
8
9struct file;
10struct bpf_map;
11
12struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd);
13void bpf_map_meta_free(struct bpf_map *map_meta);
56f668df
MKL
14void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
15 int ufd);
16void bpf_map_fd_put_ptr(void *ptr);
14dc6f04 17u32 bpf_map_fd_sys_lookup_elem(void *ptr);
56f668df
MKL
18
19#endif