Home
last modified time | relevance | path

Searched defs:sock (Results 1 – 22 of 22) sorted by relevance

/tools/testing/selftests/net/
Dpsock_tpacket.c101 int ret, sock = socket(PF_PACKET, SOCK_RAW, 0); in pfsocket() local
220 static void walk_v1_v2_rx(int sock, struct ring *ring) in walk_v1_v2_rx()
342 static void __v1_v2_set_packet_loss_discard(int sock) in __v1_v2_set_packet_loss_discard()
369 static void walk_tx(int sock, struct ring *ring) in walk_tx()
500 static void walk_v1_v2(int sock, struct ring *ring) in walk_v1_v2()
581 static void walk_v3_rx(int sock, struct ring *ring) in walk_v3_rx()
622 static void walk_v3(int sock, struct ring *ring) in walk_v3()
667 static void setup_ring(int sock, struct ring *ring, int version, int type) in setup_ring()
708 static void mmap_ring(int sock, struct ring *ring) in mmap_ring()
726 static void bind_ring(int sock, struct ring *ring) in bind_ring()
[all …]
Dfin_ack_lat.c30 int sock = 0; in client() local
86 static void server(int sock, struct sockaddr_in address) in server()
112 int sock; in main() local
Dtimestamping.c134 static void sendpacket(int sock, struct sockaddr *addr, socklen_t addr_len, int ptpv2) in sendpacket()
153 int sock, int recvmsg_flags, in printpacket()
277 static void recvpacket(int sock, int recvmsg_flags, in recvpacket()
324 int sock; in main() local
Dhwtstamp_config.c91 int sock; in main() local
Dipsec.c154 static int netlink_sock(int *sock, uint32_t *seq_nr, int proto) in netlink_sock()
246 static int netlink_check_answer(int sock) in netlink_check_answer()
269 static int veth_add(int sock, uint32_t seq, const char *peera, int ns_a, in veth_add()
319 static int ip4_addr_set(int sock, uint32_t seq, const char *intf, in ip4_addr_set()
361 static int link_set_up(int sock, uint32_t seq, const char *intf) in link_set_up()
387 static int ip4_route_set(int sock, uint32_t seq, const char *intf, in ip4_route_set()
1340 static int netlink_sock_bind(int *sock, uint32_t *seq, int proto, uint32_t groups) in netlink_sock_bind()
/tools/testing/selftests/vm/
Dmap_populate.c33 static int parent_f(int sock, unsigned long *smap, int child) in parent_f()
53 static int child_f(int sock, unsigned long *smap, int fd) in child_f()
77 int sock[2], child, ret; in main() local
/tools/testing/selftests/exec/
Dnon-regular.c170 FIXTURE(sock) in FIXTURE() argument
175 FIXTURE_SETUP(sock) in FIXTURE_SETUP() argument
181 FIXTURE_TEARDOWN(sock) in FIXTURE_TEARDOWN() argument
187 TEST_F(sock, exec_errno) in TEST_F() argument
/tools/bpf/bpftool/
Dnet.c101 int sock; in netlink_open() local
139 static int netlink_recv(int sock, __u32 nl_pid, __u32 seq, in netlink_recv()
213 static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex, in netlink_get_class()
252 static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex, in netlink_get_qdisc()
291 static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle, in netlink_get_filter()
330 static int netlink_get_link(int sock, unsigned int nl_pid, in netlink_get_link()
423 static int show_dev_tc_bpf(int sock, unsigned int nl_pid, in show_dev_tc_bpf()
651 int i, sock, ret, filter_idx = -1; in do_show() local
/tools/testing/selftests/bpf/progs/
Dudp_limit.c17 int sock(struct bpf_sock *ctx) in sock() function
Dlocal_storage.c105 int BPF_PROG(socket_bind, struct socket *sock, struct sockaddr *address, in BPF_PROG()
133 int BPF_PROG(socket_post_create, struct socket *sock, int family, int type, in BPF_PROG()
Dbpf_iter_bpf_sk_storage_helpers.c30 struct socket *sock; in fill_socket_owner() local
Dsocket_cookie_prog.c79 int BPF_PROG(update_cookie_tracing, struct socket *sock, in BPF_PROG()
Dtest_tcp_estats.c74 struct sock { struct
75 struct sock_common __sk_common; argument
160 struct sock *sock; member
/tools/lib/bpf/
Dnetlink.c41 int sock; in libbpf_netlink_open() local
79 static void libbpf_netlink_close(int sock) in libbpf_netlink_close()
90 static int netlink_recvmsg(int sock, struct msghdr *mhdr, int flags) in netlink_recvmsg()
116 static int libbpf_netlink_recv(int sock, __u32 nl_pid, int seq, in libbpf_netlink_recv()
212 int sock, ret; in libbpf_netlink_send_recv() local
/tools/perf/util/
Dcpumap.h47 static inline int cpu_map__socket(struct perf_cpu_map *sock, int s) in cpu_map__socket()
/tools/testing/selftests/bpf/
Dbpf_tcp_helpers.h32 struct sock { struct
33 struct sock_common __sk_common; argument
40 struct sock sk; argument
/tools/testing/selftests/net/mptcp/
Dmptcp_connect.c191 int sock; in sock_listen_mptcp() local
247 int sock = -1, ret = 0; in sock_test_tcpulp() local
284 int sock = -1; in sock_connect_mptcp() local
/tools/testing/selftests/cgroup/
Dtest_kmem.c165 long current, slab, anon, file, kernel_stack, pagetables, percpu, sock, sum; in test_kmem_memcg_deletion() local
Dtest_memcontrol.c902 long current, sock; in tcp_client() local
/tools/usb/usbip/src/
Dusbipd.c386 int sock; in listen_all_addrinfo() local
/tools/testing/selftests/nci/
Dnci_dev.c698 int sock; in connect_socket() local
/tools/bpf/
Dbpf_dbg.c500 int sock, ret, i; in bpf_runnable() local