Home
last modified time | relevance | path

Searched refs:bpf_map (Results 1 – 7 of 7) sorted by relevance

/linux-4.1.27/include/linux/
Dbpf.h14 struct bpf_map;
19 struct bpf_map *(*map_alloc)(union bpf_attr *attr);
20 void (*map_free)(struct bpf_map *);
21 int (*map_get_next_key)(struct bpf_map *map, void *key, void *next_key);
24 void *(*map_lookup_elem)(struct bpf_map *map, void *key);
25 int (*map_update_elem)(struct bpf_map *map, void *key, void *value, u64 flags);
26 int (*map_delete_elem)(struct bpf_map *map, void *key);
29 struct bpf_map { struct
124 struct bpf_map **used_maps;
136 struct bpf_map *bpf_map_get(struct fd f);
[all …]
/linux-4.1.27/kernel/bpf/
Darraymap.c19 struct bpf_map map;
25 static struct bpf_map *array_map_alloc(union bpf_attr *attr) in array_map_alloc()
63 static void *array_map_lookup_elem(struct bpf_map *map, void *key) in array_map_lookup_elem()
75 static int array_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in array_map_get_next_key()
94 static int array_map_update_elem(struct bpf_map *map, void *key, void *value, in array_map_update_elem()
117 static int array_map_delete_elem(struct bpf_map *map, void *key) in array_map_delete_elem()
123 static void array_map_free(struct bpf_map *map) in array_map_free()
Dhelpers.c32 struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; in bpf_map_lookup_elem()
56 struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; in bpf_map_update_elem()
77 struct bpf_map *map = (struct bpf_map *) (unsigned long) r1; in bpf_map_delete_elem()
Dsyscall.c23 static struct bpf_map *find_and_alloc_map(union bpf_attr *attr) in find_and_alloc_map()
26 struct bpf_map *map; in find_and_alloc_map()
50 struct bpf_map *map = container_of(work, struct bpf_map, work); in bpf_map_free_deferred()
59 void bpf_map_put(struct bpf_map *map) in bpf_map_put()
69 struct bpf_map *map = filp->private_data; in bpf_map_release()
91 struct bpf_map *map; in map_create()
121 struct bpf_map *bpf_map_get(struct fd f) in bpf_map_get()
123 struct bpf_map *map; in bpf_map_get()
153 struct bpf_map *map; in map_lookup_elem()
211 struct bpf_map *map; in map_update_elem()
[all …]
Dhashtab.c18 struct bpf_map map;
35 static struct bpf_map *htab_map_alloc(union bpf_attr *attr) in htab_map_alloc()
121 static void *htab_map_lookup_elem(struct bpf_map *map, void *key) in htab_map_lookup_elem()
146 static int htab_map_get_next_key(struct bpf_map *map, void *key, void *next_key) in htab_map_get_next_key()
204 static int htab_map_update_elem(struct bpf_map *map, void *key, void *value, in htab_map_update_elem()
279 static int htab_map_delete_elem(struct bpf_map *map, void *key) in htab_map_delete_elem()
329 static void htab_map_free(struct bpf_map *map) in htab_map_free()
Dverifier.c150 struct bpf_map *map_ptr;
200 struct bpf_map *used_maps[MAX_USED_MAPS]; /* array of map's used by eBPF program */
616 struct bpf_map *map = env->cur_state.regs[regno].map_ptr; in check_map_access()
752 enum bpf_arg_type arg_type, struct bpf_map **mapp) in check_func_arg()
841 struct bpf_map *map = NULL; in check_call()
1152 static struct bpf_map *ld_imm64_to_map_ptr(struct bpf_insn *insn) in ld_imm64_to_map_ptr()
1156 return (struct bpf_map *) (unsigned long) imm64; in ld_imm64_to_map_ptr()
1842 struct bpf_map *map; in replace_map_fd_with_map_ptr()
/linux-4.1.27/Documentation/networking/
Dfilter.txt1199 fd 0 is not pointing to valid bpf_map