Lines Matching refs:map_fds
1095 int map_fds[ELF_MAX_MAPS]; member
1525 if (ctx->map_fds[i] < 0) in bpf_find_map_id()
1528 return ctx->map_fds[i]; in bpf_find_map_id()
1663 ctx->map_fds[i] = !fd ? -1 : fd; in bpf_maps_attach_all()
1667 if (ctx->map_fds[i] >= 0) in bpf_maps_attach_all()
1679 ctx->map_fds[i] = fd; in bpf_maps_attach_all()
1688 inner_fd = ctx->map_fds[i]; in bpf_maps_attach_all()
1697 ret = bpf_map_update(ctx->map_fds[j], &inner_idx, in bpf_maps_attach_all()
1700 bpf_report_map_in_map(ctx->map_fds[j], in bpf_maps_attach_all()
2022 if (rmap >= ARRAY_SIZE(ctx->map_fds)) in bpf_apply_relo_data()
2024 if (!ctx->map_fds[rmap]) in bpf_apply_relo_data()
2036 bpf_str_tab_name(ctx, &sym), ctx->map_fds[rmap], in bpf_apply_relo_data()
2040 insns[ioff].imm = ctx->map_fds[rmap]; in bpf_apply_relo_data()
2126 for (i = 0; i < ARRAY_SIZE(ctx->map_fds); i++) in bpf_find_map_by_id()
2127 if (ctx->map_fds[i] && ctx->maps[i].id == id && in bpf_find_map_by_id()
2204 ret = bpf_map_update(ctx->map_fds[idx], &key_id, in bpf_fill_prog_arrays()
2216 aux.map_fd = ctx->map_fds[idx]; in bpf_fill_prog_arrays()
2472 for (i = 0; i < ARRAY_SIZE(ctx->map_fds); i++) { in bpf_maps_count()
2473 if (!ctx->map_fds[i]) in bpf_maps_count()
2485 for (i = 0; i < ARRAY_SIZE(ctx->map_fds); i++) { in bpf_maps_teardown()
2486 if (ctx->map_fds[i]) in bpf_maps_teardown()
2487 close(ctx->map_fds[i]); in bpf_maps_teardown()
2633 .fds = ctx->map_fds, in bpf_send_map_fds()