/linux-master/tools/testing/selftests/bpf/bpf_testmod/ |
H A D | bpf_testmod.c | 361 __bpf_kfunc u64 bpf_kfunc_call_test1(struct sock *sk, u32 a, u64 b, u32 c, u64 d) 366 __bpf_kfunc int bpf_kfunc_call_test2(struct sock *sk, u32 a, u32 b) 371 __bpf_kfunc struct sock *bpf_kfunc_call_test3(struct sock *sk)
|
/linux-master/net/tipc/ |
H A D | msg.c | 37 #include <net/sock.h>
|
/linux-master/net/rxrpc/ |
H A D | rxkad.c | 19 #include <net/sock.h>
|
/linux-master/net/mptcp/ |
H A D | protocol.c | 14 #include <net/sock.h> 45 static void __mptcp_destroy_sock(struct sock *sk); 46 static void mptcp_check_send_data_fin(struct sock *sk); 57 static const struct proto_ops *mptcp_fallback_tcp_ops(const struct sock *sk) 70 struct sock *sk = (struct sock *)msk; 97 struct sock *__mptcp_nmpc_sk(struct mptcp_sock *msk) 99 struct sock *sk = (struct sock *)msk; 114 static void mptcp_drop(struct sock *s 3808 mptcp_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) argument 3835 mptcp_listen(struct socket *sock, int backlog) argument 3875 mptcp_stream_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument 3976 mptcp_poll(struct file *file, struct socket *sock, struct poll_table_struct *wait) argument [all...] |
/linux-master/net/l2tp/ |
H A D | l2tp_eth.c | 17 #include <net/sock.h> 211 lock_sock(tunnel->sock); 212 l3_overhead = kernel_sock_ip_overhead(tunnel->sock); 213 release_sock(tunnel->sock); 217 * because tunnel->sock was NULL or the socket's
|
/linux-master/net/ipv6/ |
H A D | udp_offload.c | 116 static struct sock *udp6_gro_lookup_skb(struct sk_buff *skb, __be16 sport, 134 struct sock *sk = NULL;
|
H A D | udp.c | 61 static void udpv6_destruct_sock(struct sock *sk) 67 int udpv6_init_sock(struct sock *sk) 96 int udp_v6_get_port(struct sock *sk, unsigned short snum) 108 void udp_v6_rehash(struct sock *sk) 117 static int compute_score(struct sock *sk, struct net *net, 163 static struct sock *udp6_lib_lookup2(struct net *net, 169 struct sock *sk, *result; 208 struct sock *__udp6_lib_lookup(struct net *net, 217 struct sock *result, *sk; 261 static struct sock *__udp6_lib_lookup_sk 1646 udpv6_splice_eof(struct socket *sock) argument [all...] |
/linux-master/net/ipv4/ |
H A D | udp_offload.c | 268 struct sock *sk = gso_skb->sk; 557 struct udphdr *uh, struct sock *sk) 626 static struct sock *udp4_gro_lookup_skb(struct sk_buff *skb, __be16 sport, 644 struct sock *sk = NULL; 696 struct sock *sk;
|
H A D | udp.c | 136 static struct udp_table *udp_get_table_prot(struct sock *sk) 144 struct sock *sk, unsigned int log) 146 struct sock *sk2; 179 struct sock *sk) 181 struct sock *sk2; 208 static int udp_reuseport_add_sock(struct sock *sk, struct udp_hslot *hslot) 212 struct sock *sk2; 239 int udp_lib_get_port(struct sock *sk, unsigned short snum, 354 int udp_v4_get_port(struct sock *sk, unsigned short snum) 366 static int compute_score(struct sock *s 1324 udp_splice_eof(struct socket *sock) argument 2877 udp_poll(struct file *file, struct socket *sock, poll_table *wait) argument [all...] |
H A D | raw.c | 59 #include <net/sock.h> 91 int raw_hash_sk(struct sock *sk) 108 void raw_unhash_sk(struct sock *sk) 119 bool raw_v4_match(struct net *net, const struct sock *sk, unsigned short num, 137 static int icmp_filter(const struct sock *sk, const struct sk_buff *skb) 170 struct sock *sk; 208 static void raw_err(struct sock *sk, struct sk_buff *skb, u32 info) 279 struct sock *sk; 296 static int raw_rcv_skb(struct sock *sk, struct sk_buff *skb) 311 int raw_rcv(struct sock *s [all...] |
H A D | ip_output.c | 72 #include <net/sock.h> 88 ip_fragment(struct net *net, struct sock *sk, struct sk_buff *skb, 90 int (*output)(struct net *, struct sock *, struct sk_buff *)); 100 int __ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) 123 int ip_local_out(struct net *net, struct sock *sk, struct sk_buff *skb) 149 int ip_build_and_send_pkt(struct sk_buff *skb, const struct sock *sk, 198 static int ip_finish_output2(struct net *net, struct sock *sk, struct sk_buff *skb) 247 static int ip_finish_output_gso(struct net *net, struct sock *sk, 295 static int __ip_finish_output(struct net *net, struct sock *sk, struct sk_buff *skb) 316 static int ip_finish_output(struct net *net, struct sock *s [all...] |
H A D | af_inet.c | 14 * Changes (see also sock.c) 23 * Alan Cox : Keep correct socket pointer on sock 109 #include <net/sock.h> 124 #include <trace/events/sock.h> 134 void inet_sock_destruct(struct sock *sk) 174 static int inet_autobind(struct sock *sk) 191 int __inet_listen_sk(struct sock *sk, int backlog) 230 int inet_listen(struct socket *sock, int backlog) argument 232 struct sock *sk = sock 252 inet_create(struct net *net, struct socket *sock, int protocol, int kern) argument 413 inet_release(struct socket *sock) argument 467 inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) argument 570 inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) argument 626 __inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags, int is_sendmsg) argument 744 inet_stream_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) argument 756 __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk) argument 774 inet_accept(struct socket *sock, struct socket *newsock, int flags, bool kern) argument 795 inet_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument 844 inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) argument 856 inet_splice_eof(struct socket *sock) argument 873 inet_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) argument 891 inet_shutdown(struct socket *sock, int how) argument 957 inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1035 inet_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 1688 struct socket *sock; local [all...] |
/linux-master/net/core/ |
H A D | skmsg.c | 8 #include <net/sock.h> 11 #include <trace/events/sock.h> 27 int sk_msg_alloc(struct sock *sk, struct sk_msg *msg, int len, 87 int sk_msg_clone(struct sock *sk, struct sk_msg *dst, struct sk_msg *src, 138 void sk_msg_return_zero(struct sock *sk, struct sk_msg *msg, int bytes) 162 void sk_msg_return(struct sock *sk, struct sk_msg *msg, int bytes) 177 static int sk_msg_free_elem(struct sock *sk, struct sk_msg *msg, u32 i, 193 static int __sk_msg_free(struct sock *sk, struct sk_msg *msg, u32 i, 211 int sk_msg_free_nocharge(struct sock *sk, struct sk_msg *msg) 217 int sk_msg_free(struct sock *s 1212 struct socket *sock = sk->sk_socket; local [all...] |
H A D | skbuff.c | 69 #include <net/sock.h> 1316 struct sock *sk = skb->sk; 1691 static struct ubuf_info *msg_zerocopy_alloc(struct sock *sk, size_t size) 1728 struct ubuf_info *msg_zerocopy_realloc(struct sock *sk, size_t size, 1802 struct sock *sk = skb->sk; 1862 struct sock *sk = skb_from_uarg(uarg_to_msgzc(uarg))->sk; 1872 int skb_zerocopy_iter_stream(struct sock *sk, struct sk_buff *skb, 1887 struct sock *save_sk = skb->sk; 2404 struct sock *sk = skb->sk; 3034 struct sock *s 3208 struct socket *sock = sk->sk_socket; local 3222 struct socket *sock = sk->sk_socket; local [all...] |
H A D | filter.c | 40 #include <net/sock.h> 118 * @sk: sock associated with &sk_buff 129 int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap) 154 struct sock *save_sk = skb->sk; 1210 void sk_filter_uncharge(struct sock *sk, struct sk_filter *fp) 1221 static bool __sk_filter_charge(struct sock *sk, struct sk_filter *fp) 1235 bool sk_filter_charge(struct sock *sk, struct sk_filter *fp) 1460 static int __sk_attach_prog(struct bpf_prog *prog, struct sock *sk) 1487 struct bpf_prog *__get_filter(struct sock_fprog *fprog, struct sock *sk) 1533 int sk_attach_filter(struct sock_fprog *fprog, struct sock *s 12082 bpf_sock_destroy(struct sock_common *sock) argument [all...] |
/linux-master/net/bridge/ |
H A D | br_forward.c | 33 int br_dev_queue_push_xmit(struct net *net, struct sock *sk, struct sk_buff *skb) 63 int br_forward_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
|
/linux-master/kernel/bpf/ |
H A D | verifier.c | 5828 pointer_desc = "sock "; 6361 struct sock *sk; 6365 struct sock *sk; 6392 struct sock *sk; 8836 /* It's not possible to get access to a locked struct sock in these 18901 * struct bpf_sock_ops -> struct sock
|
/linux-master/include/net/ |
H A D | gro.h | 122 typedef struct sk_buff *(*gro_receive_sk_t)(struct sock *, struct list_head *, 125 struct sock *sk, 416 struct udphdr *uh, struct sock *sk);
|
/linux-master/include/linux/ |
H A D | skmsg.h | 12 #include <net/sock.h> 51 struct sock *sk_redir; 52 struct sock *sk; 80 struct sock *sk; 81 struct sock *sk_redir; 98 void (*saved_unhash)(struct sock *sk); 99 void (*saved_destroy)(struct sock *sk); 100 void (*saved_close)(struct sock *sk, long timeout); 101 void (*saved_write_space)(struct sock *sk); 102 void (*saved_data_ready)(struct sock *s [all...] |
H A D | filter.h | 33 struct sock; 906 int sk_filter_trim_cap(struct sock *sk, struct sk_buff *skb, unsigned int cap); 907 static inline int sk_filter(struct sock *sk, struct sk_buff *skb) 941 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); 942 int sk_attach_bpf(u32 ufd, struct sock *sk); 943 int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk); 944 int sk_reuseport_attach_bpf(u32 ufd, struct sock *sk); 946 int sk_detach_filter(struct sock *sk); 947 int sk_get_filter(struct sock *sk, sockptr_t optval, unsigned int len); 949 bool sk_filter_charge(struct sock *s [all...] |
/linux-master/drivers/s390/net/ |
H A D | qeth_core_main.c | 36 #include <net/sock.h> 1335 struct sock *sk = skb->sk;
|
/linux-master/drivers/nvme/target/ |
H A D | tcp.c | 14 #include <net/sock.h> 22 #include <trace/events/sock.h> 150 struct socket *sock; member in struct:nvmet_tcp_queue 199 void (*data_ready)(struct sock *); 200 void (*state_change)(struct sock *); 201 void (*write_space)(struct sock *); 205 struct socket *sock; member in struct:nvmet_tcp_port 209 void (*data_ready)(struct sock *); 285 return queue->sock->sk->sk_incoming_cpu; 396 kernel_sock_shutdown(queue->sock, SHUT_RDW 1554 struct socket *sock = queue->sock; local 1688 struct socket *sock = queue->sock; local [all...] |
/linux-master/drivers/nvme/host/ |
H A D | tcp.c | 14 #include <net/sock.h> 22 #include <trace/events/sock.h> 67 static void nvme_tcp_reclassify_socket(struct socket *sock) argument 69 struct sock *sk = sock->sk; 92 static void nvme_tcp_reclassify_socket(struct socket *sock) { } argument 140 struct socket *sock; member in struct:nvme_tcp_queue 176 void (*state_change)(struct sock *); 177 void (*data_ready)(struct sock *); 178 void (*write_space)(struct sock *); 1254 struct socket *sock = queue->sock; local 1804 struct socket *sock = queue->sock; local [all...] |
/linux-master/drivers/net/vxlan/ |
H A D | vxlan_core.c | 86 if (inet_sk(vs->sock->sk)->inet_sport == port && 89 vs->sock->sk->sk_bound_dev_if == ifindex) 678 static struct vxlanhdr *vxlan_gro_prepare_receive(struct sock *sk, 728 static struct sk_buff *vxlan_gro_receive(struct sock *sk, 744 static struct sk_buff *vxlan_gpe_gro_receive(struct sock *sk, 770 static int vxlan_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff) 778 static int vxlan_gpe_gro_complete(struct sock *sk, struct sk_buff *skb, int nhoff) 1509 vn = net_generic(sock_net(vs->sock->sk), vxlan_net_id); 1512 udp_tunnel_notify_del_rx_port(vs->sock, 1539 udp_tunnel_sock_release(sock4->sock); 3498 struct socket *sock; local 3532 struct socket *sock; local [all...] |
/linux-master/net/sunrpc/ |
H A D | xprtsock.c | 46 #include <net/sock.h> 58 #include <trace/events/sock.h> 66 static void xs_set_srcport(struct sock_xprt *transport, struct socket *sock); 68 struct socket *sock); 230 static inline struct rpc_xprt *xprt_from_sock(struct sock *sk) 361 xs_sock_process_cmsg(struct socket *sock, struct msghdr *msg, argument 364 u8 content_type = tls_get_record_type(sock->sk, cmsg); 378 tls_alert_recv(sock->sk, msg, &level, &description); 390 xs_sock_recv_cmsg(struct socket *sock, struct msghdr *msg, int flags) argument 400 ret = sock_recvmsg(sock, ms 407 xs_sock_recvmsg(struct socket *sock, struct msghdr *msg, int flags, size_t seek) argument 417 xs_read_kvec(struct socket *sock, struct msghdr *msg, int flags, struct kvec *kvec, size_t count, size_t seek) argument 425 xs_read_bvec(struct socket *sock, struct msghdr *msg, int flags, struct bio_vec *bvec, unsigned long nr, size_t count, size_t seek) argument 434 xs_read_discard(struct socket *sock, struct msghdr *msg, int flags, size_t count) argument 462 xs_read_xdr_buf(struct socket *sock, struct msghdr *msg, int flags, struct xdr_buf *buf, size_t count, size_t seek, size_t *read) argument 1250 struct socket *sock = transport->sock; local 1707 xs_sock_getport(struct socket *sock) argument 1744 xs_set_srcport(struct sock_xprt *transport, struct socket *sock) argument 1761 struct sock_xprt *sock = container_of(xprt, struct sock_xprt, xprt); local 1772 struct sock_xprt *sock = container_of(xprt, struct sock_xprt, xprt); local 1799 xs_bind(struct sock_xprt *transport, struct socket *sock) argument 1867 xs_reclassify_socketu(struct socket *sock) argument 1875 xs_reclassify_socket4(struct socket *sock) argument 1883 xs_reclassify_socket6(struct socket *sock) argument 1891 xs_reclassify_socket(int family, struct socket *sock) argument 1909 xs_reclassify_socket(int family, struct socket *sock) argument 1923 struct socket *sock; local 1953 xs_local_finish_connecting(struct rpc_xprt *xprt, struct socket *sock) argument 1995 struct socket *sock; local 2158 xs_udp_finish_connecting(struct rpc_xprt *xprt, struct socket *sock) argument 2194 struct socket *sock; local 2232 struct socket *sock = transport->sock; local 2256 xs_tcp_set_socket_timeouts(struct rpc_xprt *xprt, struct socket *sock) argument 2330 xs_tcp_finish_connecting(struct rpc_xprt *xprt, struct socket *sock) argument 2397 struct socket *sock = transport->sock; local 2487 struct socket *sock = lower_transport->sock; local [all...] |