/net/ |
D | socket.c | 136 struct socket *sock = f->private_data; in sock_show_fdinfo() local 138 if (sock->ops->show_fdinfo) in sock_show_fdinfo() 139 sock->ops->show_fdinfo(m, sock); in sock_show_fdinfo() 455 struct file *sock_alloc_file(struct socket *sock, int flags, const char *dname) in sock_alloc_file() argument 460 dname = sock->sk ? sock->sk->sk_prot_creator->name : ""; in sock_alloc_file() 462 file = alloc_file_pseudo(SOCK_INODE(sock), sock_mnt, dname, in sock_alloc_file() 466 sock_release(sock); in sock_alloc_file() 470 sock->file = file; in sock_alloc_file() 471 file->private_data = sock; in sock_alloc_file() 472 stream_open(SOCK_INODE(sock), file); in sock_alloc_file() [all …]
|
/net/dccp/ |
D | dccp.h | 53 void dccp_time_wait(struct sock *sk, int state, int timeo); 219 void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb); 221 int dccp_retransmit_skb(struct sock *sk); 223 void dccp_send_ack(struct sock *sk); 224 void dccp_reqsk_send_ack(const struct sock *sk, struct sk_buff *skb, 227 void dccp_send_sync(struct sock *sk, const u64 seq, 233 void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb); 234 bool dccp_qpolicy_full(struct sock *sk); 235 void dccp_qpolicy_drop(struct sock *sk, struct sk_buff *skb); 236 struct sk_buff *dccp_qpolicy_top(struct sock *sk); [all …]
|
D | ccid.h | 56 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk); 57 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk); 58 void (*ccid_hc_rx_exit)(struct sock *sk); 59 void (*ccid_hc_tx_exit)(struct sock *sk); 60 void (*ccid_hc_rx_packet_recv)(struct sock *sk, 62 int (*ccid_hc_rx_parse_options)(struct sock *sk, u8 pkt, 64 int (*ccid_hc_rx_insert_options)(struct sock *sk, 66 void (*ccid_hc_tx_packet_recv)(struct sock *sk, 68 int (*ccid_hc_tx_parse_options)(struct sock *sk, u8 pkt, 70 int (*ccid_hc_tx_send_packet)(struct sock *sk, [all …]
|
/net/rds/ |
D | tcp_listen.c | 41 void rds_tcp_keepalive(struct socket *sock) in rds_tcp_keepalive() argument 47 sock_set_keepalive(sock->sk); in rds_tcp_keepalive() 48 tcp_sock_set_keepcnt(sock->sk, keepcnt); in rds_tcp_keepalive() 49 tcp_sock_set_keepidle(sock->sk, keepidle); in rds_tcp_keepalive() 53 tcp_sock_set_keepintvl(sock->sk, keepidle); in rds_tcp_keepalive() 97 int rds_tcp_accept_one(struct socket *sock) in rds_tcp_accept_one() argument 112 if (!sock) /* module unload or netns delete in progress */ in rds_tcp_accept_one() 115 ret = sock_create_lite(sock->sk->sk_family, in rds_tcp_accept_one() 116 sock->sk->sk_type, sock->sk->sk_protocol, in rds_tcp_accept_one() 121 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK, true); in rds_tcp_accept_one() [all …]
|
D | tcp_connect.c | 40 void rds_tcp_state_change(struct sock *sk) in rds_tcp_state_change() 42 void (*state_change)(struct sock *sk); in rds_tcp_state_change() 92 struct socket *sock = NULL; in rds_tcp_conn_path_connect() local 116 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect() 120 SOCK_STREAM, IPPROTO_TCP, &sock); in rds_tcp_conn_path_connect() 127 rds_tcp_tune(sock); in rds_tcp_conn_path_connect() 145 ret = kernel_bind(sock, addr, addrlen); in rds_tcp_conn_path_connect() 172 rds_tcp_set_callbacks(sock, cp); in rds_tcp_conn_path_connect() 173 ret = kernel_connect(sock, addr, addrlen, O_NONBLOCK); in rds_tcp_conn_path_connect() 179 rds_tcp_keepalive(sock); in rds_tcp_conn_path_connect() [all …]
|
/net/bluetooth/rfcomm/ |
D | sock.c | 43 static void rfcomm_sock_close(struct sock *sk); 44 static void rfcomm_sock_kill(struct sock *sk); 52 struct sock *sk = d->owner; in rfcomm_sk_data_ready() 66 struct sock *sk = d->owner, *parent; in rfcomm_sk_state_change() 106 static struct sock *__rfcomm_get_listen_sock_by_addr(u8 channel, bdaddr_t *src) in __rfcomm_get_listen_sock_by_addr() 108 struct sock *sk = NULL; in __rfcomm_get_listen_sock_by_addr() 127 static struct sock *rfcomm_get_sock_by_channel(int state, u8 channel, bdaddr_t *src) in rfcomm_get_sock_by_channel() 129 struct sock *sk = NULL, *sk1 = NULL; in rfcomm_get_sock_by_channel() 153 static void rfcomm_sock_destruct(struct sock *sk) in rfcomm_sock_destruct() 173 static void rfcomm_sock_cleanup_listen(struct sock *parent) in rfcomm_sock_cleanup_listen() [all …]
|
/net/llc/ |
D | llc_c_ev.c | 75 static u16 llc_util_nr_inside_tx_window(struct sock *sk, u8 nr) in llc_util_nr_inside_tx_window() 99 int llc_conn_ev_conn_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_conn_req() 107 int llc_conn_ev_data_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_data_req() 115 int llc_conn_ev_disc_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_disc_req() 123 int llc_conn_ev_rst_req(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rst_req() 131 int llc_conn_ev_local_busy_detected(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_local_busy_detected() 139 int llc_conn_ev_local_busy_cleared(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_local_busy_cleared() 147 int llc_conn_ev_rx_bad_pdu(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_bad_pdu() 152 int llc_conn_ev_rx_disc_cmd_pbit_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_disc_cmd_pbit_set_x() 160 int llc_conn_ev_rx_dm_rsp_fbit_set_x(struct sock *sk, struct sk_buff *skb) in llc_conn_ev_rx_dm_rsp_fbit_set_x() [all …]
|
D | llc_c_ac.c | 32 static int llc_conn_ac_inc_vs_by_1(struct sock *sk, struct sk_buff *skb); 33 static void llc_process_tmr_ev(struct sock *sk, struct sk_buff *skb); 34 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *ev); 36 static int llc_conn_ac_inc_npta_value(struct sock *sk, struct sk_buff *skb); 38 static int llc_conn_ac_send_rr_rsp_f_set_ackpf(struct sock *sk, 41 static int llc_conn_ac_set_p_flag_1(struct sock *sk, struct sk_buff *skb); 45 int llc_conn_ac_clear_remote_busy(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_clear_remote_busy() 61 int llc_conn_ac_conn_ind(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_conn_ind() 69 int llc_conn_ac_conn_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_conn_confirm() 77 static int llc_conn_ac_data_confirm(struct sock *sk, struct sk_buff *skb) in llc_conn_ac_data_confirm() [all …]
|
/net/phonet/ |
D | socket.c | 28 static int pn_socket_release(struct socket *sock) in pn_socket_release() argument 30 struct sock *sk = sock->sk; in pn_socket_release() 33 sock->sk = NULL; in pn_socket_release() 66 struct sock *pn_find_sock_by_sa(struct net *net, const struct sockaddr_pn *spn) in pn_find_sock_by_sa() 68 struct sock *sknode; in pn_find_sock_by_sa() 69 struct sock *rval = NULL; in pn_find_sock_by_sa() 111 struct sock *sknode; in pn_deliver_sock_broadcast() 132 int pn_sock_hash(struct sock *sk) in pn_sock_hash() 144 void pn_sock_unhash(struct sock *sk) in pn_sock_unhash() 156 static int pn_socket_bind(struct socket *sock, struct sockaddr *addr, int len) in pn_socket_bind() argument [all …]
|
/net/atm/ |
D | svc.c | 31 static int svc_create(struct net *net, struct socket *sock, int protocol, 41 static int svc_shutdown(struct socket *sock, int how) in svc_shutdown() argument 50 struct sock *sk = sk_atm(vcc); in svc_disconnect() 75 static int svc_release(struct socket *sock) in svc_release() argument 77 struct sock *sk = sock->sk; in svc_release() 81 vcc = ATM_SD(sock); in svc_release() 90 vcc_release(sock); in svc_release() 95 static int svc_bind(struct socket *sock, struct sockaddr *sockaddr, in svc_bind() argument 99 struct sock *sk = sock->sk; in svc_bind() 107 if (sock->state == SS_CONNECTED) { in svc_bind() [all …]
|
D | pvc.c | 22 static int pvc_shutdown(struct socket *sock, int how) in pvc_shutdown() argument 27 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, in pvc_bind() argument 30 struct sock *sk = sock->sk; in pvc_bind() 41 vcc = ATM_SD(sock); in pvc_bind() 52 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, in pvc_bind() 59 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, in pvc_connect() argument 62 return pvc_bind(sock, sockaddr, sockaddr_len); in pvc_connect() 65 static int pvc_setsockopt(struct socket *sock, int level, int optname, in pvc_setsockopt() argument 68 struct sock *sk = sock->sk; in pvc_setsockopt() 72 error = vcc_setsockopt(sock, level, optname, optval, optlen); in pvc_setsockopt() [all …]
|
/net/nfc/ |
D | llcp_commands.c | 242 int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock, in nfc_llcp_parse_connection_tlv() argument 250 if (sock == NULL) in nfc_llcp_parse_connection_tlv() 261 sock->remote_miu = llcp_tlv_miux(tlv) + 128; in nfc_llcp_parse_connection_tlv() 264 sock->remote_rw = llcp_tlv_rw(tlv); in nfc_llcp_parse_connection_tlv() 277 pr_debug("sock %p rw %d miu %d\n", sock, in nfc_llcp_parse_connection_tlv() 278 sock->remote_rw, sock->remote_miu); in nfc_llcp_parse_connection_tlv() 313 static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock, in llcp_allocate_pdu() argument 319 if (sock->ssap == 0) in llcp_allocate_pdu() 322 skb = nfc_alloc_send_skb(sock->dev, &sock->sk, MSG_DONTWAIT, in llcp_allocate_pdu() 329 skb = llcp_add_header(skb, sock->dsap, sock->ssap, cmd); in llcp_allocate_pdu() [all …]
|
D | rawsock.c | 22 static void nfc_sock_link(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_link() 29 static void nfc_sock_unlink(struct nfc_sock_list *l, struct sock *sk) in nfc_sock_unlink() 36 static void rawsock_write_queue_purge(struct sock *sk) in rawsock_write_queue_purge() 46 static void rawsock_report_error(struct sock *sk, int err) in rawsock_report_error() 57 static int rawsock_release(struct socket *sock) in rawsock_release() argument 59 struct sock *sk = sock->sk; in rawsock_release() 61 pr_debug("sock=%p sk=%p\n", sock, sk); in rawsock_release() 66 if (sock->type == SOCK_RAW) in rawsock_release() 75 static int rawsock_connect(struct socket *sock, struct sockaddr *_addr, in rawsock_connect() argument 78 struct sock *sk = sock->sk; in rawsock_connect() [all …]
|
D | llcp_sock.c | 17 static int sock_wait_state(struct sock *sk, int state, unsigned long timeo) in sock_wait_state() 59 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind() argument 61 struct sock *sk = sock->sk; in llcp_sock_bind() 144 static int llcp_raw_sock_bind(struct socket *sock, struct sockaddr *addr, in llcp_raw_sock_bind() argument 147 struct sock *sk = sock->sk; in llcp_raw_sock_bind() 199 static int llcp_sock_listen(struct socket *sock, int backlog) in llcp_sock_listen() argument 201 struct sock *sk = sock->sk; in llcp_sock_listen() 208 if ((sock->type != SOCK_SEQPACKET && sock->type != SOCK_STREAM) || in llcp_sock_listen() 226 static int nfc_llcp_setsockopt(struct socket *sock, int level, int optname, in nfc_llcp_setsockopt() argument 229 struct sock *sk = sock->sk; in nfc_llcp_setsockopt() [all …]
|
D | llcp.h | 104 struct sock sk; 139 struct sock *parent; 201 void nfc_llcp_sock_link(struct llcp_sock_list *l, struct sock *s); 202 void nfc_llcp_sock_unlink(struct llcp_sock_list *l, struct sock *s); 203 void nfc_llcp_socket_remote_param_init(struct nfc_llcp_sock *sock); 207 struct nfc_llcp_sock *sock); 210 int nfc_llcp_queue_i_frames(struct nfc_llcp_sock *sock); 215 struct sock *nfc_llcp_sock_alloc(struct socket *sock, int type, gfp_t gfp, int kern); 216 void nfc_llcp_sock_free(struct nfc_llcp_sock *sock); 217 void nfc_llcp_accept_unlink(struct sock *sk); [all …]
|
/net/ipv4/ |
D | udp_tunnel_core.c | 17 struct socket *sock = NULL; in udp_sock_create4() local 20 err = sock_create_kern(net, AF_INET, SOCK_DGRAM, 0, &sock); in udp_sock_create4() 25 err = sock_bindtoindex(sock->sk, cfg->bind_ifindex, true); in udp_sock_create4() 33 err = kernel_bind(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4() 42 err = kernel_connect(sock, (struct sockaddr *)&udp_addr, in udp_sock_create4() 48 sock->sk->sk_no_check_tx = !cfg->use_udp_checksums; in udp_sock_create4() 50 *sockp = sock; in udp_sock_create4() 54 if (sock) { in udp_sock_create4() 55 kernel_sock_shutdown(sock, SHUT_RDWR); in udp_sock_create4() 56 sock_release(sock); in udp_sock_create4() [all …]
|
/net/mptcp/ |
D | protocol.h | 231 struct sock *last_snd; 263 struct sock *first; 277 struct sock *__sk = (___sk); /* silence macro reuse warning */ \ 297 sock_owned_by_me((const struct sock *)msk); in msk_owned_by_me() 300 static inline struct mptcp_sock *mptcp_sk(const struct sock *sk) in mptcp_sk() 308 static inline int __mptcp_rmem(const struct sock *sk) in __mptcp_rmem() 313 static inline int __mptcp_space(const struct sock *sk) in __mptcp_space() 318 static inline struct mptcp_data_frag *mptcp_send_head(const struct sock *sk) in mptcp_send_head() 325 static inline struct mptcp_data_frag *mptcp_send_next(struct sock *sk) in mptcp_send_next() 335 static inline struct mptcp_data_frag *mptcp_pending_tail(const struct sock *sk) in mptcp_pending_tail() [all …]
|
D | protocol.c | 53 static void __mptcp_destroy_sock(struct sock *sk); 54 static void mptcp_check_send_data_fin(struct sock *sk); 77 static bool mptcp_is_tcpsk(struct sock *sk) in mptcp_is_tcpsk() 79 struct socket *sock = sk->sk_socket; in mptcp_is_tcpsk() local 89 sock->ops = &inet_stream_ops; in mptcp_is_tcpsk() 93 sock->ops = &inet6_stream_ops; in mptcp_is_tcpsk() 104 struct sock *sk = (struct sock *)msk; in __mptcp_socket_create() 123 static void mptcp_drop(struct sock *sk, struct sk_buff *skb) in mptcp_drop() 129 static bool mptcp_try_coalesce(struct sock *sk, struct sk_buff *to, in mptcp_try_coalesce() 155 return mptcp_try_coalesce((struct sock *)msk, to, from); in mptcp_ooo_try_coalesce() [all …]
|
D | sockopt.c | 17 static struct sock *__mptcp_tcp_fallback(struct mptcp_sock *msk) in __mptcp_tcp_fallback() 19 sock_owned_by_me((const struct sock *)msk); in __mptcp_tcp_fallback() 27 static u32 sockopt_seq_reset(const struct sock *sk) in sockopt_seq_reset() 52 msk->setsockopt_seq = sockopt_seq_reset((struct sock *)msk) + seq; in sockopt_seq_inc() 70 struct sock *sk = (struct sock *)msk; in mptcp_sol_socket_sync_intval() 76 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_sol_socket_sync_intval() 122 struct sock *sk = (struct sock *)msk; in mptcp_sol_socket_intval() 136 struct sock *sk = (struct sock *)msk; in mptcp_so_incoming_cpu() 147 struct sock *sk = (struct sock *)msk; in mptcp_setsockopt_sol_socket_tstamp() 157 struct sock *ssk = mptcp_subflow_tcp_sock(subflow); in mptcp_setsockopt_sol_socket_tstamp() [all …]
|
/net/unix/ |
D | af_unix.c | 183 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() 188 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() 193 static inline int unix_recvq_full(const struct sock *sk) in unix_recvq_full() 198 static inline int unix_recvq_full_lockless(const struct sock *sk) in unix_recvq_full_lockless() 204 struct sock *unix_peer_get(struct sock *s) in unix_peer_get() 206 struct sock *peer; in unix_peer_get() 255 static void __unix_remove_socket(struct sock *sk) in __unix_remove_socket() 260 static void __unix_insert_socket(struct hlist_head *list, struct sock *sk) in __unix_insert_socket() 266 static void __unix_set_addr(struct sock *sk, struct unix_address *addr, in __unix_set_addr() 274 static inline void unix_remove_socket(struct sock *sk) in unix_remove_socket() [all …]
|
/net/bluetooth/ |
D | sco.c | 49 struct sock *sk; 59 static void sco_sock_close(struct sock *sk); 60 static void sco_sock_kill(struct sock *sk); 83 struct sock *sk; in sco_sock_timeout() 103 static void sco_sock_set_timer(struct sock *sk, long timeout) in sco_sock_set_timer() 113 static void sco_sock_clear_timer(struct sock *sk) in sco_sock_clear_timer() 153 static void sco_chan_del(struct sock *sk, int err) in sco_chan_del() 181 struct sock *sk; in sco_conn_del() 210 static void __sco_chan_add(struct sco_conn *conn, struct sock *sk, in __sco_chan_add() 211 struct sock *parent) in __sco_chan_add() [all …]
|
D | l2cap_sock.c | 45 static void l2cap_sock_init(struct sock *sk, struct sock *parent); 46 static struct sock *l2cap_sock_alloc(struct net *net, struct socket *sock, 48 static void l2cap_sock_cleanup_listen(struct sock *parent); 50 bool l2cap_is_socket(struct socket *sock) in l2cap_is_socket() argument 52 return sock && sock->ops == &l2cap_sock_ops; in l2cap_is_socket() 82 static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in l2cap_sock_bind() argument 84 struct sock *sk = sock->sk; in l2cap_sock_bind() 180 static void l2cap_sock_init_pid(struct sock *sk) in l2cap_sock_init_pid() 195 static int l2cap_sock_connect(struct socket *sock, struct sockaddr *addr, in l2cap_sock_connect() argument 198 struct sock *sk = sock->sk; in l2cap_sock_connect() [all …]
|
/net/vmw_vsock/ |
D | af_vsock.c | 113 static int __vsock_bind(struct sock *sk, struct sockaddr_vm *addr); 114 static void vsock_sk_destruct(struct sock *sk); 115 static int vsock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); 183 struct sock *sk = sk_vsock(vsk); in vsock_auto_bind() 229 static struct sock *__vsock_find_bound_socket(struct sockaddr_vm *addr) in __vsock_find_bound_socket() 246 static struct sock *__vsock_find_connected_socket(struct sockaddr_vm *src, in __vsock_find_connected_socket() 298 struct sock *vsock_find_bound_socket(struct sockaddr_vm *addr) in vsock_find_bound_socket() 300 struct sock *sk; in vsock_find_bound_socket() 313 struct sock *vsock_find_connected_socket(struct sockaddr_vm *src, in vsock_find_connected_socket() 316 struct sock *sk; in vsock_find_connected_socket() [all …]
|
D | vmci_transport_notify.h | 39 void (*socket_init) (struct sock *sk); 41 int (*poll_in) (struct sock *sk, size_t target, 43 int (*poll_out) (struct sock *sk, size_t target, 45 void (*handle_notify_pkt) (struct sock *sk, 50 int (*recv_init) (struct sock *sk, size_t target, 52 int (*recv_pre_block) (struct sock *sk, size_t target, 54 int (*recv_pre_dequeue) (struct sock *sk, size_t target, 56 int (*recv_post_dequeue) (struct sock *sk, size_t target, 59 int (*send_init) (struct sock *sk, 61 int (*send_pre_block) (struct sock *sk, [all …]
|
/net/core/ |
D | sock.c | 161 bool sk_ns_capable(const struct sock *sk, in sk_ns_capable() 178 bool sk_capable(const struct sock *sk, int cap) in sk_capable() 193 bool sk_net_capable(const struct sock *sk, int cap) in sk_net_capable() 298 void sk_set_memalloc(struct sock *sk) in sk_set_memalloc() 306 void sk_clear_memalloc(struct sock *sk) in sk_clear_memalloc() 323 int __sk_backlog_rcv(struct sock *sk, struct sk_buff *skb) in __sk_backlog_rcv() 339 void sk_error_report(struct sock *sk) in sk_error_report() 437 static bool sock_needs_netstamp(const struct sock *sk) in sock_needs_netstamp() 448 static void sock_disable_timestamp(struct sock *sk, unsigned long flags) in sock_disable_timestamp() 459 int __sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) in __sock_queue_rcv_skb() [all …]
|