Searched refs:sk_fd (Results 1 – 4 of 4) sorted by relevance
/linux/tools/testing/selftests/bpf/map_tests/ |
A D | sk_storage_map.c | 288 int sk_fd = *(int *)arg; in update_thread() local 312 int sk_fd = *(int *)arg; in delete_thread() local 345 sk_fd = socket(AF_INET6, SOCK_STREAM, 0); in do_sk_storage_map_stress_change() 346 if (sk_fd == -1) { in do_sk_storage_map_stress_change() 357 update_thread, &sk_fd); in do_sk_storage_map_stress_change() 360 delete_thread, &sk_fd); in do_sk_storage_map_stress_change() 381 if (sk_fd != -1) in do_sk_storage_map_stress_change() 382 close(sk_fd); in do_sk_storage_map_stress_change() 467 int btf_fd, map_fd, sk_fd, err; in test_sk_storage_map_basic() local 476 sk_fd, errno); in test_sk_storage_map_basic() [all …]
|
/linux/tools/testing/selftests/uevent/ |
A D | uevent_filtering.c | 79 int sk_fd, ret; in uevent_listener() local 92 sk_fd = socket(AF_NETLINK, SOCK_RAW | SOCK_CLOEXEC, in uevent_listener() 94 if (sk_fd < 0) { in uevent_listener() 99 ret = setsockopt(sk_fd, SOL_SOCKET, SO_RCVBUF, &rcv_buf_sz, in uevent_listener() 110 ret = bind(sk_fd, (struct sockaddr *)&sk_addr, sk_addr_len); in uevent_listener() 116 ret = getsockname(sk_fd, (struct sockaddr *)&sk_addr, &sk_addr_len); in uevent_listener() 158 r = recvmsg(sk_fd, &hdr, 0); in uevent_listener() 188 close(sk_fd); in uevent_listener()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | sk_storage_tracing.c | 25 static int check_sk_stg(int sk_fd, __u32 expected_state) in check_sk_stg() argument 30 err = bpf_map_lookup_elem(bpf_map__fd(skel->maps.sk_stg_map), &sk_fd, in check_sk_stg()
|
A D | sock_fields.c | 238 static int init_sk_storage(int sk_fd, __u32 pkt_out_cnt) in init_sk_storage() argument 244 err = bpf_map_update_elem(sk_pkt_out_cnt_fd, &sk_fd, &scnt, in init_sk_storage() 250 err = bpf_map_update_elem(sk_pkt_out_cnt10_fd, &sk_fd, &scnt, in init_sk_storage()
|
Completed in 9 milliseconds