block: avoid ordered task state change for polled IO
[linux/fpc-iii.git] / kernel / bpf / map_in_map.h
blob6183db9ec08cce0ba6aaa656cffdcb710bb8c797
1 /* Copyright (c) 2017 Facebook
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__
10 #include <linux/types.h>
12 struct file;
13 struct bpf_map;
15 struct bpf_map *bpf_map_meta_alloc(int inner_map_ufd);
16 void bpf_map_meta_free(struct bpf_map *map_meta);
17 bool bpf_map_meta_equal(const struct bpf_map *meta0,
18 const struct bpf_map *meta1);
19 void *bpf_map_fd_get_ptr(struct bpf_map *map, struct file *map_file,
20 int ufd);
21 void bpf_map_fd_put_ptr(void *ptr);
22 u32 bpf_map_fd_sys_lookup_elem(void *ptr);
24 #endif