Searched refs:outer_map_fd (Results 1 – 2 of 2) sorted by relevance
/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | btf_map_in_map.c | 34 int inner_map_fd, outer_map_fd, err, zero = 0; in kern_sync_rcu() local 40 outer_map_fd = bpf_create_map_in_map(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in kern_sync_rcu() 42 if (CHECK(outer_map_fd < 0, "outer_map_create", "failed %d\n", -errno)) { in kern_sync_rcu() 47 err = bpf_map_update_elem(outer_map_fd, &zero, &inner_map_fd, 0); in kern_sync_rcu() 52 close(outer_map_fd); in kern_sync_rcu()
|
/Linux-v5.10/tools/testing/selftests/bpf/ |
D | test_verifier.c | 476 int inner_map_fd, outer_map_fd; in create_map_in_map() local 487 outer_map_fd = bpf_create_map_in_map(BPF_MAP_TYPE_ARRAY_OF_MAPS, NULL, in create_map_in_map() 489 if (outer_map_fd < 0) { in create_map_in_map() 498 return outer_map_fd; in create_map_in_map()
|