Home
last modified time | relevance | path

Searched refs:hash_map_fd (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dhash_large_key.c8 int err, value = 21, duration = 0, hash_map_fd; in test_hash_large_key() local
22 hash_map_fd = bpf_map__fd(skel->maps.hash_map); in test_hash_large_key()
23 if (CHECK(hash_map_fd < 0, "bpf_map__fd", "failed\n")) in test_hash_large_key()
30 err = bpf_map_update_elem(hash_map_fd, &key, &value, BPF_ANY); in test_hash_large_key()
35 err = bpf_map_lookup_elem(hash_map_fd, &key, &value); in test_hash_large_key()
/openbmc/linux/samples/bpf/
H A Dsockex3_user.c27 int i, sock, fd, main_prog_fd, hash_map_fd; in main() local
47 hash_map_fd = bpf_object__find_map_fd_by_name(obj, "hash_map"); in main()
48 if (hash_map_fd < 0) { in main()
85 while (bpf_map_get_next_key(hash_map_fd, &key, &next_key) == 0) { in main()
86 bpf_map_lookup_elem(hash_map_fd, &next_key, &value); in main()