/net/vmw_vsock/ |
H A D | vmci_transport_notify.h | 48 void (*socket_init) (struct sock *sk); 50 int (*poll_in) (struct sock *sk, size_t target, 52 int (*poll_out) (struct sock *sk, size_t target, 54 void (*handle_notify_pkt) (struct sock *sk, 59 int (*recv_init) (struct sock *sk, size_t target, 61 int (*recv_pre_block) (struct sock *sk, size_t target, 63 int (*recv_pre_dequeue) (struct sock *sk, size_t target, 65 int (*recv_post_dequeue) (struct sock *sk, size_t target, 68 int (*send_init) (struct sock *sk, 70 int (*send_pre_block) (struct sock *s [all...] |
H A D | af_vsock.h | 32 struct sock sk; 50 struct sock *listener; 74 struct sock *__vsock_create(struct net *net, 75 struct socket *sock, 76 struct sock *parent, 163 void vsock_release_pending(struct sock *pending); 164 void vsock_add_pending(struct sock *listener, struct sock *pending); 165 void vsock_remove_pending(struct sock *listener, struct sock *pendin [all...] |
/net/rds/ |
H A D | tcp_listen.c | 48 static int rds_tcp_accept_one(struct socket *sock) argument 55 ret = sock_create_lite(sock->sk->sk_family, sock->sk->sk_type, 56 sock->sk->sk_protocol, &new_sock); 60 new_sock->type = sock->type; 61 new_sock->ops = sock->ops; 62 ret = sock->ops->accept(sock, new_sock, O_NONBLOCK); 111 void rds_tcp_listen_data_ready(struct sock *sk, int bytes) 113 void (*ready)(struct sock *s 141 struct socket *sock = NULL; local 178 struct socket *sock = rds_tcp_listen_sock; local [all...] |
H A D | tcp_connect.c | 40 void rds_tcp_state_change(struct sock *sk) 42 void (*state_change)(struct sock *sk); 55 rdsdebug("sock %p state_change to %d\n", tc->t_sock, sk->sk_state); 77 struct socket *sock = NULL; local 81 ret = sock_create(PF_INET, SOCK_STREAM, IPPROTO_TCP, &sock); 85 rds_tcp_tune(sock); 91 ret = sock->ops->bind(sock, (struct sockaddr *)&src, sizeof(src)); 106 rds_tcp_set_callbacks(sock, conn); 107 ret = sock 133 struct socket *sock = tc->t_sock; local [all...] |
H A D | tcp.c | 56 void rds_tcp_nonagle(struct socket *sock) argument 62 sock->ops->setsockopt(sock, SOL_TCP, TCP_NODELAY, (char __user *)&val, 67 void rds_tcp_tune(struct socket *sock) argument 69 struct sock *sk = sock->sk; 71 rds_tcp_nonagle(sock); 94 void rds_tcp_restore_callbacks(struct socket *sock, argument 97 rdsdebug("restoring sock %p callbacks from tc %p\n", sock, t 121 rds_tcp_set_callbacks(struct socket *sock, struct rds_connection *conn) argument 152 rds_tcp_tc_info(struct socket *sock, unsigned int len, struct rds_info_iterator *iter, struct rds_info_lengths *lens) argument [all...] |
H A D | info.h | 17 typedef void (*rds_info_func)(struct socket *sock, unsigned int len, 23 int rds_info_getsockopt(struct socket *sock, int optname, char __user *optval,
|
H A D | tcp.h | 46 void rds_tcp_tune(struct socket *sock); 47 void rds_tcp_nonagle(struct socket *sock); 48 void rds_tcp_set_callbacks(struct socket *sock, struct rds_connection *conn); 49 void rds_tcp_restore_callbacks(struct socket *sock, 59 void rds_tcp_state_change(struct sock *sk); 64 void rds_tcp_listen_data_ready(struct sock *sk, int bytes); 69 void rds_tcp_data_ready(struct sock *sk, int bytes); 80 void rds_tcp_write_space(struct sock *sk);
|
/net/bluetooth/hidp/ |
H A D | Makefile | 7 hidp-objs := core.o sock.o
|
/net/ipv4/ |
H A D | tcp_vegas.h | 18 extern void tcp_vegas_init(struct sock *sk); 19 extern void tcp_vegas_state(struct sock *sk, u8 ca_state); 20 extern void tcp_vegas_pkts_acked(struct sock *sk, u32 cnt, s32 rtt_us); 21 extern void tcp_vegas_cwnd_event(struct sock *sk, enum tcp_ca_event event); 22 extern void tcp_vegas_get_info(struct sock *sk, u32 ext, struct sk_buff *skb);
|
H A D | udp_impl.h | 11 extern int udp_v4_get_port(struct sock *sk, unsigned short snum); 13 extern int udp_setsockopt(struct sock *sk, int level, int optname, 15 extern int udp_getsockopt(struct sock *sk, int level, int optname, 19 extern int compat_udp_setsockopt(struct sock *sk, int level, int optname, 21 extern int compat_udp_getsockopt(struct sock *sk, int level, int optname, 24 extern int udp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, 26 extern int udp_sendpage(struct sock *sk, struct page *page, int offset, 28 extern int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); 29 extern void udp_destroy_sock(struct sock *sk);
|
/net/atm/ |
H A D | common.h | 13 int vcc_create(struct net *net, struct socket *sock, int protocol, int family); 14 int vcc_release(struct socket *sock); 15 int vcc_connect(struct socket *sock, int itf, short vpi, int vci); 16 int vcc_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, 18 int vcc_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, 20 unsigned int vcc_poll(struct file *file, struct socket *sock, poll_table *wait); 21 int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 22 int vcc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg); 23 int vcc_setsockopt(struct socket *sock, int level, int optname, 25 int vcc_getsockopt(struct socket *sock, in [all...] |
H A D | pvc.c | 15 #include <net/sock.h> /* for sock_no_* */ 21 static int pvc_shutdown(struct socket *sock, int how) argument 26 static int pvc_bind(struct socket *sock, struct sockaddr *sockaddr, argument 29 struct sock *sk = sock->sk; 40 vcc = ATM_SD(sock); 51 error = vcc_connect(sock, addr->sap_addr.itf, addr->sap_addr.vpi, 58 static int pvc_connect(struct socket *sock, struct sockaddr *sockaddr, argument 61 return pvc_bind(sock, sockaddr, sockaddr_len); 64 static int pvc_setsockopt(struct socket *sock, in argument 76 pvc_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument 88 pvc_getname(struct socket *sock, struct sockaddr *sockaddr, int *sockaddr_len, int peer) argument 132 pvc_create(struct net *net, struct socket *sock, int protocol, int kern) argument [all...] |
H A D | svc.c | 21 #include <net/sock.h> /* for sock_no_* */ 30 static int svc_create(struct net *net, struct socket *sock, int protocol, 40 static int svc_shutdown(struct socket *sock, int how) argument 49 struct sock *sk = sk_atm(vcc); 74 static int svc_release(struct socket *sock) argument 76 struct sock *sk = sock->sk; 80 vcc = ATM_SD(sock); 89 vcc_release(sock); 94 static int svc_bind(struct socket *sock, struc argument 149 svc_connect(struct socket *sock, struct sockaddr *sockaddr, int sockaddr_len, int flags) argument 287 svc_listen(struct socket *sock, int backlog) argument 326 svc_accept(struct socket *sock, struct socket *newsock, int flags) argument 424 svc_getname(struct socket *sock, struct sockaddr *sockaddr, int *sockaddr_len, int peer) argument 455 svc_setsockopt(struct socket *sock, int level, int optname, char __user *optval, unsigned int optlen) argument 500 svc_getsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user *optlen) argument 528 svc_addparty(struct socket *sock, struct sockaddr *sockaddr, int sockaddr_len, int flags) argument 558 svc_dropparty(struct socket *sock, int ep_ref) argument 584 svc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 614 svc_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 656 svc_create(struct net *net, struct socket *sock, int protocol, int kern) argument [all...] |
/net/ipv6/ |
H A D | udp_impl.h | 14 extern int udp_v6_get_port(struct sock *sk, unsigned short snum); 16 extern int udpv6_getsockopt(struct sock *sk, int level, int optname, 18 extern int udpv6_setsockopt(struct sock *sk, int level, int optname, 21 extern int compat_udpv6_setsockopt(struct sock *sk, int level, int optname, 23 extern int compat_udpv6_getsockopt(struct sock *sk, int level, int optname, 26 extern int udpv6_sendmsg(struct kiocb *iocb, struct sock *sk, 28 extern int udpv6_recvmsg(struct kiocb *iocb, struct sock *sk, 31 extern int udpv6_queue_rcv_skb(struct sock * sk, struct sk_buff *skb); 32 extern void udpv6_destroy_sock(struct sock *sk); 34 extern void udp_v6_clear_sk(struct sock *s [all...] |
/net/bluetooth/bnep/ |
H A D | Makefile | 7 bnep-objs := core.o sock.o netdev.o
|
H A D | sock.c | 36 static int bnep_sock_release(struct socket *sock) argument 38 struct sock *sk = sock->sk; 40 BT_DBG("sock %p sk %p", sock, sk); 52 static int bnep_sock_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 72 nsock = sockfd_lookup(ca.sock, &err); 131 static int bnep_sock_compat_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) argument 155 return bnep_sock_ioctl(sock, cmd, arg); 188 static int bnep_sock_create(struct net *net, struct socket *sock, in argument [all...] |
/net/bluetooth/cmtp/ |
H A D | Makefile | 7 cmtp-objs := core.o sock.o capi.o
|
/net/bluetooth/rfcomm/ |
H A D | Makefile | 7 rfcomm-y := core.o sock.o
|
/net/dccp/ |
H A D | dccp.h | 18 #include <net/sock.h> 56 extern void dccp_time_wait(struct sock *sk, int state, int timeo); 227 extern void dccp_v4_send_check(struct sock *sk, struct sk_buff *skb); 229 extern int dccp_retransmit_skb(struct sock *sk); 231 extern void dccp_send_ack(struct sock *sk); 232 extern void dccp_reqsk_send_ack(struct sock *sk, struct sk_buff *skb, 235 extern void dccp_send_sync(struct sock *sk, const u64 seq, 241 extern void dccp_qpolicy_push(struct sock *sk, struct sk_buff *skb); 242 extern bool dccp_qpolicy_full(struct sock *sk); 243 extern void dccp_qpolicy_drop(struct sock *s [all...] |
H A D | qpolicy.c | 18 static void qpolicy_simple_push(struct sock *sk, struct sk_buff *skb) 23 static bool qpolicy_simple_full(struct sock *sk) 29 static struct sk_buff *qpolicy_simple_top(struct sock *sk) 39 static struct sk_buff *qpolicy_prio_best_skb(struct sock *sk) 49 static struct sk_buff *qpolicy_prio_worst_skb(struct sock *sk) 59 static bool qpolicy_prio_full(struct sock *sk) 73 void (*push) (struct sock *sk, struct sk_buff *skb); 74 bool (*full) (struct sock *sk); 75 struct sk_buff* (*top) (struct sock *sk); 96 void dccp_qpolicy_push(struct sock *s [all...] |
H A D | ccid.h | 16 #include <net/sock.h> 59 int (*ccid_hc_rx_init)(struct ccid *ccid, struct sock *sk); 60 int (*ccid_hc_tx_init)(struct ccid *ccid, struct sock *sk); 61 void (*ccid_hc_rx_exit)(struct sock *sk); 62 void (*ccid_hc_tx_exit)(struct sock *sk); 63 void (*ccid_hc_rx_packet_recv)(struct sock *sk, 65 int (*ccid_hc_rx_parse_options)(struct sock *sk, u8 pkt, 67 int (*ccid_hc_rx_insert_options)(struct sock *sk, 69 void (*ccid_hc_tx_packet_recv)(struct sock *sk, 71 int (*ccid_hc_tx_parse_options)(struct sock *s [all...] |
/net/x25/ |
H A D | x25_timer.c | 25 #include <net/sock.h> 32 void x25_init_timers(struct sock *sk) 43 void x25_start_heartbeat(struct sock *sk) 48 void x25_stop_heartbeat(struct sock *sk) 53 void x25_start_t2timer(struct sock *sk) 60 void x25_start_t21timer(struct sock *sk) 67 void x25_start_t22timer(struct sock *sk) 74 void x25_start_t23timer(struct sock *sk) 81 void x25_stop_timer(struct sock *sk) 86 unsigned long x25_display_timer(struct sock *s [all...] |
/net/nfc/ |
H A D | llcp_commands.c | 251 int nfc_llcp_parse_connection_tlv(struct nfc_llcp_sock *sock, argument 258 if (sock == NULL) 269 sock->remote_miu = llcp_tlv_miux(tlv) + 128; 272 sock->remote_rw = llcp_tlv_rw(tlv); 285 pr_debug("sock %p rw %d miu %d\n", sock, 286 sock->remote_rw, sock->remote_miu); 321 static struct sk_buff *llcp_allocate_pdu(struct nfc_llcp_sock *sock, argument 327 if (sock 342 nfc_llcp_disconnect(struct nfc_llcp_sock *sock) argument 398 nfc_llcp_send_connect(struct nfc_llcp_sock *sock) argument 463 nfc_llcp_send_cc(struct nfc_llcp_sock *sock) argument 633 nfc_llcp_send_disconnect(struct nfc_llcp_sock *sock) argument 653 nfc_llcp_send_i_frame(struct nfc_llcp_sock *sock, struct msghdr *msg, size_t len) argument 734 nfc_llcp_send_ui_frame(struct nfc_llcp_sock *sock, u8 ssap, u8 dsap, struct msghdr *msg, size_t len) argument 795 nfc_llcp_send_rr(struct nfc_llcp_sock *sock) argument [all...] |
H A D | rawsock.c | 32 static void rawsock_write_queue_purge(struct sock *sk) 42 static void rawsock_report_error(struct sock *sk, int err) 53 static int rawsock_release(struct socket *sock) argument 55 struct sock *sk = sock->sk; 57 pr_debug("sock=%p sk=%p\n", sock, sk); 68 static int rawsock_connect(struct socket *sock, struct sockaddr *_addr, argument 71 struct sock *sk = sock 192 rawsock_sendmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len) argument 229 rawsock_recvmsg(struct kiocb *iocb, struct socket *sock, struct msghdr *msg, size_t len, int flags) argument 297 rawsock_create(struct net *net, struct socket *sock, const struct nfc_protocol *nfc_proto) argument [all...] |
/net/tipc/ |
H A D | socket.c | 41 #include <net/sock.h> 51 struct sock sk; 60 #define tipc_rx_ready(sock) (!skb_queue_empty(&sock->sk->sk_receive_queue) || \ 61 (sock->state == SS_DISCONNECTING)) 63 static int backlog_rcv(struct sock *sk, struct sk_buff *skb); 66 static void tipc_data_ready(struct sock *sk, int len); 67 static void tipc_write_space(struct sock *sk); 127 static void advance_rx_queue(struct sock *sk) 137 static void reject_rx_queue(struct sock *s 157 tipc_create(struct net *net, struct socket *sock, int protocol, int kern) argument 238 release(struct socket *sock) argument 309 bind(struct socket *sock, struct sockaddr *uaddr, int uaddr_len) argument 348 get_name(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer) argument 415 poll(struct file *file, struct socket *sock, poll_table *wait) argument 491 send_msg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len) argument 601 send_packet(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len) argument 662 send_stream(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t total_len) argument 759 auto_connect(struct socket *sock, struct tipc_msg *msg) argument 885 recv_msg(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t buf_len, int flags) argument 994 recv_stream(struct kiocb *iocb, struct socket *sock, struct msghdr *m, size_t buf_len, int flags) argument 1158 struct socket *sock = tsock->sk.sk_socket; local 1269 struct socket *sock = sk->sk_socket; local 1375 connect(struct socket *sock, struct sockaddr *dest, int destlen, int flags) argument 1475 listen(struct socket *sock, int len) argument 1501 accept(struct socket *sock, struct socket *new_sock, int flags) argument 1595 shutdown(struct socket *sock, int how) argument 1660 setsockopt(struct socket *sock, int lvl, int opt, char __user *ov, unsigned int ol) argument 1719 getsockopt(struct socket *sock, int lvl, int opt, char __user *ov, int __user *ol) argument [all...] |