Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /* Copyright (c) 2017 Facebook
0003  */
0004 #ifndef __MAP_IN_MAP_H__
0005 #define __MAP_IN_MAP_H__
0006 
0007 #include <linux/types.h>
0008 
0009 struct file;
0010 struct bpf_map;
0011 
0012 struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd);
0013 void bpf_map_meta_free(struct bpf_map *map_meta);
0014 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
0015              int ufd);
0016 void bpf_map_fd_put_ptr(void *ptr);
0017 u32 bpf_map_fd_sys_lookup_elem(void *ptr);
0018 
0019 #endif