/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_udp4.c | 13 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()
|
D | bpf_iter_udp6.c | 20 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()
|
D | bpf_iter_tcp4.c | 52 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()
|
D | bpf_iter_tcp6.c | 52 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()
|
D | bpf_iter_netlink.c | 50 sk = s->sk_socket; in dump_netlink()
|
/kernel/linux/linux-5.10/samples/connector/ |
D | cn_test.c | 167 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/ |
D | stream.c | 32 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()
|
D | sock.c | 160 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/ |
D | tcp_send.c | 102 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/ |
D | nf_log_common.c | 139 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()
|
D | xt_owner.c | 70 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/ |
D | cls_flow.c | 206 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/ |
D | x25_proc.c | 108 s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); in x25_seq_socket_show()
|
/kernel/linux/linux-5.10/net/smc/ |
D | smc_tx.c | 42 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/ |
D | dn_nsp_in.c | 434 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()
|
D | af_decnet.c | 589 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/ |
D | inet_common.h | 63 sock_release(sk->sk_socket); in inet_ctl_sock_destroy()
|
/kernel/linux/linux-5.10/net/llc/ |
D | llc_conn.c | 105 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/ |
D | caif_socket.c | 680 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/ |
D | espintcp.c | 473 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/ |
D | kcmsock.c | 550 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/ |
D | strparser.c | 76 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/ |
D | subflow.c | 476 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()
|
D | protocol.c | 58 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/ |
D | garbage.c | 242 total_refs = file_count(u->sk.sk_socket->file); in unix_gc()
|