/Linux-v5.15/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_unix.c | 12 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local 16 if (!sk_socket) in sock_i_ino() 19 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino() 46 sk->sk_socket ? in dump_unix()
|
D | bpf_iter_udp4.c | 12 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local 16 if (!sk_socket) in sock_i_ino() 19 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
|
D | bpf_iter_udp6.c | 19 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local 23 if (!sk_socket) in sock_i_ino() 26 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
|
D | bpf_iter_tcp4.c | 51 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local 55 if (!sk_socket) in sock_i_ino() 58 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
|
D | bpf_iter_tcp6.c | 51 const struct socket *sk_socket = sk->sk_socket; in sock_i_ino() local 55 if (!sk_socket) in sock_i_ino() 58 inode = &container_of(sk_socket, struct socket_alloc, socket)->vfs_inode; in sock_i_ino()
|
D | bpf_iter_netlink.c | 49 sk = s->sk_socket; in dump_netlink()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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() 174 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in sk_stream_wait_memory()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/net/netfilter/ |
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()
|
/Linux-v5.15/net/x25/ |
D | x25_proc.c | 108 s->sk_socket ? SOCK_INODE(s->sk_socket)->i_ino : 0L); in x25_seq_socket_show()
|
/Linux-v5.15/net/mptcp/ |
D | sockopt.c | 125 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, in mptcp_sol_socket_intval() 150 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, in mptcp_setsockopt_sol_socket_tstamp() 226 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, in mptcp_setsockopt_sol_socket_timestamping() 263 ret = sock_setsockopt(sk->sk_socket, SOL_SOCKET, SO_LINGER, kopt, sizeof(ling)); in mptcp_setsockopt_sol_socket_linger() 348 return sock_setsockopt(sk->sk_socket, SOL_SOCKET, optname, optval, optlen); in mptcp_setsockopt_sol_socket()
|
D | subflow.c | 575 WARN_ON_ONCE(sk->sk_socket); in mptcp_sock_destruct() 1450 mptcp_sock_graft(ssk, sk->sk_socket); in __mptcp_subflow_connect() 1519 if (unlikely(!sk->sk_socket)) in mptcp_subflow_create_socket() 1554 SOCK_INODE(sf)->i_ino = SOCK_INODE(sk->sk_socket)->i_ino; in mptcp_subflow_create_socket() 1555 SOCK_INODE(sf)->i_uid = SOCK_INODE(sk->sk_socket)->i_uid; in mptcp_subflow_create_socket() 1556 SOCK_INODE(sf)->i_gid = SOCK_INODE(sk->sk_socket)->i_gid; in mptcp_subflow_create_socket()
|
/Linux-v5.15/net/smc/ |
D | smc_tx.c | 43 struct socket *sock = sk->sk_socket; in smc_tx_write_space() 69 if (smc->sk.sk_socket && in smc_tx_sndbuf_nonfull() 70 test_bit(SOCK_NOSPACE, &smc->sk.sk_socket->flags)) in smc_tx_sndbuf_nonfull() 103 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in smc_tx_wait() 114 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in smc_tx_wait()
|
/Linux-v5.15/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()
|
/Linux-v5.15/include/net/ |
D | inet_common.h | 65 sock_release(sk->sk_socket); in inet_ctl_sock_destroy()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/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()
|
/Linux-v5.15/net/kcm/ |
D | kcmsock.c | 545 fput(psock->sk->sk_socket->file); in unreserve_psock() 645 ret = kernel_sendpage(psock->sk->sk_socket, in kcm_write_msgs() 739 if (likely(sk->sk_socket) && in kcm_tx_work() 740 test_bit(SOCK_NOSPACE, &sk->sk_socket->flags)) { in kcm_tx_work() 741 clear_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in kcm_tx_work() 817 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in kcm_sendpage() 927 set_bit(SOCK_NOSPACE, &sk->sk_socket->flags); in kcm_sendmsg() 1592 fput(csk->sk_socket->file); in kcm_unattach()
|
/Linux-v5.15/net/strparser/ |
D | strparser.c | 84 struct socket *sock = strp->sk->sk_socket; in strp_peek_len() 355 struct socket *sock = strp->sk->sk_socket; in strp_read_sock()
|
/Linux-v5.15/net/unix/ |
D | af_unix.c | 515 WARN_ON(sk->sk_socket); in unix_sock_destructor() 1071 (SOCK_INODE(sk->sk_socket)->i_mode & ~current_umask()); in unix_bind_bsd() 1255 err = security_unix_may_send(sk->sk_socket, other->sk_socket); in unix_dgram_connect() 1684 !other->sk_socket || in unix_passcred_enabled() 1685 test_bit(SOCK_PASSCRED, &other->sk_socket->flags); in unix_passcred_enabled() 1892 err = security_unix_may_send(sk->sk_socket, other->sk_socket); in unix_dgram_sendmsg() 2286 struct socket *sock = sk->sk_socket; in __unix_dgram_recvmsg() 2807 .socket = sk->sk_socket, in __unix_stream_recvmsg() 3228 s->sk_socket ? in unix_seq_show()
|
D | garbage.c | 236 total_refs = file_count(u->sk.sk_socket->file); in unix_gc()
|