]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - kernel/bpf/map_in_map.h
Merge tag 'rproc-v4.14-fixes' of git://github.com/andersson/remoteproc
[mirror_ubuntu-bionic-kernel.git] / kernel / bpf / map_in_map.h
CommitLineData
56f668df
MKL
1/* Copyright (c) 2017 Facebook
2 *
3 * This program is free software; you can redistribute it and/or
4 * modify it under the terms of version 2 of the GNU General Public
5 * License as published by the Free Software Foundation.
6 */
7#ifndef __MAP_IN_MAP_H__
8#define __MAP_IN_MAP_H__
9
10#include <linux/types.h>
11
12struct file;
13struct bpf_map;
14
15struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd);
16void bpf_map_meta_free(struct bpf_map *map_meta);
17bool bpf_map_meta_equal(const struct bpf_map *meta0,
18 const struct bpf_map *meta1);
19void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
20 int ufd);
21void bpf_map_fd_put_ptr(void *ptr);
14dc6f04 22u32 bpf_map_fd_sys_lookup_elem(void *ptr);
56f668df
MKL
23
24#endif