tag | line | file | source code |
sock | 117 | drivers/net/de600.c | static unsigned long de600_rspace(struct sock *sk); |
sock | 802 | drivers/net/de600.c | de600_rspace(struct sock *sk) |
sock | 56 | fs/nfs/sock.c | struct socket *sock; |
sock | 81 | fs/nfs/sock.c | sock = socki_lookup(inode); |
sock | 82 | fs/nfs/sock.c | if (!sock) { |
sock | 105 | fs/nfs/sock.c | result = sock->ops->send(sock, (void *) start, len, 0, 0); |
sock | 163 | fs/nfs/sock.c | result = sock->ops->recvfrom(sock, (void *)&recv_xid, |
sock | 194 | fs/nfs/sock.c | (void)sock->ops->recvfrom(sock, (void *)&recv_xid, |
sock | 208 | fs/nfs/sock.c | result=sock->ops->recvfrom(sock, (void *)start, |
sock | 88 | include/linux/net.h | int (*create) (struct socket *sock, int protocol); |
sock | 90 | include/linux/net.h | int (*release) (struct socket *sock, struct socket *peer); |
sock | 91 | include/linux/net.h | int (*bind) (struct socket *sock, struct sockaddr *umyaddr, |
sock | 93 | include/linux/net.h | int (*connect) (struct socket *sock, struct sockaddr *uservaddr, |
sock | 96 | include/linux/net.h | int (*accept) (struct socket *sock, struct socket *newsock, |
sock | 98 | include/linux/net.h | int (*getname) (struct socket *sock, struct sockaddr *uaddr, |
sock | 100 | include/linux/net.h | int (*read) (struct socket *sock, char *ubuf, int size, |
sock | 102 | include/linux/net.h | int (*write) (struct socket *sock, char *ubuf, int size, |
sock | 104 | include/linux/net.h | int (*select) (struct socket *sock, int sel_type, |
sock | 106 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
sock | 108 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
sock | 109 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 111 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 113 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 115 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 117 | include/linux/net.h | int (*shutdown) (struct socket *sock, int flags); |
sock | 118 | include/linux/net.h | int (*setsockopt) (struct socket *sock, int level, int optname, |
sock | 120 | include/linux/net.h | int (*getsockopt) (struct socket *sock, int level, int optname, |
sock | 122 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
sock | 132 | include/linux/net.h | extern int sock_wake_async(struct socket *sock); |
sock | 45 | include/linux/skbuff.h | struct sock *sk; |
sock | 278 | include/linux/skbuff.h | extern struct sk_buff * skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err); |
sock | 279 | include/linux/skbuff.h | extern int datagram_select(struct sock *sk, int sel_type, select_table *wait); |
sock | 75 | net/inet/af_inet.c | struct sock *sk; |
sock | 103 | net/inet/af_inet.c | struct sock *sk; |
sock | 147 | net/inet/af_inet.c | void put_sock(unsigned short num, struct sock *sk) |
sock | 149 | net/inet/af_inet.c | struct sock *sk1; |
sock | 150 | net/inet/af_inet.c | struct sock *sk2; |
sock | 206 | net/inet/af_inet.c | static void remove_sock(struct sock *sk1) |
sock | 208 | net/inet/af_inet.c | struct sock *sk2; |
sock | 244 | net/inet/af_inet.c | void destroy_sock(struct sock *sk) |
sock | 360 | net/inet/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 362 | net/inet/af_inet.c | struct sock *sk; |
sock | 364 | net/inet/af_inet.c | sk = (struct sock *) sock->data; |
sock | 389 | net/inet/af_inet.c | static int inet_setsockopt(struct socket *sock, int level, int optname, |
sock | 392 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 405 | net/inet/af_inet.c | static int inet_getsockopt(struct socket *sock, int level, int optname, |
sock | 408 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 421 | net/inet/af_inet.c | static int inet_autobind(struct sock *sk) |
sock | 439 | net/inet/af_inet.c | static int inet_listen(struct socket *sock, int backlog) |
sock | 441 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 468 | net/inet/af_inet.c | static void def_callback1(struct sock *sk) |
sock | 474 | net/inet/af_inet.c | static void def_callback2(struct sock *sk,int len) |
sock | 491 | net/inet/af_inet.c | static int inet_create(struct socket *sock, int protocol) |
sock | 493 | net/inet/af_inet.c | struct sock *sk; |
sock | 497 | net/inet/af_inet.c | sk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL); |
sock | 502 | net/inet/af_inet.c | switch(sock->type) |
sock | 570 | net/inet/af_inet.c | sk->socket = sock; |
sock | 576 | net/inet/af_inet.c | sk->type = sock->type; |
sock | 632 | net/inet/af_inet.c | sk->sleep = sock->wait; |
sock | 648 | net/inet/af_inet.c | sock->data =(void *) sk; |
sock | 705 | net/inet/af_inet.c | return(inet_create(newsock,((struct sock *)(oldsock->data))->protocol)); |
sock | 715 | net/inet/af_inet.c | static int inet_release(struct socket *sock, struct socket *peer) |
sock | 717 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 764 | net/inet/af_inet.c | sock->data = NULL; |
sock | 774 | net/inet/af_inet.c | static int inet_bind(struct socket *sock, struct sockaddr *uaddr, |
sock | 778 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data, *sk2; |
sock | 855 | net/inet/af_inet.c | static int inet_error(struct sock *sk) |
sock | 872 | net/inet/af_inet.c | static int inet_connect(struct socket *sock, struct sockaddr * uaddr, |
sock | 875 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 877 | net/inet/af_inet.c | sock->conn = NULL; |
sock | 879 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && tcp_connected(sk->state)) |
sock | 881 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 886 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK)) |
sock | 889 | net/inet/af_inet.c | if (sock->state != SS_CONNECTING) |
sock | 899 | net/inet/af_inet.c | sock->state = SS_CONNECTING; |
sock | 902 | net/inet/af_inet.c | if (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING) |
sock | 904 | net/inet/af_inet.c | sock->state=SS_UNCONNECTED; |
sock | 929 | net/inet/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 936 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 940 | net/inet/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 959 | net/inet/af_inet.c | static int inet_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 961 | net/inet/af_inet.c | struct sock *sk1, *sk2; |
sock | 964 | net/inet/af_inet.c | sk1 = (struct sock *) sock->data; |
sock | 973 | net/inet/af_inet.c | struct sock *sk=(struct sock *)newsock->data; |
sock | 1041 | net/inet/af_inet.c | static int inet_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1045 | net/inet/af_inet.c | struct sock *sk; |
sock | 1048 | net/inet/af_inet.c | sk = (struct sock *) sock->data; |
sock | 1073 | net/inet/af_inet.c | static int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1076 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1090 | net/inet/af_inet.c | static int inet_recv(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1094 | net/inet/af_inet.c | return inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL); |
sock | 1097 | net/inet/af_inet.c | static int inet_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1099 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1109 | net/inet/af_inet.c | static int inet_send(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1112 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1126 | net/inet/af_inet.c | static int inet_write(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1128 | net/inet/af_inet.c | return inet_send(sock,ubuf,size,noblock,0); |
sock | 1131 | net/inet/af_inet.c | static int inet_sendto(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1134 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1152 | net/inet/af_inet.c | static int inet_shutdown(struct socket *sock, int how) |
sock | 1154 | net/inet/af_inet.c | struct sock *sk=(struct sock*)sock->data; |
sock | 1165 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED) |
sock | 1166 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1176 | net/inet/af_inet.c | static int inet_select(struct socket *sock, int sel_type, select_table *wait ) |
sock | 1178 | net/inet/af_inet.c | struct sock *sk=(struct sock *) sock->data; |
sock | 1196 | net/inet/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1198 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 1293 | net/inet/af_inet.c | struct sock *get_sock(struct proto *prot, unsigned short num, |
sock | 1297 | net/inet/af_inet.c | struct sock *s; |
sock | 1298 | net/inet/af_inet.c | struct sock *result = NULL; |
sock | 1357 | net/inet/af_inet.c | struct sock *get_sock_raw(struct sock *sk, |
sock | 1362 | net/inet/af_inet.c | struct sock *s; |
sock | 1386 | net/inet/af_inet.c | struct sock *get_sock_mcast(struct sock *sk, |
sock | 1391 | net/inet/af_inet.c | struct sock *s; |
sock | 53 | net/inet/datagram.c | struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err) |
sock | 174 | net/inet/datagram.c | int datagram_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 436 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, ndev, skb2, 1); |
sock | 526 | net/inet/icmp.c | ip_queue_xmit((struct sock *) NULL, ndev, skb2, 1); |
sock | 609 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, ndev, skb2, 1); |
sock | 740 | net/inet/icmp.c | int icmp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 35 | net/inet/icmp.h | extern int icmp_ioctl(struct sock *sk, int cmd, |
sock | 285 | net/inet/igmp.c | int ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr) |
sock | 319 | net/inet/igmp.c | int ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr) |
sock | 345 | net/inet/igmp.c | void ip_mc_drop_socket(struct sock *sk) |
sock | 66 | net/inet/igmp.h | extern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr); |
sock | 67 | net/inet/igmp.h | extern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr); |
sock | 68 | net/inet/igmp.h | extern void ip_mc_drop_socket(struct sock *sk); |
sock | 101 | net/inet/ip.c | extern void sort_send(struct sock *sk); |
sock | 128 | net/inet/ip.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 1107 | net/inet/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
sock | 1472 | net/inet/ip.c | struct sock *raw_sk=NULL; |
sock | 1661 | net/inet/ip.c | struct sock *sknext=NULL; |
sock | 1788 | net/inet/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
sock | 1992 | net/inet/ip.c | void ip_do_retransmit(struct sock *sk, int all) |
sock | 2086 | net/inet/ip.c | void ip_retransmit(struct sock *sk, int all) |
sock | 2162 | net/inet/ip.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 2428 | net/inet/ip.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 40 | net/inet/ip.h | extern void ip_mc_dropsocket(struct sock *); |
sock | 76 | net/inet/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
sock | 88 | net/inet/ip.h | extern void ip_queue_xmit(struct sock *sk, |
sock | 91 | net/inet/ip.h | extern void ip_retransmit(struct sock *sk, int all); |
sock | 92 | net/inet/ip.h | extern void ip_do_retransmit(struct sock *sk, int all); |
sock | 93 | net/inet/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
sock | 94 | net/inet/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
sock | 117 | net/inet/ipx.c | if(s->ipx_source_addr.sock==port) |
sock | 164 | net/inet/ipx.c | htons(s->ipx_source_addr.sock)); |
sock | 168 | net/inet/ipx.c | htons(s->ipx_dest_addr.sock)); |
sock | 469 | net/inet/ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 471 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 479 | net/inet/ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 484 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 517 | net/inet/ipx.c | static int ipx_getsockopt(struct socket *sock, int level, int optname, |
sock | 524 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 555 | net/inet/ipx.c | static int ipx_listen(struct socket *sock, int backlog) |
sock | 560 | net/inet/ipx.c | static void def_callback1(struct sock *sk) |
sock | 566 | net/inet/ipx.c | static void def_callback2(struct sock *sk, int len) |
sock | 575 | net/inet/ipx.c | static int ipx_create(struct socket *sock, int protocol) |
sock | 581 | net/inet/ipx.c | switch(sock->type) |
sock | 606 | net/inet/ipx.c | sk->socket=sock; |
sock | 607 | net/inet/ipx.c | sk->type=sock->type; |
sock | 615 | net/inet/ipx.c | if(sock!=NULL) |
sock | 617 | net/inet/ipx.c | sock->data=(void *)sk; |
sock | 618 | net/inet/ipx.c | sk->sleep=sock->wait; |
sock | 635 | net/inet/ipx.c | static int ipx_release(struct socket *sock, struct socket *peer) |
sock | 637 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 643 | net/inet/ipx.c | sock->data=NULL; |
sock | 661 | net/inet/ipx.c | static int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 668 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 697 | net/inet/ipx.c | sk->ipx_source_addr.sock=addr->sipx_port; |
sock | 730 | net/inet/ipx.c | static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 733 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 737 | net/inet/ipx.c | sock->state = SS_UNCONNECTED; |
sock | 751 | net/inet/ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 756 | net/inet/ipx.c | sk->ipx_dest_addr.sock=addr->sipx_port; |
sock | 761 | net/inet/ipx.c | sock->state = SS_CONNECTED; |
sock | 771 | net/inet/ipx.c | static int ipx_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 778 | net/inet/ipx.c | static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 785 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 800 | net/inet/ipx.c | sipx.sipx_port = addr->sock; |
sock | 810 | net/inet/ipx.c | ipx_socket *sock; |
sock | 939 | net/inet/ipx.c | sock=ipx_find_socket(ipx->ipx_dest.sock); |
sock | 940 | net/inet/ipx.c | if(sock==NULL) /* But not one of our sockets */ |
sock | 948 | net/inet/ipx.c | if (sock->ipx_source_addr.net == 0L) |
sock | 949 | net/inet/ipx.c | sock->ipx_source_addr.net = ln->net; |
sock | 951 | net/inet/ipx.c | if(sock_queue_rcv_skb(sock, skb)<0) |
sock | 960 | net/inet/ipx.c | static int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock, |
sock | 963 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 989 | net/inet/ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1007 | net/inet/ipx.c | usipx->sipx_port=sk->ipx_dest_addr.sock; |
sock | 1097 | net/inet/ipx.c | ipx->ipx_dest.sock=usipx->sipx_port; |
sock | 1136 | net/inet/ipx.c | static int ipx_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags) |
sock | 1138 | net/inet/ipx.c | return ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0); |
sock | 1141 | net/inet/ipx.c | static int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1144 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1173 | net/inet/ipx.c | sipx->sipx_port=ipx->ipx_source.sock; |
sock | 1183 | net/inet/ipx.c | static int ipx_write(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1185 | net/inet/ipx.c | return ipx_send(sock,ubuf,size,noblock,0); |
sock | 1189 | net/inet/ipx.c | static int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1192 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1195 | net/inet/ipx.c | return ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL); |
sock | 1198 | net/inet/ipx.c | static int ipx_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1200 | net/inet/ipx.c | return ipx_recv(sock,ubuf,size,noblock,0); |
sock | 1209 | net/inet/ipx.c | static int ipx_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1211 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1216 | net/inet/ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1220 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 21 | net/inet/ipx.h | unsigned short sock; |
sock | 62 | net/inet/ipx.h | typedef struct sock ipx_socket; |
sock | 69 | net/inet/packet.c | struct sock *sk; |
sock | 76 | net/inet/packet.c | sk = (struct sock *) pt->data; |
sock | 123 | net/inet/packet.c | static int packet_sendto(struct sock *sk, unsigned char *from, int len, |
sock | 207 | net/inet/packet.c | static int packet_write(struct sock *sk, unsigned char *buff, |
sock | 220 | net/inet/packet.c | static void packet_close(struct sock *sk, int timeout) |
sock | 238 | net/inet/packet.c | static int packet_init(struct sock *sk) |
sock | 255 | net/inet/packet.c | sk->pair = (struct sock *)p; |
sock | 266 | net/inet/packet.c | int packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 347 | net/inet/packet.c | int packet_read(struct sock *sk, unsigned char *buff, |
sock | 59 | net/inet/proc.c | struct sock **s_array; |
sock | 60 | net/inet/proc.c | struct sock *sp; |
sock | 69 | net/inet/raw.c | struct sock *sk; |
sock | 73 | net/inet/raw.c | sk = (struct sock *) protocol->data; |
sock | 97 | net/inet/raw.c | int raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, long saddr, long daddr) |
sock | 126 | net/inet/raw.c | static int raw_sendto(struct sock *sk, unsigned char *from, |
sock | 218 | net/inet/raw.c | static int raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 225 | net/inet/raw.c | static void raw_close(struct sock *sk, int timeout) |
sock | 231 | net/inet/raw.c | static int raw_init(struct sock *sk) |
sock | 242 | net/inet/raw.c | int raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 282 | net/inet/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
sock | 26 | net/inet/raw.h | extern int raw_recvfrom(struct sock *sk, unsigned char *to, |
sock | 29 | net/inet/raw.h | extern int raw_read(struct sock *sk, unsigned char *buff, |
sock | 31 | net/inet/raw.h | extern int raw_rcv(struct sock *, struct sk_buff *, struct device *, |
sock | 115 | net/inet/sock.c | int sock_setsockopt(struct sock *sk, int level, int optname, |
sock | 220 | net/inet/sock.c | int sock_getsockopt(struct sock *sk, int level, int optname, |
sock | 314 | net/inet/sock.c | struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 335 | net/inet/sock.c | struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 356 | net/inet/sock.c | unsigned long sock_rspace(struct sock *sk) |
sock | 373 | net/inet/sock.c | unsigned long sock_wspace(struct sock *sk) |
sock | 387 | net/inet/sock.c | void sock_wfree(struct sock *sk, struct sk_buff *skb, unsigned long size) |
sock | 404 | net/inet/sock.c | void sock_rfree(struct sock *sk, struct sk_buff *skb, unsigned long size) |
sock | 420 | net/inet/sock.c | struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) |
sock | 492 | net/inet/sock.c | int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) |
sock | 504 | net/inet/sock.c | void release_sock(struct sock *sk) |
sock | 92 | net/inet/sock.h | struct sock *next; |
sock | 93 | net/inet/sock.h | struct sock *pair; |
sock | 178 | net/inet/sock.h | void (*state_change)(struct sock *sk); |
sock | 179 | net/inet/sock.h | void (*data_ready)(struct sock *sk,int bytes); |
sock | 180 | net/inet/sock.h | void (*write_space)(struct sock *sk); |
sock | 181 | net/inet/sock.h | void (*error_report)(struct sock *sk); |
sock | 186 | net/inet/sock.h | struct sk_buff * (*wmalloc)(struct sock *sk, |
sock | 189 | net/inet/sock.h | struct sk_buff * (*rmalloc)(struct sock *sk, |
sock | 192 | net/inet/sock.h | void (*wfree)(struct sock *sk, struct sk_buff *skb, |
sock | 194 | net/inet/sock.h | void (*rfree)(struct sock *sk, struct sk_buff *skb, |
sock | 196 | net/inet/sock.h | unsigned long (*rspace)(struct sock *sk); |
sock | 197 | net/inet/sock.h | unsigned long (*wspace)(struct sock *sk); |
sock | 198 | net/inet/sock.h | void (*close)(struct sock *sk, int timeout); |
sock | 199 | net/inet/sock.h | int (*read)(struct sock *sk, unsigned char *to, |
sock | 201 | net/inet/sock.h | int (*write)(struct sock *sk, unsigned char *to, |
sock | 203 | net/inet/sock.h | int (*sendto)(struct sock *sk, |
sock | 207 | net/inet/sock.h | int (*recvfrom)(struct sock *sk, |
sock | 216 | net/inet/sock.h | int (*connect)(struct sock *sk, |
sock | 218 | net/inet/sock.h | struct sock * (*accept) (struct sock *sk, int flags); |
sock | 219 | net/inet/sock.h | void (*queue_xmit)(struct sock *sk, |
sock | 222 | net/inet/sock.h | void (*retransmit)(struct sock *sk, int all); |
sock | 223 | net/inet/sock.h | void (*write_wakeup)(struct sock *sk); |
sock | 224 | net/inet/sock.h | void (*read_wakeup)(struct sock *sk); |
sock | 229 | net/inet/sock.h | int (*select)(struct sock *sk, int which, |
sock | 231 | net/inet/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
sock | 233 | net/inet/sock.h | int (*init)(struct sock *sk); |
sock | 234 | net/inet/sock.h | void (*shutdown)(struct sock *sk, int how); |
sock | 235 | net/inet/sock.h | int (*setsockopt)(struct sock *sk, int level, int optname, |
sock | 237 | net/inet/sock.h | int (*getsockopt)(struct sock *sk, int level, int optname, |
sock | 241 | net/inet/sock.h | struct sock * sock_array[SOCK_ARRAY_SIZE]; |
sock | 260 | net/inet/sock.h | extern void destroy_sock(struct sock *sk); |
sock | 262 | net/inet/sock.h | extern void put_sock(unsigned short, struct sock *); |
sock | 263 | net/inet/sock.h | extern void release_sock(struct sock *sk); |
sock | 264 | net/inet/sock.h | extern struct sock *get_sock(struct proto *, unsigned short, |
sock | 267 | net/inet/sock.h | extern struct sock *get_sock_mcast(struct sock *, unsigned short, |
sock | 270 | net/inet/sock.h | extern struct sock *get_sock_raw(struct sock *, unsigned short, |
sock | 273 | net/inet/sock.h | extern struct sk_buff *sock_wmalloc(struct sock *sk, |
sock | 276 | net/inet/sock.h | extern struct sk_buff *sock_rmalloc(struct sock *sk, |
sock | 279 | net/inet/sock.h | extern void sock_wfree(struct sock *sk, struct sk_buff *skb, |
sock | 281 | net/inet/sock.h | extern void sock_rfree(struct sock *sk, struct sk_buff *skb, |
sock | 283 | net/inet/sock.h | extern unsigned long sock_rspace(struct sock *sk); |
sock | 284 | net/inet/sock.h | extern unsigned long sock_wspace(struct sock *sk); |
sock | 286 | net/inet/sock.h | extern int sock_setsockopt(struct sock *sk,int level,int op,char *optval,int optlen); |
sock | 288 | net/inet/sock.h | extern int sock_getsockopt(struct sock *sk,int level,int op,char *optval,int *optlen); |
sock | 289 | net/inet/sock.h | extern struct sk_buff *sock_alloc_send_skb(struct sock *skb, unsigned long size, int noblock, int *errcode); |
sock | 290 | net/inet/sock.h | extern int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); |
sock | 293 | net/inet/sock.h | extern struct sock *timer_base; |
sock | 295 | net/inet/sock.h | void delete_timer (struct sock *); |
sock | 296 | net/inet/sock.h | void reset_timer (struct sock *, int, unsigned long); |
sock | 185 | net/inet/tcp.c | static void tcp_close(struct sock *sk, int timeout); |
sock | 201 | net/inet/tcp.c | static __inline__ void tcp_set_state(struct sock *sk, int state) |
sock | 229 | net/inet/tcp.c | int tcp_select_window(struct sock *sk) |
sock | 254 | net/inet/tcp.c | static struct sk_buff *tcp_find_established(struct sock *s) |
sock | 276 | net/inet/tcp.c | static void tcp_close_pending (struct sock *sk, int timeout) |
sock | 287 | net/inet/tcp.c | static struct sk_buff *tcp_dequeue_established(struct sock *s) |
sock | 305 | net/inet/tcp.c | static void tcp_time_wait(struct sock *sk) |
sock | 321 | net/inet/tcp.c | static void tcp_retransmit(struct sock *sk, int all) |
sock | 353 | net/inet/tcp.c | struct sock *sk; |
sock | 410 | net/inet/tcp.c | static int tcp_readable(struct sock *sk) |
sock | 484 | net/inet/tcp.c | static int tcp_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 552 | net/inet/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 695 | net/inet/tcp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 702 | net/inet/tcp.c | static void tcp_send_skb(struct sock *sk, struct sk_buff *skb) |
sock | 764 | net/inet/tcp.c | struct sk_buff * tcp_dequeue_partial(struct sock * sk) |
sock | 780 | net/inet/tcp.c | static void tcp_send_partial(struct sock *sk) |
sock | 790 | net/inet/tcp.c | void tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk) |
sock | 817 | net/inet/tcp.c | struct sock *sk, |
sock | 910 | net/inet/tcp.c | int tcp_build_header(struct tcphdr *th, struct sock *sk, int push) |
sock | 935 | net/inet/tcp.c | static int tcp_write(struct sock *sk, unsigned char *from, |
sock | 1260 | net/inet/tcp.c | static int tcp_sendto(struct sock *sk, unsigned char *from, |
sock | 1280 | net/inet/tcp.c | static void tcp_read_wakeup(struct sock *sk) |
sock | 1357 | net/inet/tcp.c | static void cleanup_rbuf(struct sock *sk) |
sock | 1444 | net/inet/tcp.c | static int tcp_read_urg(struct sock * sk, int nonblock, |
sock | 1497 | net/inet/tcp.c | static int tcp_read(struct sock *sk, unsigned char *to, |
sock | 1647 | net/inet/tcp.c | void tcp_shutdown(struct sock *sk, int how) |
sock | 1789 | net/inet/tcp.c | tcp_recvfrom(struct sock *sk, unsigned char *to, |
sock | 1907 | net/inet/tcp.c | static void tcp_options(struct sock *sk, struct tcphdr *th) |
sock | 1984 | net/inet/tcp.c | static void tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
sock | 1991 | net/inet/tcp.c | struct sock *newsk; |
sock | 2034 | net/inet/tcp.c | newsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC); |
sock | 2250 | net/inet/tcp.c | static void tcp_close(struct sock *sk, int timeout) |
sock | 2461 | net/inet/tcp.c | tcp_write_xmit(struct sock *sk) |
sock | 2523 | net/inet/tcp.c | static int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
sock | 3045 | net/inet/tcp.c | static int tcp_data(struct sk_buff *skb, struct sock *sk, |
sock | 3359 | net/inet/tcp.c | static void tcp_check_urg(struct sock * sk, struct tcphdr * th) |
sock | 3387 | net/inet/tcp.c | static inline int tcp_urg(struct sock *sk, struct tcphdr *th, |
sock | 3426 | net/inet/tcp.c | static int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th, |
sock | 3504 | net/inet/tcp.c | static struct sock * |
sock | 3505 | net/inet/tcp.c | tcp_accept(struct sock *sk, int flags) |
sock | 3507 | net/inet/tcp.c | struct sock *newsk; |
sock | 3564 | net/inet/tcp.c | static int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 3719 | net/inet/tcp.c | tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
sock | 3779 | net/inet/tcp.c | static inline int tcp_clean_end(struct sock *sk) |
sock | 3794 | net/inet/tcp.c | struct sock *sk; |
sock | 4074 | net/inet/tcp.c | struct sock *psk=sk; |
sock | 4371 | net/inet/tcp.c | static void tcp_write_wakeup(struct sock *sk) |
sock | 4446 | net/inet/tcp.c | tcp_send_probe0(struct sock *sk) |
sock | 4464 | net/inet/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 4500 | net/inet/tcp.c | int tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 119 | net/inet/tcp.h | extern void tcp_shutdown (struct sock *sk, int how); |
sock | 125 | net/inet/tcp.h | extern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 127 | net/inet/tcp.h | extern int tcp_select_window(struct sock *sk); |
sock | 129 | net/inet/tcp.h | unsigned long daddr, int len, struct sock *sk); |
sock | 130 | net/inet/tcp.h | extern void tcp_send_probe0(struct sock *sk); |
sock | 131 | net/inet/tcp.h | extern void tcp_enqueue_partial(struct sk_buff *, struct sock *); |
sock | 132 | net/inet/tcp.h | extern struct sk_buff * tcp_dequeue_partial(struct sock *); |
sock | 53 | net/inet/timer.c | void delete_timer (struct sock *t) |
sock | 66 | net/inet/timer.c | void reset_timer (struct sock *t, int timeout, unsigned long len) |
sock | 88 | net/inet/timer.c | struct sock *sk = (struct sock*)data; |
sock | 81 | net/inet/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len); |
sock | 101 | net/inet/udp.c | struct sock *sk; |
sock | 232 | net/inet/udp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 249 | net/inet/udp.c | static int udp_send(struct sock *sk, struct sockaddr_in *sin, |
sock | 340 | net/inet/udp.c | static int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock, |
sock | 399 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 410 | net/inet/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 465 | net/inet/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 517 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 524 | net/inet/udp.c | int udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 544 | net/inet/udp.c | static void udp_close(struct sock *sk, int timeout) |
sock | 563 | net/inet/udp.c | struct sock *sk; |
sock | 609 | net/inet/udp.c | struct sock *sknext=NULL; |
sock | 654 | net/inet/udp.c | static int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len) |
sock | 36 | net/inet/udp.h | extern int udp_recvfrom(struct sock *sk, unsigned char *to, |
sock | 39 | net/inet/udp.h | extern int udp_read(struct sock *sk, unsigned char *buff, |
sock | 41 | net/inet/udp.h | extern int udp_connect(struct sock *sk, |
sock | 47 | net/inet/udp.h | extern int udp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 195 | net/socket.c | struct socket *sock; |
sock | 197 | net/socket.c | if ((sock = inode->i_socket) != NULL) |
sock | 199 | net/socket.c | if (sock->state != SS_FREE && SOCK_INODE(sock) == inode) |
sock | 200 | net/socket.c | return sock; |
sock | 203 | net/socket.c | for (sock = sockets; sock <= last_socket; ++sock) |
sock | 204 | net/socket.c | if (sock->state != SS_FREE && SOCK_INODE(sock) == inode) |
sock | 207 | net/socket.c | return(sock); |
sock | 235 | net/socket.c | struct socket *sock; |
sock | 240 | net/socket.c | for (sock = sockets; sock <= last_socket; ++sock) |
sock | 242 | net/socket.c | if (sock->state == SS_FREE) |
sock | 247 | net/socket.c | sock->state = SS_UNCONNECTED; |
sock | 249 | net/socket.c | sock->flags = 0; |
sock | 250 | net/socket.c | sock->ops = NULL; |
sock | 251 | net/socket.c | sock->data = NULL; |
sock | 252 | net/socket.c | sock->conn = NULL; |
sock | 253 | net/socket.c | sock->iconn = NULL; |
sock | 254 | net/socket.c | sock->fasync_list = NULL; |
sock | 262 | net/socket.c | if (!(SOCK_INODE(sock) = get_empty_inode())) |
sock | 265 | net/socket.c | sock->state = SS_FREE; |
sock | 268 | net/socket.c | SOCK_INODE(sock)->i_mode = S_IFSOCK; |
sock | 269 | net/socket.c | SOCK_INODE(sock)->i_uid = current->euid; |
sock | 270 | net/socket.c | SOCK_INODE(sock)->i_gid = current->egid; |
sock | 271 | net/socket.c | SOCK_INODE(sock)->i_socket = sock; |
sock | 273 | net/socket.c | sock->wait = &SOCK_INODE(sock)->i_wait; |
sock | 274 | net/socket.c | return(sock); |
sock | 308 | net/socket.c | static void sock_release(struct socket *sock) |
sock | 314 | net/socket.c | if ((oldstate = sock->state) != SS_UNCONNECTED) |
sock | 315 | net/socket.c | sock->state = SS_DISCONNECTING; |
sock | 321 | net/socket.c | for (peersock = sock->iconn; peersock; peersock = nextsock) |
sock | 332 | net/socket.c | peersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL; |
sock | 333 | net/socket.c | if (sock->ops) |
sock | 334 | net/socket.c | sock->ops->release(sock, peersock); |
sock | 337 | net/socket.c | inode = SOCK_INODE(sock); |
sock | 338 | net/socket.c | sock->state = SS_FREE; /* this really releases us */ |
sock | 368 | net/socket.c | struct socket *sock; |
sock | 371 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 376 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 385 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
sock | 395 | net/socket.c | struct socket *sock; |
sock | 398 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 404 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 414 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
sock | 435 | net/socket.c | struct socket *sock; |
sock | 437 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 442 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
sock | 448 | net/socket.c | struct socket *sock; |
sock | 450 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 460 | net/socket.c | if (sock->ops && sock->ops->select) |
sock | 461 | net/socket.c | return(sock->ops->select(sock, sel_type, wait)); |
sock | 468 | net/socket.c | struct socket *sock; |
sock | 477 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 483 | net/socket.c | sock_release(sock); |
sock | 493 | net/socket.c | struct socket *sock; |
sock | 503 | net/socket.c | sock = socki_lookup(inode); |
sock | 505 | net/socket.c | prev=&(sock->fasync_list); |
sock | 524 | net/socket.c | fna->fa_next=sock->fasync_list; |
sock | 525 | net/socket.c | sock->fasync_list=fna; |
sock | 539 | net/socket.c | int sock_wake_async(struct socket *sock) |
sock | 541 | net/socket.c | if (!sock || !sock->fasync_list) |
sock | 543 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 628 | net/socket.c | struct socket *sock; |
sock | 663 | net/socket.c | if (!(sock = sock_alloc(1))) |
sock | 669 | net/socket.c | sock->type = type; |
sock | 670 | net/socket.c | sock->ops = ops; |
sock | 671 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
sock | 673 | net/socket.c | sock_release(sock); |
sock | 677 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
sock | 679 | net/socket.c | sock_release(sock); |
sock | 757 | net/socket.c | struct socket *sock; |
sock | 765 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 771 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
sock | 787 | net/socket.c | struct socket *sock; |
sock | 791 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 794 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 799 | net/socket.c | if (sock->ops && sock->ops->listen) |
sock | 800 | net/socket.c | sock->ops->listen(sock, backlog); |
sock | 801 | net/socket.c | sock->flags |= SO_ACCEPTCON; |
sock | 817 | net/socket.c | struct socket *sock, *newsock; |
sock | 824 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 826 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 830 | net/socket.c | if (!(sock->flags & SO_ACCEPTCON)) |
sock | 840 | net/socket.c | newsock->type = sock->type; |
sock | 841 | net/socket.c | newsock->ops = sock->ops; |
sock | 842 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
sock | 848 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
sock | 877 | net/socket.c | struct socket *sock; |
sock | 885 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 891 | net/socket.c | switch(sock->state) |
sock | 898 | net/socket.c | if(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */ |
sock | 909 | net/socket.c | return(sock->ops->connect(sock, uservaddr, |
sock | 914 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
sock | 929 | net/socket.c | struct socket *sock; |
sock | 936 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 939 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
sock | 954 | net/socket.c | struct socket *sock; |
sock | 961 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 964 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
sock | 979 | net/socket.c | struct socket *sock; |
sock | 985 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 993 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
sock | 1005 | net/socket.c | struct socket *sock; |
sock | 1012 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1024 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 1039 | net/socket.c | struct socket *sock; |
sock | 1046 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1057 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
sock | 1069 | net/socket.c | struct socket *sock; |
sock | 1076 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1087 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 1105 | net/socket.c | struct socket *sock; |
sock | 1110 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1113 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
sock | 1123 | net/socket.c | struct socket *sock; |
sock | 1128 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1131 | net/socket.c | if (!sock->ops || !sock->ops->getsockopt) |
sock | 1133 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
sock | 1143 | net/socket.c | struct socket *sock; |
sock | 1148 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1151 | net/socket.c | return(sock->ops->shutdown(sock, how)); |
sock | 1161 | net/socket.c | struct socket *sock; |
sock | 1163 | net/socket.c | sock = socki_lookup (filp->f_inode); |
sock | 1164 | net/socket.c | if (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL) |
sock | 1165 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
sock | 1374 | net/socket.c | struct socket *sock; |
sock | 1382 | net/socket.c | for (sock = sockets; sock <= last_socket; ++sock) |
sock | 1383 | net/socket.c | sock->state = SS_FREE; |
sock | 61 | net/unix/sock.c | static int unix_proto_create(struct socket *sock, int protocol); |
sock | 63 | net/unix/sock.c | static int unix_proto_release(struct socket *sock, struct socket *peer); |
sock | 64 | net/unix/sock.c | static int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr, |
sock | 66 | net/unix/sock.c | static int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr, |
sock | 69 | net/unix/sock.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock, |
sock | 71 | net/unix/sock.c | static int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr, |
sock | 73 | net/unix/sock.c | static int unix_proto_read(struct socket *sock, char *ubuf, int size, |
sock | 75 | net/unix/sock.c | static int unix_proto_write(struct socket *sock, char *ubuf, int size, |
sock | 77 | net/unix/sock.c | static int unix_proto_select(struct socket *sock, int sel_type, select_table * wait); |
sock | 78 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
sock | 80 | net/unix/sock.c | static int unix_proto_listen(struct socket *sock, int backlog); |
sock | 81 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
sock | 83 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
sock | 85 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
sock | 88 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
sock | 92 | net/unix/sock.c | static int unix_proto_shutdown(struct socket *sock, int how); |
sock | 94 | net/unix/sock.c | static int unix_proto_setsockopt(struct socket *sock, int level, int optname, |
sock | 96 | net/unix/sock.c | static int unix_proto_getsockopt(struct socket *sock, int level, int optname, |
sock | 137 | net/unix/sock.c | static int unix_proto_listen(struct socket *sock, int backlog) |
sock | 146 | net/unix/sock.c | static int unix_proto_setsockopt(struct socket *sock, int level, int optname, |
sock | 153 | net/unix/sock.c | static int unix_proto_getsockopt(struct socket *sock, int level, int optname, |
sock | 164 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
sock | 170 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
sock | 180 | net/unix/sock.c | static int unix_proto_shutdown(struct socket *sock, int how) |
sock | 190 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
sock | 195 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
sock | 203 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
sock | 208 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |
sock | 307 | net/unix/sock.c | static int unix_proto_create(struct socket *sock, int protocol) |
sock | 332 | net/unix/sock.c | upd->socket = sock; |
sock | 333 | net/unix/sock.c | UN_DATA(sock) = upd; |
sock | 353 | net/unix/sock.c | static int unix_proto_release(struct socket *sock, struct socket *peer) |
sock | 355 | net/unix/sock.c | struct unix_proto_data *upd = UN_DATA(sock); |
sock | 360 | net/unix/sock.c | if (upd->socket != sock) |
sock | 372 | net/unix/sock.c | UN_DATA(sock) = NULL; |
sock | 392 | net/unix/sock.c | static int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr, |
sock | 396 | net/unix/sock.c | struct unix_proto_data *upd = UN_DATA(sock); |
sock | 446 | net/unix/sock.c | static int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr, |
sock | 462 | net/unix/sock.c | if (sock->state == SS_CONNECTING) |
sock | 464 | net/unix/sock.c | if (sock->state == SS_CONNECTED) |
sock | 499 | net/unix/sock.c | if ((i = sock_awaitconn(sock, serv_upd->socket)) < 0) |
sock | 504 | net/unix/sock.c | if (sock->conn) |
sock | 506 | net/unix/sock.c | unix_data_ref(UN_DATA(sock->conn)); |
sock | 507 | net/unix/sock.c | UN_DATA(sock)->peerupd = UN_DATA(sock->conn); /* ref server */ |
sock | 536 | net/unix/sock.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 545 | net/unix/sock.c | while(!(clientsock = sock->iconn)) |
sock | 549 | net/unix/sock.c | interruptible_sleep_on(sock->wait); |
sock | 561 | net/unix/sock.c | sock->iconn = clientsock->next; |
sock | 569 | net/unix/sock.c | UN_DATA(newsock)->sockaddr_un = UN_DATA(sock)->sockaddr_un; |
sock | 570 | net/unix/sock.c | UN_DATA(newsock)->sockaddr_len = UN_DATA(sock)->sockaddr_len; |
sock | 580 | net/unix/sock.c | static int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr, |
sock | 588 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 592 | net/unix/sock.c | upd = UN_DATA(sock->conn); |
sock | 595 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 608 | net/unix/sock.c | static int unix_proto_read(struct socket *sock, char *ubuf, int size, int nonblock) |
sock | 616 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 619 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 621 | net/unix/sock.c | return((sock->state == SS_DISCONNECTING) ? 0 : -EINVAL); |
sock | 625 | net/unix/sock.c | interruptible_sleep_on(sock->wait); |
sock | 657 | net/unix/sock.c | if (sock->state == SS_CONNECTED) |
sock | 658 | net/unix/sock.c | wake_up_interruptible(sock->conn->wait); |
sock | 673 | net/unix/sock.c | static int unix_proto_write(struct socket *sock, char *ubuf, int size, int nonblock) |
sock | 680 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 682 | net/unix/sock.c | if (sock->state == SS_DISCONNECTING) |
sock | 689 | net/unix/sock.c | pupd = UN_DATA(sock)->peerupd; /* safer than sock->conn */ |
sock | 695 | net/unix/sock.c | interruptible_sleep_on(sock->wait); |
sock | 700 | net/unix/sock.c | if (sock->state == SS_DISCONNECTING) |
sock | 730 | net/unix/sock.c | if (sock->state == SS_DISCONNECTING) |
sock | 747 | net/unix/sock.c | if (sock->state == SS_CONNECTED) |
sock | 748 | net/unix/sock.c | wake_up_interruptible(sock->conn->wait); |
sock | 761 | net/unix/sock.c | static int unix_proto_select(struct socket *sock, int sel_type, select_table * wait) |
sock | 768 | net/unix/sock.c | if (sock->flags & SO_ACCEPTCON) |
sock | 772 | net/unix/sock.c | if (sock->iconn) |
sock | 774 | net/unix/sock.c | select_wait(sock->wait, wait); |
sock | 775 | net/unix/sock.c | return(sock->iconn ? 1 : 0); |
sock | 777 | net/unix/sock.c | select_wait(sock->wait, wait); |
sock | 783 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 786 | net/unix/sock.c | else if (sock->state != SS_CONNECTED) |
sock | 790 | net/unix/sock.c | select_wait(sock->wait,wait); |
sock | 796 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 800 | net/unix/sock.c | peerupd = UN_DATA(sock->conn); |
sock | 803 | net/unix/sock.c | select_wait(sock->wait,wait); |
sock | 819 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 824 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 825 | net/unix/sock.c | peerupd = (sock->state == SS_CONNECTED) ? UN_DATA(sock->conn) : NULL; |
sock | 830 | net/unix/sock.c | if (sock->flags & SO_ACCEPTCON) |
sock | 841 | net/unix/sock.c | if (sock->flags & SO_ACCEPTCON) |