aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/bpf.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/bpf.h')
-rw-r--r--include/linux/bpf.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/bpf.h b/include/linux/bpf.h
index f63afdc43bec..8ee27b8afe81 100644
--- a/include/linux/bpf.h
+++ b/include/linux/bpf.h
@@ -180,12 +180,13 @@ void bpf_register_prog_type(struct bpf_prog_type_list *tl);
180void bpf_register_map_type(struct bpf_map_type_list *tl); 180void bpf_register_map_type(struct bpf_map_type_list *tl);
181 181
182struct bpf_prog *bpf_prog_get(u32 ufd); 182struct bpf_prog *bpf_prog_get(u32 ufd);
183struct bpf_prog *bpf_prog_inc(struct bpf_prog *prog);
183void bpf_prog_put(struct bpf_prog *prog); 184void bpf_prog_put(struct bpf_prog *prog);
184void bpf_prog_put_rcu(struct bpf_prog *prog); 185void bpf_prog_put_rcu(struct bpf_prog *prog);
185 186
186struct bpf_map *bpf_map_get_with_uref(u32 ufd); 187struct bpf_map *bpf_map_get_with_uref(u32 ufd);
187struct bpf_map *__bpf_map_get(struct fd f); 188struct bpf_map *__bpf_map_get(struct fd f);
188void bpf_map_inc(struct bpf_map *map, bool uref); 189struct bpf_map *bpf_map_inc(struct bpf_map *map, bool uref);
189void bpf_map_put_with_uref(struct bpf_map *map); 190void bpf_map_put_with_uref(struct bpf_map *map);
190void bpf_map_put(struct bpf_map *map); 191void bpf_map_put(struct bpf_map *map);
191int bpf_map_precharge_memlock(u32 pages); 192int bpf_map_precharge_memlock(u32 pages);