Searched refs:sk_fd (Results 1 – 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/ |
D | sk_storage_map.c | 288 int sk_fd = *(int *)arg; in update_thread() local 292 err = bpf_map_update_elem(map_fd, &sk_fd, &value, 0); in update_thread() 312 int sk_fd = *(int *)arg; in delete_thread() local 316 err = bpf_map_delete_elem(map_fd, &sk_fd); in delete_thread() 335 int i, sk_fd, map_fd = -1, err = 0, nr_threads_created = 0; in do_sk_storage_map_stress_change() 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() [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/uevent/ |
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
D | sock_fields.c | 254 static int init_sk_storage(int sk_fd, __u32 pkt_out_cnt) in init_sk_storage() argument 260 err = bpf_map_update_elem(sk_pkt_out_cnt_fd, &sk_fd, &scnt, in init_sk_storage() 266 err = bpf_map_update_elem(sk_pkt_out_cnt10_fd, &sk_fd, &scnt, in init_sk_storage()
|