Home
last modified time | relevance | path

Searched refs:sk_socket (Results 1 – 25 of 83) sorted by relevance

1234

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
Dbpf_iter_udp4.c13 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local
17 if (!sk_socket) in sock_i_ino()
20 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
Dbpf_iter_udp6.c20 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local
24 if (!sk_socket) in sock_i_ino()
27 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
Dbpf_iter_tcp4.c52 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local
56 if (!sk_socket) in sock_i_ino()
59 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
Dbpf_iter_tcp6.c52 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local
56 if (!sk_socket) in sock_i_ino()
59 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
Dbpf_iter_netlink.c50 sk = s->sk_socket; in dump_netlink()
/kernel/linux/linux-5.10/samples/connector/
Dcn_test.c167 if (nls && nls->sk_socket) in cn_test_init()
168 sock_release(nls->sk_socket); in cn_test_init()
179 if (nls && nls->sk_socket) in cn_test_fini()
180 sock_release(nls->sk_socket); in cn_test_fini()
/kernel/linux/linux-5.10/net/core/
Dstream.c32 struct socket *sock = sk->sk_socket; in sk_stream_write_space()
143 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in sk_stream_wait_memory()
175 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in sk_stream_wait_memory()
Dsock.c160 return file_ns_capable(sk->sk_socket->file, user_ns, cap) && in sk_ns_capable()
2172 uid = sk->sk_socket ? SOCK_INODE(sk->sk_socket)->i_uid : GLOBAL_ROOT_UID; in sock_i_uid()
2183 ino = sk->sk_socket ? SOCK_INODE(sk->sk_socket)->i_ino : 0; in sock_i_ino()
2299 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in sock_wait_for_wmem()
2340 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in sock_alloc_send_pskb()
2942 if (sk->sk_socket && sk->sk_socket->file) in sk_send_sigurg()
2943 if (send_sigurg(&sk->sk_socket->file->f_owner)) in sk_send_sigurg()
/kernel/linux/linux-5.10/net/rds/
Dtcp_send.c102 set_bit(SOCK_NOSPACE, &tc->t_sock->sk->sk_socket->flags); in rds_tcp_xmit()
223 if (sk->sk_socket) in rds_tcp_write_space()
224 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in rds_tcp_write_space()
/kernel/linux/linux-5.10/net/netfilter/
Dnf_log_common.c139 if (sk->sk_socket && sk->sk_socket->file) { in nf_log_dump_sk_uid_gid()
140 const struct cred *cred = sk->sk_socket->file->f_cred; in nf_log_dump_sk_uid_gid()
Dxt_owner.c70 if (!sk || !sk->sk_socket || !net_eq(net, sock_net(sk))) in owner_mt()
79 filp = sk->sk_socket->file; in owner_mt()
/kernel/linux/linux-5.10/net/sched/
Dcls_flow.c206 if (sk && sk->sk_socket && sk->sk_socket->file) { in flow_get_skuid()
207 kuid_t skuid = sk->sk_socket->file->f_cred->fsuid; in flow_get_skuid()
218 if (sk && sk->sk_socket && sk->sk_socket->file) { in flow_get_skgid()
219 kgid_t skgid = sk->sk_socket->file->f_cred->fsgid; in flow_get_skgid()
/kernel/linux/linux-5.10/net/x25/
Dx25_proc.c108 s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); in x25_seq_socket_show()
/kernel/linux/linux-5.10/net/smc/
Dsmc_tx.c42 struct socket *sock = sk->sk_socket; in smc_tx_write_space()
66 if (smc->sk.sk_socket && in smc_tx_sndbuf_nonfull()
67 test_bit(SOCK_NOSPACE, &smc->sk.sk_socket->flags)) in smc_tx_sndbuf_nonfull()
100 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in smc_tx_wait()
111 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in smc_tx_wait()
/kernel/linux/linux-5.10/net/decnet/
Ddn_nsp_in.c434 if (sk->sk_socket->state != SS_UNCONNECTED) in dn_nsp_disc_init()
435 sk->sk_socket->state = SS_DISCONNECTING; in dn_nsp_disc_init()
492 if (sk->sk_socket->state != SS_UNCONNECTED) in dn_nsp_disc_conf()
493 sk->sk_socket->state = SS_DISCONNECTING; in dn_nsp_disc_conf()
Daf_decnet.c589 if (sk->sk_socket) in dn_destroy_timer()
607 if (sk->sk_socket) { in dn_destroy_sock()
608 if (sk->sk_socket->state != SS_UNCONNECTED) in dn_destroy_sock()
609 sk->sk_socket->state = SS_DISCONNECTING; in dn_destroy_sock()
850 sk->sk_socket->state = SS_CONNECTED; in dn_confirm_accept()
852 sk->sk_socket->state = SS_UNCONNECTED; in dn_confirm_accept()
891 sk->sk_socket->state = SS_CONNECTED; in dn_wait_run()
893 sk->sk_socket->state = SS_UNCONNECTED; in dn_wait_run()
900 struct socket *sock = sk->sk_socket; in __dn_connect()
935 err = dn_auto_bind(sk->sk_socket); in __dn_connect()
/kernel/linux/linux-5.10/include/net/
Dinet_common.h63 sock_release(sk->sk_socket); in inet_ctl_sock_destroy()
/kernel/linux/linux-5.10/net/llc/
Dllc_conn.c105 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process()
140 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process()
143 sk->sk_socket->state = SS_CONNECTED; in llc_conn_state_process()
152 sk->sk_socket->state = SS_UNCONNECTED; in llc_conn_state_process()
/kernel/linux/linux-5.10/net/caif/
Dcaif_socket.c680 if (cf_sk->sk.sk_socket->state != SS_UNCONNECTED) in setsockopt()
837 cf_sk->sk.sk_socket->state = SS_UNCONNECTED; in caif_connect()
927 cf_sk->sk.sk_socket->state = SS_DISCONNECTING; in caif_release()
1017 caif_assert(!sk->sk_socket); in caif_sock_destructor()
1093 cf_sk->sk.sk_socket->state = SS_UNCONNECTED; in caif_create()
/kernel/linux/linux-5.10/net/xfrm/
Despintcp.c473 sk->sk_socket->ops = &espintcp_ops; in espintcp_init_sk()
477 build_protos(&espintcp6_prot, &espintcp6_ops, sk->sk_prot, sk->sk_socket->ops); in espintcp_init_sk()
481 sk->sk_socket->ops = &espintcp6_ops; in espintcp_init_sk()
/kernel/linux/linux-5.10/net/kcm/
Dkcmsock.c550 fput(psock->sk->sk_socket->file); in unreserve_psock()
650 ret = kernel_sendpage(psock->sk->sk_socket, in kcm_write_msgs()
744 if (likely(sk->sk_socket) && in kcm_tx_work()
745 test_bit(SOCK_NOSPACE, &sk->sk_socket->flags)) { in kcm_tx_work()
746 clear_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in kcm_tx_work()
822 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in kcm_sendpage()
932 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in kcm_sendmsg()
1553 fput(csk->sk_socket->file); in kcm_unattach()
/kernel/linux/linux-5.10/net/strparser/
Dstrparser.c76 struct socket *sock = strp->sk->sk_socket; in strp_peek_len()
347 struct socket *sock = strp->sk->sk_socket; in strp_read_sock()
/kernel/linux/linux-5.10/net/mptcp/
Dsubflow.c476 WARN_ON_ONCE(sk->sk_socket); in mptcp_sock_destruct()
1182 if (unlikely(!sk->sk_socket)) in mptcp_subflow_create_socket()
1214 SOCK_INODE(sf)->i_ino = SOCK_INODE(sk->sk_socket)->i_ino; in mptcp_subflow_create_socket()
1215 SOCK_INODE(sf)->i_uid = SOCK_INODE(sk->sk_socket)->i_uid; in mptcp_subflow_create_socket()
1216 SOCK_INODE(sf)->i_gid = SOCK_INODE(sk->sk_socket)->i_gid; in mptcp_subflow_create_socket()
Dprotocol.c58 struct socket *sock = sk->sk_socket; in mptcp_is_tcpsk()
110 RCU_INIT_POINTER(msk->first->sk_wq, &sk->sk_socket->wq); in __mptcp_socket_create()
1056 struct socket *sock = READ_ONCE(ssk->sk_socket); in mptcp_nospace()
1689 struct socket *sock = READ_ONCE(ssk->sk_socket); in __mptcp_close_ssk()
1693 if (sock && sock != sk->sk_socket) { in __mptcp_close_ssk()
2228 return sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, optval, optlen); in mptcp_setsockopt_sol_socket()
2494 parent_sock = READ_ONCE(parent->sk_socket); in mptcp_finish_join()
2495 if (parent_sock && !sk->sk_socket) in mptcp_finish_join()
2681 if (!ssk->sk_socket) in mptcp_stream_accept()
/kernel/linux/linux-5.10/net/unix/
Dgarbage.c242 total_refs = file_count(u->sk.sk_socket->file); in unix_gc()

1234