/Linux-v5.10/tools/testing/selftests/bpf/prog_tests/ |
D | sockopt_multi.c | 58 int cg_child, int sock_fd) in run_getsockopt_test() argument 67 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 75 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 98 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 122 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 141 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 149 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 168 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() 180 err = setsockopt(sock_fd, SOL_IP, IP_TOS, &buf, 1); in run_getsockopt_test() 188 err = getsockopt(sock_fd, SOL_IP, IP_TOS, &buf, &optlen); in run_getsockopt_test() [all …]
|
D | sockmap_basic.c | 204 __s64 *sock_fd = NULL; in test_sockmap_copy() local 223 sock_fd = calloc(num_sockets, sizeof(*sock_fd)); in test_sockmap_copy() 224 if (CHECK(!sock_fd, "calloc(sock_fd)", "failed to allocate\n")) in test_sockmap_copy() 228 sock_fd[i] = -1; in test_sockmap_copy() 233 sock_fd[i] = connected_socket_v4(); in test_sockmap_copy() 234 if (CHECK(sock_fd[i] == -1, "connected_socket_v4", "cannot connect\n")) in test_sockmap_copy() 237 err = bpf_map_update_elem(src_fd, &i, &sock_fd[i], BPF_NOEXIST); in test_sockmap_copy() 275 for (i = 0; sock_fd && i < num_sockets; i++) in test_sockmap_copy() 276 if (sock_fd[i] >= 0) in test_sockmap_copy() 277 close(sock_fd[i]); in test_sockmap_copy() [all …]
|
D | probe_user.c | 9 int err, results_map_fd, sock_fd, duration = 0; in test_probe_user() local 48 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in test_probe_user() 49 if (CHECK(sock_fd < 0, "create_sock_fd", "err %d\n", sock_fd)) in test_probe_user() 52 connect(sock_fd, &curr, sizeof(curr)); in test_probe_user() 53 close(sock_fd); in test_probe_user()
|
D | sockopt.c | 879 int sock_fd, err, prog_fd; in run_test() local 902 sock_fd = socket(AF_INET, SOCK_STREAM, 0); in run_test() 903 if (sock_fd < 0) { in run_test() 910 err = setsockopt(sock_fd, test->set_level, test->set_optname, in run_test() 930 err = getsockopt(sock_fd, test->get_level, test->get_optname, in run_test() 963 close(sock_fd); in run_test()
|
D | bpf_iter.c | 922 int sock_fd[3] = {-1, -1, -1}; in test_bpf_sk_storage_map() local 933 num_sockets = ARRAY_SIZE(sock_fd); in test_bpf_sk_storage_map() 935 sock_fd[i] = socket(AF_INET6, SOCK_STREAM, 0); in test_bpf_sk_storage_map() 936 if (CHECK(sock_fd[i] < 0, "socket", "errno: %d\n", errno)) in test_bpf_sk_storage_map() 942 err = bpf_map_update_elem(map_fd, &sock_fd[i], &val, in test_bpf_sk_storage_map() 983 if (sock_fd[i] >= 0) in test_bpf_sk_storage_map() 984 close(sock_fd[i]); in test_bpf_sk_storage_map()
|
D | sk_lookup.c | 88 static int attach_reuseport(int sock_fd, struct bpf_program *reuseport_prog) in attach_reuseport() argument 98 err = setsockopt(sock_fd, SOL_SOCKET, SO_ATTACH_REUSEPORT_EBPF, in attach_reuseport() 452 static int update_lookup_map(struct bpf_map *map, int index, int sock_fd) in update_lookup_map() argument 464 value = (uint64_t)sock_fd; in update_lookup_map()
|
/Linux-v5.10/arch/um/drivers/ |
D | port_user.c | 150 int sock_fd; member 158 dup2(data->sock_fd, 0); in port_pre_exec() 159 dup2(data->sock_fd, 1); in port_pre_exec() 160 dup2(data->sock_fd, 2); in port_pre_exec() 161 close(data->sock_fd); in port_pre_exec() 183 { .sock_fd = new, in port_connection()
|
/Linux-v5.10/drivers/infiniband/hw/usnic/ |
D | usnic_transport.c | 145 struct socket *usnic_transport_get_socket(int sock_fd) in usnic_transport_get_socket() argument 152 sock = sockfd_lookup(sock_fd, &err); in usnic_transport_get_socket() 155 sock_fd, err); in usnic_transport_get_socket()
|
D | usnic_transport.h | 57 struct socket *usnic_transport_get_socket(int sock_fd);
|
D | usnic_ib_qp_grp.c | 267 int sock_fd; in create_udp_flow() local 279 sock_fd = trans_spec->udp.sock_fd; in create_udp_flow() 282 sock = usnic_transport_get_socket(sock_fd); in create_udp_flow() 291 usnic_err("Protocol for fd %d is not UDP", sock_fd); in create_udp_flow()
|
D | usnic_abi.h | 59 uint32_t sock_fd; member
|