Home
last modified time | relevance | path

Searched refs:sock (Results 676 - 700 of 2666) sorted by relevance

1...<<21222324252627282930>>...107

/kernel/linux/linux-5.10/security/apparmor/
H A Dnet.c146 struct sock *sk) in aa_label_sk_perm()
164 int aa_sk_perm(const char *op, u32 request, struct sock *sk) in aa_sk_perm()
182 struct socket *sock) in aa_sock_file_perm()
185 AA_BUG(!sock); in aa_sock_file_perm()
186 AA_BUG(!sock->sk); in aa_sock_file_perm()
188 return aa_label_sk_perm(label, op, request, sock->sk); in aa_sock_file_perm()
214 struct common_audit_data *sa, struct sock *sk) in aa_secmark_perm()
247 u32 secid, struct sock *sk) in apparmor_secmark_check()
181 aa_sock_file_perm(struct aa_label *label, const char *op, u32 request, struct socket *sock) aa_sock_file_perm() argument
/kernel/linux/linux-5.10/net/ipv4/
H A Dtcp_vegas.c71 static void vegas_enable(struct sock *sk) in vegas_enable()
87 static inline void vegas_disable(struct sock *sk) in vegas_disable()
94 void tcp_vegas_init(struct sock *sk) in tcp_vegas_init()
111 void tcp_vegas_pkts_acked(struct sock *sk, const struct ack_sample *sample) in tcp_vegas_pkts_acked()
134 void tcp_vegas_state(struct sock *sk, u8 ca_state) in tcp_vegas_state()
152 void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event) in tcp_vegas_cwnd_event()
165 static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_vegas_cong_avoid()
290 size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr, in tcp_vegas_get_info()
H A Dtcp_dctcp.c75 static void dctcp_init(struct sock *sk) in dctcp_init()
102 static u32 dctcp_ssthresh(struct sock *sk) in dctcp_ssthresh()
111 static void dctcp_update_alpha(struct sock *sk, u32 flags) in dctcp_update_alpha()
144 static void dctcp_react_to_loss(struct sock *sk) in dctcp_react_to_loss()
153 static void dctcp_state(struct sock *sk, u8 new_state) in dctcp_state()
163 static void dctcp_cwnd_event(struct sock *sk, enum tcp_ca_event ev) in dctcp_cwnd_event()
181 static size_t dctcp_get_info(struct sock *sk, u32 ext, int *attr, in dctcp_get_info()
209 static u32 dctcp_cwnd_undo(struct sock *sk) in dctcp_cwnd_undo()
H A Draw_diag.c37 static struct sock *raw_lookup(struct net *net, struct sock *from, in raw_lookup()
41 struct sock *sk = NULL; in raw_lookup()
58 static struct sock *raw_sock_get(struct net *net, const struct inet_diag_req_v2 *r) in raw_sock_get()
61 struct sock *sk = NULL, *s; in raw_sock_get()
95 struct sock *sk; in raw_diag_dump_one()
130 static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, in sk_diag_dump()
149 struct sock *sk = NULL; in raw_diag_dump()
193 static void raw_diag_get_info(struct sock *sk, struct inet_diag_msg *r, in raw_diag_get_info()
205 struct sock *s in raw_diag_destroy()
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Datmdev.h13 #include <net/sock.h>
93 /* struct sock has to be the first member of atm_vcc */
94 struct sock sk;
125 static inline struct atm_vcc *atm_sk(struct sock *sk) in atm_sk()
130 static inline struct atm_vcc *ATM_SD(struct socket *sock) in ATM_SD() argument
132 return atm_sk(sock->sk); in ATM_SD()
135 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm()
137 return (struct sock *)vcc; in sk_atm()
232 void vcc_insert_socket(struct sock *sk);
239 * Because ATM skbs may not belong to a sock (an in atm_account_tx()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Datmdev.h13 #include <net/sock.h>
93 /* struct sock has to be the first member of atm_vcc */
94 struct sock sk;
125 static inline struct atm_vcc *atm_sk(struct sock *sk) in atm_sk()
130 static inline struct atm_vcc *ATM_SD(struct socket *sock) in ATM_SD() argument
132 return atm_sk(sock->sk); in ATM_SD()
135 static inline struct sock *sk_atm(struct atm_vcc *vcc) in sk_atm()
137 return (struct sock *)vcc; in sk_atm()
233 void vcc_insert_socket(struct sock *sk);
240 * Because ATM skbs may not belong to a sock (an in atm_account_tx()
[all...]
/kernel/linux/linux-6.6/tools/power/x86/intel-speed-select/
H A Dhfi-events.c246 struct nl_sock *sock; in hfi_main() local
256 sock = nl_socket_alloc(); in hfi_main()
257 if (!sock) { in hfi_main()
262 if (genl_connect(sock)) { in hfi_main()
267 drv.nl_handle = sock; in hfi_main()
281 if (nl_socket_add_membership(sock, mcast_id)) { in hfi_main()
292 err = nl_recvmsgs(sock, cb); in hfi_main()
300 nl_socket_free(sock); in hfi_main()
/kernel/linux/linux-6.6/net/ipv4/
H A Dtcp_vegas.c71 static void vegas_enable(struct sock *sk) in vegas_enable()
87 static inline void vegas_disable(struct sock *sk) in vegas_disable()
94 void tcp_vegas_init(struct sock *sk) in tcp_vegas_init()
111 void tcp_vegas_pkts_acked(struct sock *sk, const struct ack_sample *sample) in tcp_vegas_pkts_acked()
134 void tcp_vegas_state(struct sock *sk, u8 ca_state) in tcp_vegas_state()
152 void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event) in tcp_vegas_cwnd_event()
165 static void tcp_vegas_cong_avoid(struct sock *sk, u32 ack, u32 acked) in tcp_vegas_cong_avoid()
291 size_t tcp_vegas_get_info(struct sock *sk, u32 ext, int *attr, in tcp_vegas_get_info()
H A Draw_diag.c37 static bool raw_lookup(struct net *net, const struct sock *sk, in raw_lookup()
57 static struct sock *raw_sock_get(struct net *net, const struct inet_diag_req_v2 *r) in raw_sock_get()
61 struct sock *sk; in raw_sock_get()
94 struct sock *sk; in raw_diag_dump_one()
126 static int sk_diag_dump(struct sock *sk, struct sk_buff *skb, in sk_diag_dump()
146 struct sock *sk = NULL; in raw_diag_dump()
191 static void raw_diag_get_info(struct sock *sk, struct inet_diag_msg *r, in raw_diag_get_info()
203 struct sock *sk; in raw_diag_destroy()
/kernel/linux/linux-6.6/net/dccp/
H A Dtimer.c20 static void dccp_write_err(struct sock *sk) in dccp_write_err()
31 static int dccp_write_timeout(struct sock *sk) in dccp_write_timeout()
83 static void dccp_retransmit_timer(struct sock *sk) in dccp_retransmit_timer()
89 * sent, no need to retransmit, this sock is dead. in dccp_retransmit_timer()
128 struct sock *sk = &icsk->icsk_inet.sk; in dccp_write_timer()
163 struct sock *sk = from_timer(sk, t, sk_timer); in dccp_keepalive_timer()
174 struct sock *sk = &icsk->icsk_inet.sk; in dccp_delack_timer()
225 struct sock *sk = &dp->dccps_inet_connection.icsk_inet.sk; in dccp_write_xmitlet()
243 void dccp_init_xmit_timers(struct sock *sk) in dccp_init_xmit_timers()
H A Dproto.c25 #include <net/sock.h>
78 void dccp_set_state(struct sock *sk, const int state) in dccp_set_state()
118 static void dccp_finish_passive_close(struct sock *sk) in dccp_finish_passive_close()
136 void dccp_done(struct sock *sk) in dccp_done()
174 void dccp_destruct_common(struct sock *sk) in dccp_destruct_common()
183 static void dccp_sk_destruct(struct sock *sk) in dccp_sk_destruct()
189 int dccp_init_sock(struct sock *sk, const __u8 ctl_sock_initialized) in dccp_init_sock()
220 void dccp_destroy_sock(struct sock *sk) in dccp_destroy_sock()
256 int dccp_disconnect(struct sock *sk, int flags) in dccp_disconnect()
315 __poll_t dccp_poll(struct file *file, struct socket *sock, in dccp_poll() argument
920 inet_dccp_listen(struct socket *sock, int backlog) inet_dccp_listen() argument
[all...]
/kernel/linux/linux-6.6/net/netrom/
H A Dnr_subr.c20 #include <net/sock.h>
31 void nr_clear_queues(struct sock *sk) in nr_clear_queues()
46 void nr_frames_acked(struct sock *sk, unsigned short nr) in nr_frames_acked()
68 void nr_requeue_frames(struct sock *sk) in nr_requeue_frames()
85 int nr_validate_nr(struct sock *sk, unsigned short nr) in nr_validate_nr()
101 int nr_in_rx_window(struct sock *sk, unsigned short ns) in nr_in_rx_window()
119 void nr_write_internal(struct sock *sk, int frametype) in nr_write_internal()
261 void nr_disconnect(struct sock *sk, int reason) in nr_disconnect()
/third_party/mesa3d/src/vulkan/overlay-layer/
H A Dmesa-overlay-control.py22 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
24 sock.connect(path)
29 self.sock = sock
33 epoll.register(sock, EPOLLIN | EPOLLPRI | EPOLLERR)
47 if fd != self.sock.fileno():
55 msg = self.sock.recv(4096)
66 self.sock.send(msg)
/kernel/linux/linux-6.6/net/tls/
H A Dtls_main.c130 void update_sk_prot(struct sock *sk, struct tls_context *ctx) in update_sk_prot()
140 int wait_on_pending_writer(struct sock *sk, long *timeo) in wait_on_pending_writer()
169 int tls_push_sg(struct sock *sk, in tls_push_sg()
227 static int tls_handle_open_record(struct sock *sk, int flags) in tls_handle_open_record()
237 int tls_process_cmsg(struct sock *sk, struct msghdr *msg, in tls_process_cmsg()
272 int tls_push_partial_record(struct sock *sk, struct tls_context *ctx, in tls_push_partial_record()
285 void tls_free_partial_record(struct sock *sk, struct tls_context *ctx) in tls_free_partial_record()
296 static void tls_write_space(struct sock *sk) in tls_write_space()
327 void tls_ctx_free(struct sock *sk, struct tls_context *ctx) in tls_ctx_free()
342 static void tls_sk_proto_cleanup(struct sock *s
405 tls_sk_poll(struct file *file, struct socket *sock, struct poll_table_struct *wait) tls_sk_poll() argument
[all...]
/third_party/python/Lib/asyncio/
H A Dunix_events.py231 ssl=None, sock=None,
251 if sock is not None:
253 'path and sock can not be specified at the same time')
256 sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM, 0)
258 sock.setblocking(False)
259 await self.sock_connect(sock, path)
261 sock.close()
265 if sock is None:
266 raise ValueError('no path and sock were specified')
267 if (sock
[all...]
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/
H A Dtcp_nip_input.c139 void tcp_nip_fin(struct sock *sk) in tcp_nip_fin()
189 static void tcp_nip_drop(struct sock *sk, struct sk_buff *skb) in tcp_nip_drop()
234 sock_owned_by_me((struct sock *)tp); in tcp_nip_rcv_nxt_update()
251 static bool tcp_nip_try_coalesce(struct sock *sk, in tcp_nip_try_coalesce()
285 static bool tcp_nip_ooo_try_coalesce(struct sock *sk, in tcp_nip_ooo_try_coalesce()
309 static void tcp_nip_ofo_queue(struct sock *sk) in tcp_nip_ofo_queue()
361 static void tcp_nip_data_queue_ofo(struct sock *sk, struct sk_buff *skb) in tcp_nip_data_queue_ofo()
534 static void tcp_nip_data_queue(struct sock *sk, struct sk_buff *skb) in tcp_nip_data_queue()
628 static inline void tcp_nip_push_pending_frames(struct sock *sk) in tcp_nip_push_pending_frames()
638 static void tcp_nip_new_space(struct sock *s
[all...]
/kernel/linux/linux-5.10/net/netfilter/ipvs/
H A Dip_vs_sync.c57 #include <net/sock.h>
200 struct socket *sock; member
1276 static void set_sock_size(struct sock *sk, int mode, int val) in set_sock_size()
1278 /* setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &val, sizeof(val)); */ in set_sock_size()
1279 /* setsockopt(sock, SOL_SOCKET, SO_RCVBUF, &val, sizeof(val)); */ in set_sock_size()
1298 static void set_mcast_loop(struct sock *sk, u_char loop) in set_mcast_loop()
1302 /* setsockopt(sock, SOL_IP, IP_MULTICAST_LOOP, &loop, sizeof(loop)); */ in set_mcast_loop()
1319 static void set_mcast_ttl(struct sock *sk, u_char ttl) in set_mcast_ttl()
1323 /* setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)); */ in set_mcast_ttl()
1338 static void set_mcast_pmtudisc(struct sock *s
1426 bind_mcastif_addr(struct socket *sock, struct net_device *dev) bind_mcastif_addr() argument
1475 struct socket *sock; make_send_sock() local
1532 struct socket *sock; make_receive_sock() local
1579 ip_vs_send_async(struct socket *sock, const char *buffer, const size_t length) ip_vs_send_async() argument
1596 ip_vs_send_sync_msg(struct socket *sock, struct ip_vs_sync_mesg *msg) ip_vs_send_sync_msg() argument
1611 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) ip_vs_receive() argument
[all...]
/kernel/linux/linux-6.6/net/netfilter/ipvs/
H A Dip_vs_sync.c57 #include <net/sock.h>
200 struct socket *sock; member
1276 static void set_sock_size(struct sock *sk, int mode, int val) in set_sock_size()
1278 /* setsockopt(sock, SOL_SOCKET, SO_SNDBUF, &val, sizeof(val)); */ in set_sock_size()
1279 /* setsockopt(sock, SOL_SOCKET, SO_RCVBUF, &val, sizeof(val)); */ in set_sock_size()
1298 static void set_mcast_loop(struct sock *sk, u_char loop) in set_mcast_loop()
1300 /* setsockopt(sock, SOL_IP, IP_MULTICAST_LOOP, &loop, sizeof(loop)); */ in set_mcast_loop()
1317 static void set_mcast_ttl(struct sock *sk, u_char ttl) in set_mcast_ttl()
1321 /* setsockopt(sock, SOL_IP, IP_MULTICAST_TTL, &ttl, sizeof(ttl)); */ in set_mcast_ttl()
1336 static void set_mcast_pmtudisc(struct sock *s
1424 bind_mcastif_addr(struct socket *sock, struct net_device *dev) bind_mcastif_addr() argument
1473 struct socket *sock; make_send_sock() local
1530 struct socket *sock; make_receive_sock() local
1577 ip_vs_send_async(struct socket *sock, const char *buffer, const size_t length) ip_vs_send_async() argument
1592 ip_vs_send_sync_msg(struct socket *sock, struct ip_vs_sync_mesg *msg) ip_vs_send_sync_msg() argument
1607 ip_vs_receive(struct socket *sock, char *buffer, const size_t buflen) ip_vs_receive() argument
[all...]
/kernel/linux/linux-5.10/include/net/netns/
H A Ddccp.h5 struct sock;
8 struct sock *v4_ctl_sk;
9 struct sock *v6_ctl_sk;
/kernel/linux/linux-5.10/drivers/pcmcia/
H A Dpxa2xx_base.c116 static int pxa2xx_pcmcia_set_mcmem( int sock, int speed, int clock ) in pxa2xx_pcmcia_set_mcmem() argument
127 __raw_writel(val, MCMEM(sock)); in pxa2xx_pcmcia_set_mcmem()
132 static int pxa2xx_pcmcia_set_mcio( int sock, int speed, int clock ) in pxa2xx_pcmcia_set_mcio() argument
143 __raw_writel(val, MCIO(sock)); in pxa2xx_pcmcia_set_mcio()
148 static int pxa2xx_pcmcia_set_mcatt( int sock, int speed, int clock ) in pxa2xx_pcmcia_set_mcatt() argument
159 __raw_writel(val, MCATT(sock)); in pxa2xx_pcmcia_set_mcatt()
167 int sock = skt->nr; in pxa2xx_pcmcia_set_mcxx() local
171 pxa2xx_pcmcia_set_mcmem(sock, timing.mem, clk); in pxa2xx_pcmcia_set_mcxx()
172 pxa2xx_pcmcia_set_mcatt(sock, timing.attr, clk); in pxa2xx_pcmcia_set_mcxx()
173 pxa2xx_pcmcia_set_mcio(sock, timin in pxa2xx_pcmcia_set_mcxx()
[all...]
/kernel/linux/linux-5.10/kernel/bpf/
H A Dreuseport_array.c12 struct sock __rcu *ptrs[];
21 void bpf_sk_reuseport_detach(struct sock *sk) in bpf_sk_reuseport_detach()
28 struct sock __rcu **socks; in bpf_sk_reuseport_detach()
68 struct sock *sk; in reuseport_array_delete_elem()
99 struct sock *sk; in reuseport_array_free()
162 array_size += (u64)attr->max_entries * sizeof(struct sock *); in reuseport_array_alloc()
185 struct sock *sk; in bpf_fd_reuseport_array_lookup_elem()
206 const struct sock *nsk, in reuseport_array_update_check()
207 const struct sock *osk, in reuseport_array_update_check()
253 struct sock *free_os in bpf_fd_reuseport_array_update_elem()
[all...]
/kernel/linux/linux-5.10/net/core/
H A Dsock_diag.c9 #include <net/sock.h>
25 u64 __sock_gen_cookie(struct sock *sk) in __sock_gen_cookie()
37 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) in sock_diag_check_cookie()
52 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) in sock_diag_save_cookie()
61 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) in sock_diag_put_meminfo()
71 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, in sock_diag_put_filterinfo()
110 struct sock *sk;
125 struct sock *sk = bsk->sk; in sock_diag_broadcast_destroy_work()
153 void sock_diag_broadcast_destroy(struct sock *sk) in sock_diag_broadcast_destroy()
297 int sock_diag_destroy(struct sock *s
[all...]
/kernel/linux/linux-5.10/net/mptcp/
H A Dtoken.c30 #include <net/sock.h>
72 struct sock *sk; in __token_lookup_msk()
152 int mptcp_token_new_connect(struct sock *sk) in mptcp_token_new_connect()
176 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_new_connect()
183 * mptcp_token_accept - replace a req sk with full sock in token hash
203 __sk_nulls_add_node_rcu((struct sock *)msk, &bucket->msk_chain); in mptcp_token_accept()
212 struct sock *sk; in mptcp_token_exists()
234 * mptcp_token_get_sock - retrieve mptcp connection sock using its token
248 struct sock *sk; in mptcp_token_get_sock()
303 struct sock *s in mptcp_token_iter_next()
[all...]
/kernel/linux/linux-6.6/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...]
/kernel/linux/linux-6.6/net/core/
H A Dsock_diag.c10 #include <net/sock.h>
26 u64 __sock_gen_cookie(struct sock *sk) in __sock_gen_cookie()
41 int sock_diag_check_cookie(struct sock *sk, const __u32 *cookie) in sock_diag_check_cookie()
56 void sock_diag_save_cookie(struct sock *sk, __u32 *cookie) in sock_diag_save_cookie()
65 int sock_diag_put_meminfo(struct sock *sk, struct sk_buff *skb, int attrtype) in sock_diag_put_meminfo()
75 int sock_diag_put_filterinfo(bool may_report_filterinfo, struct sock *sk, in sock_diag_put_filterinfo()
114 struct sock *sk;
129 struct sock *sk = bsk->sk; in sock_diag_broadcast_destroy_work()
157 void sock_diag_broadcast_destroy(struct sock *sk) in sock_diag_broadcast_destroy()
301 int sock_diag_destroy(struct sock *s
[all...]

Completed in 19 milliseconds

1...<<21222324252627282930>>...107