Home
last modified time | relevance | path

Searched refs:used_maps_new (Results 1 - 1 of 1) sorted by relevance

/device/soc/rockchip/common/sdk_linux/kernel/bpf/
H A Dsyscall.c4406 struct bpf_map **used_maps_old, **used_maps_new; in bpf_prog_bind_map() local
4439 used_maps_new = kmalloc_array(prog->aux->used_map_cnt + 1, sizeof(used_maps_new[0]), GFP_KERNEL); in bpf_prog_bind_map()
4440 if (!used_maps_new) { in bpf_prog_bind_map()
4445 memcpy(used_maps_new, used_maps_old, sizeof(used_maps_old[0]) * prog->aux->used_map_cnt); in bpf_prog_bind_map()
4446 used_maps_new[prog->aux->used_map_cnt] = map; in bpf_prog_bind_map()
4449 prog->aux->used_maps = used_maps_new; in bpf_prog_bind_map()

Completed in 5 milliseconds