Searched refs:sock (Results 351 - 375 of 1088) sorted by relevance

<<11121314151617181920>>

/linux-master/net/mptcp/
H A Dmptcp_diag.c15 static int sk_diag_dump(struct sock *sk, struct sk_buff *skb,
35 struct sock *sk;
43 sk = (struct sock *)msk;
91 struct sock *sk;
169 struct sock *sk = (struct sock *)msk;
199 static void mptcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
209 struct sock *lsk = READ_ONCE(msk->first);
/linux-master/net/ipv4/
H A Dtcp_dctcp.c89 __bpf_kfunc static void dctcp_init(struct sock *sk)
118 __bpf_kfunc static u32 dctcp_ssthresh(struct sock *sk)
127 __bpf_kfunc static void dctcp_update_alpha(struct sock *sk, u32 flags)
174 static void dctcp_react_to_loss(struct sock *sk)
183 __bpf_kfunc static void dctcp_state(struct sock *sk, u8 new_state)
193 __bpf_kfunc static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev)
215 static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr,
243 __bpf_kfunc static u32 dctcp_cwnd_undo(struct sock *sk)
H A Dtcp_ulp.c103 void tcp_update_ulp(struct sock *sk, struct proto *proto,
104 void (*write_space)(struct sock *sk))
112 void tcp_cleanup_ulp(struct sock *sk)
130 static int __tcp_set_ulp(struct sock *sk, const struct tcp_ulp_ops *ulp_ops)
157 int tcp_set_ulp(struct sock *sk, const char *name)
H A Dxfrm4_input.c23 static int xfrm4_rcv_encap_finish2(struct net *net, struct sock *sk,
29 static inline int xfrm4_rcv_encap_finish(struct net *net, struct sock *sk,
81 static int __xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb, bool pull)
161 int xfrm4_udp_encap_rcv(struct sock *sk, struct sk_buff *skb)
179 struct sk_buff *xfrm4_gro_udp_encap_rcv(struct sock *sk, struct list_head *head,
/linux-master/net/tls/
H A Dtls_main.c131 void update_sk_prot(struct sock *sk, struct tls_context *ctx)
141 int wait_on_pending_writer(struct sock *sk, long *timeo)
170 int tls_push_sg(struct sock *sk,
228 static int tls_handle_open_record(struct sock *sk, int flags)
238 int tls_process_cmsg(struct sock *sk, struct msghdr *msg,
273 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx,
286 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx)
297 static void tls_write_space(struct sock *sk)
328 void tls_ctx_free(struct sock *sk, struct tls_context *ctx)
343 static void tls_sk_proto_cleanup(struct sock *s
404 tls_sk_poll(struct file *file, struct socket *sock, struct poll_table_struct *wait) argument
[all...]
/linux-master/drivers/nvme/target/
H A Dtcp.c14 #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/net/core/
H A Dsock_map.c19 struct sock **sks;
58 sizeof(struct sock *),
126 static void sock_map_sk_acquire(struct sock *sk)
133 static void sock_map_sk_release(struct sock *sk)
151 static void sock_map_del_link(struct sock *sk,
187 static void sock_map_unref(struct sock *sk, void *link_raw)
197 static int sock_map_init_proto(struct sock *sk, struct sk_psock *psock)
205 static struct sk_psock *sock_map_psock_get_checked(struct sock *sk)
225 static int sock_map_link(struct bpf_map *map, struct sock *sk)
355 struct sock **ps
562 struct socket *sock; local
[all...]
H A Dskmsg.c8 #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 Dsock_diag.c10 #include <net/sock.h>
27 u64 __sock_gen_cookie(struct sock *sk)
42 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie)
57 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie)
66 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype)
76 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk,
115 struct sock *sk;
148 struct sock *sk = bsk->sk;
176 void sock_diag_broadcast_destroy(struct sock *sk)
317 int sock_diag_destroy(struct sock *s
[all...]
/linux-master/samples/bpf/
H A Dfds_example.c114 int fd, sock, ret; local
130 sock = open_raw_sock("lo");
131 assert(sock > 0);
133 ret = setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, &fd, sizeof(fd));
134 printf("bpf: sock:%d <- fd:%d attached ret:(%d,%s)\n", sock, fd,
/linux-master/net/ipv6/netfilter/
H A Dnf_tproxy_ipv6.c38 struct sock *
43 struct sock *sk)
57 struct sock *sk2;
75 struct sock *
84 struct sock *sk;
144 pr_debug("tproxy socket lookup: proto %u %pI6:%u -> %pI6:%u, lookup type: %d, sock %p\n",
/linux-master/net/llc/
H A Dllc_if.c23 #include <net/sock.h>
44 int llc_build_and_send_pkt(struct sock *sk, struct sk_buff *skb)
83 int llc_establish_connection(struct sock *sk, const u8 *lmac, u8 *dmac, u8 dsap)
89 struct sock *existing;
129 int llc_send_disc(struct sock *sk)
/linux-master/net/ipv6/
H A Dxfrm6_output.c22 struct sock *sk = skb->sk;
34 struct sock *sk = skb->sk;
43 static int __xfrm6_output_finish(struct net *net, struct sock *sk, struct sk_buff *skb)
61 static int __xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
106 int xfrm6_output(struct net *net, struct sock *sk, struct sk_buff *skb)
H A Daf_inet6.c106 static struct ipv6_pinfo *inet6_sk_generic(struct sock *sk)
113 void inet6_sock_destruct(struct sock *sk)
120 static int inet6_create(struct net *net, struct socket *sock, int protocol, argument
125 struct sock *sk;
139 list_for_each_entry_rcu(answer, &inetsw6[sock->type], list) {
167 PF_INET6, protocol, sock->type);
181 if (sock->type == SOCK_RAW && !kern &&
185 sock->ops = answer->ops;
197 sock_init_data(sock, sk);
209 if (SOCK_RAW == sock
470 inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) argument
476 inet6_release(struct socket *sock) argument
523 inet6_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
565 inet6_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
633 inet6_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
651 inet6_sendmsg(struct socket *sock, struct msghdr *msg, size_t size) argument
667 inet6_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) argument
[all...]
/linux-master/net/dccp/
H A Doutput.c16 #include <net/sock.h>
22 static inline void dccp_event_ack_sent(struct sock *sk)
28 static struct sk_buff *dccp_skb_entail(struct sock *sk, struct sk_buff *skb)
42 static int dccp_transmit_skb(struct sock *sk, struct sk_buff *skb)
161 unsigned int dccp_sync_mss(struct sock *sk, u32 pmtu)
197 void dccp_write_space(struct sock *sk)
219 static int dccp_wait_for_ccid(struct sock *sk, unsigned long delay)
245 static void dccp_xmit_packet(struct sock *sk)
311 void dccp_flush_write_queue(struct sock *sk, long *time_budget)
350 void dccp_write_xmit(struct sock *s
[all...]
/linux-master/net/l2tp/
H A Dl2tp_ip6.c17 #include <net/sock.h>
46 static inline struct l2tp_ip6_sock *l2tp_ip6_sk(const struct sock *sk)
51 static struct sock *__l2tp_ip6_bind_lookup(const struct net *net,
56 struct sock *sk;
126 struct sock *sk;
209 static int l2tp_ip6_hash(struct sock *sk)
219 static void l2tp_ip6_unhash(struct sock *sk)
228 static int l2tp_ip6_open(struct sock *sk)
237 static void l2tp_ip6_close(struct sock *sk, long timeout)
247 static void l2tp_ip6_destroy_sock(struct sock *s
417 l2tp_ip6_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
[all...]
H A Dl2tp_ip.c17 #include <net/sock.h>
40 static inline struct l2tp_ip_sock *l2tp_ip_sk(const struct sock *sk)
45 static struct sock *__l2tp_ip_bind_lookup(const struct net *net, __be32 laddr,
48 struct sock *sk;
116 struct sock *sk;
199 static int l2tp_ip_hash(struct sock *sk)
209 static void l2tp_ip_unhash(struct sock *sk)
218 static int l2tp_ip_open(struct sock *sk)
227 static void l2tp_ip_close(struct sock *sk, long timeout)
236 static void l2tp_ip_destroy_sock(struct sock *s
351 l2tp_ip_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
[all...]
/linux-master/drivers/net/ppp/
H A Dpppoe.c79 #include <net/sock.h>
87 static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb);
282 struct sock *sk;
296 * sock lock while doing any unbinding, we need to
298 * the sock so it doesn't disappear as we're jumping
365 static int pppoe_rcv_core(struct sock *sk, struct sk_buff *skb)
463 struct sock *sk = sk_pppox(po);
533 * Initialize a new struct sock.
536 static int pppoe_create(struct net *net, struct socket *sock, int kern) argument
538 struct sock *s
561 pppoe_release(struct socket *sock) argument
609 pppoe_connect(struct socket *sock, struct sockaddr *uservaddr, int sockaddr_len, int flags) argument
720 pppoe_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
736 pppoe_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
836 pppoe_sendmsg(struct socket *sock, struct msghdr *m, size_t total_len) argument
1003 pppoe_recvmsg(struct socket *sock, struct msghdr *m, size_t total_len, int flags) argument
[all...]
/linux-master/drivers/net/
H A Dbareudp.c56 struct socket __rcu *sock; member in struct:bareudp_dev
61 static int bareudp_udp_encap_recv(struct sock *sk, struct sk_buff *skb)
191 static int bareudp_err_lookup(struct sock *sk, struct sk_buff *skb)
218 struct socket *sock; local
230 err = udp_sock_create(net, &udp_conf, &sock);
234 udp_allow_gso(sock->sk);
235 return sock;
242 struct socket *sock; local
244 sock = bareudp_create_sock(bareudp->net, port);
245 if (IS_ERR(sock))
272 struct socket *sock; local
295 struct socket *sock = rcu_dereference(bareudp->sock); local
362 struct socket *sock = rcu_dereference(bareudp->sock); local
507 struct socket *sock = rcu_dereference(bareudp->sock); local
[all...]
/linux-master/net/appletalk/
H A Dddp.c57 #include <net/sock.h>
76 static inline void __atalk_insert_socket(struct sock *sk)
81 static inline void atalk_remove_socket(struct sock *sk)
88 static struct sock *atalk_search_socket(struct sockaddr_at *to,
91 struct sock *def_socket = NULL;
92 struct sock *s;
148 static struct sock *atalk_find_or_insert_socket(struct sock *sk,
151 struct sock *s;
172 struct sock *s
1032 atalk_create(struct net *net, struct socket *sock, int protocol, int kern) argument
1067 atalk_release(struct socket *sock) argument
1151 atalk_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) argument
1206 atalk_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) argument
1261 atalk_getname(struct socket *sock, struct sockaddr *uaddr, int peer) argument
1405 struct sock *sock; local
1546 atalk_sendmsg(struct socket *sock, struct msghdr *msg, size_t len) argument
1723 atalk_recvmsg(struct socket *sock, struct msghdr *msg, size_t size, int flags) argument
1774 atalk_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
1858 atalk_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument
[all...]
/linux-master/net/sctp/
H A Dsocket.c62 #include <trace/events/sock.h>
66 #include <net/sock.h>
73 static bool sctp_writeable(const struct sock *sk);
77 static int sctp_wait_for_packet(struct sock *sk, int *err, long *timeo_p);
79 static int sctp_wait_for_accept(struct sock *sk, long timeo);
80 static void sctp_wait_for_close(struct sock *sk, long timeo);
81 static void sctp_destruct_sock(struct sock *sk);
84 static int sctp_bindx_add(struct sock *, struct sockaddr *, int);
85 static int sctp_bindx_rem(struct sock *, struct sockaddr *, int);
86 static int sctp_send_asconf_add_ip(struct sock *, struc
4825 sctp_inet_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) argument
5628 struct socket *sock; local
8582 sctp_inet_listen(struct socket *sock, int backlog) argument
8644 sctp_poll(struct file *file, struct socket *sock, poll_table *wait) argument
[all...]
/linux-master/include/trace/events/
H A Dhandshake.h94 const struct sock *sk
116 const struct sock *sk \
124 const struct sock *sk,
149 const struct sock *sk, \
158 const struct sock *sk,
183 const struct sock *sk, \
190 const struct sock *sk,
223 const struct sock *sk, \
246 const struct sock *sk,
283 const struct sock *s
[all...]
H A Dsock.h3 #define TRACE_SYSTEM sock
8 #include <net/sock.h>
74 TP_PROTO(struct sock *sk, struct sk_buff *skb),
96 TP_PROTO(struct sock *sk, struct proto *prot, long allocated, int kind),
143 TP_PROTO(const struct sock *sk, const int oldstate, const int newstate),
196 TP_PROTO(const struct sock *sk),
243 TP_PROTO(const struct sock *sk),
266 * sock send/recv msg length
270 TP_PROTO(struct sock *sk, int ret, int flags),
300 TP_PROTO(struct sock *s
[all...]
/linux-master/net/sunrpc/
H A Dsvcsock.c41 #include <net/sock.h>
63 #include <trace/events/sock.h>
93 static void svc_reclassify_socket(struct socket *sock) argument
95 struct sock *sk = sock->sk;
120 static void svc_reclassify_socket(struct socket *sock) argument
198 const struct sock *sk = svsk->sk_sk;
231 svc_tcp_sock_process_cmsg(struct socket *sock, struct msghdr *msg, argument
234 u8 content_type = tls_get_record_type(sock->sk, cmsg);
248 tls_alert_recv(sock
266 struct socket *sock = svsk->sk_sock; local
343 struct socket *sock = svsk->sk_sock; local
886 struct socket *sock = svsk->sk_sock; local
1386 svc_setup_socket(struct svc_serv *serv, struct socket *sock, int flags) argument
1504 struct socket *sock; local
1613 struct socket *sock = svsk->sk_sock; local
[all...]
/linux-master/net/bluetooth/bnep/
H A Dcore.c73 struct socket *sock = s->sock; local
76 return kernel_sendmsg(sock, &s->msg, &iv, 1, len);
423 struct socket *sock = s->sock; local
466 len = kernel_sendmsg(sock, &s->msg, iv, il, len);
483 struct sock *sk = s->sock->sk;
528 s->sock->sk->sk_err = EUNATCH;
530 wake_up_interruptible(sk_sleep(s->sock
557 bnep_add_connection(struct bnep_connadd_req *req, struct socket *sock) argument
[all...]

Completed in 245 milliseconds

<<11121314151617181920>>