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 | 51 | fs/nfs/sock.c | struct socket *sock; |
sock | 76 | fs/nfs/sock.c | sock = socki_lookup(inode); |
sock | 77 | fs/nfs/sock.c | if (!sock) { |
sock | 100 | fs/nfs/sock.c | result = sock->ops->send(sock, (void *) start, len, 0, 0); |
sock | 158 | fs/nfs/sock.c | result = sock->ops->recvfrom(sock, (void *)&recv_xid, |
sock | 189 | fs/nfs/sock.c | (void)sock->ops->recvfrom(sock, (void *)&recv_xid, |
sock | 212 | fs/nfs/sock.c | result=sock->ops->recvfrom(sock, (void *)start, |
sock | 87 | include/linux/net.h | int (*create) (struct socket *sock, int protocol); |
sock | 89 | include/linux/net.h | int (*release) (struct socket *sock, struct socket *peer); |
sock | 90 | include/linux/net.h | int (*bind) (struct socket *sock, struct sockaddr *umyaddr, |
sock | 92 | include/linux/net.h | int (*connect) (struct socket *sock, struct sockaddr *uservaddr, |
sock | 95 | include/linux/net.h | int (*accept) (struct socket *sock, struct socket *newsock, |
sock | 97 | include/linux/net.h | int (*getname) (struct socket *sock, struct sockaddr *uaddr, |
sock | 99 | include/linux/net.h | int (*read) (struct socket *sock, char *ubuf, int size, |
sock | 101 | include/linux/net.h | int (*write) (struct socket *sock, char *ubuf, int size, |
sock | 103 | include/linux/net.h | int (*select) (struct socket *sock, int sel_type, |
sock | 105 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
sock | 107 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
sock | 108 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 110 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 112 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 114 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 116 | include/linux/net.h | int (*shutdown) (struct socket *sock, int flags); |
sock | 117 | include/linux/net.h | int (*setsockopt) (struct socket *sock, int level, int optname, |
sock | 119 | include/linux/net.h | int (*getsockopt) (struct socket *sock, int level, int optname, |
sock | 121 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
sock | 45 | include/linux/skbuff.h | struct sock *sk; |
sock | 138 | include/linux/skbuff.h | extern struct sk_buff * skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err); |
sock | 139 | include/linux/skbuff.h | extern int datagram_select(struct sock *sk, int sel_type, select_table *wait); |
sock | 69 | net/inet/af_inet.c | struct sock *sk; |
sock | 97 | net/inet/af_inet.c | struct sock *sk; |
sock | 141 | net/inet/af_inet.c | void put_sock(unsigned short num, struct sock *sk) |
sock | 143 | net/inet/af_inet.c | struct sock *sk1; |
sock | 144 | net/inet/af_inet.c | struct sock *sk2; |
sock | 200 | net/inet/af_inet.c | static void remove_sock(struct sock *sk1) |
sock | 202 | net/inet/af_inet.c | struct sock *sk2; |
sock | 238 | net/inet/af_inet.c | void destroy_sock(struct sock *sk) |
sock | 345 | net/inet/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 347 | net/inet/af_inet.c | struct sock *sk; |
sock | 349 | net/inet/af_inet.c | sk = (struct sock *) sock->data; |
sock | 374 | net/inet/af_inet.c | static int inet_setsockopt(struct socket *sock, int level, int optname, |
sock | 377 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 390 | net/inet/af_inet.c | static int inet_getsockopt(struct socket *sock, int level, int optname, |
sock | 393 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 406 | net/inet/af_inet.c | static int inet_autobind(struct sock *sk) |
sock | 424 | net/inet/af_inet.c | static int inet_listen(struct socket *sock, int backlog) |
sock | 426 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 446 | net/inet/af_inet.c | static void def_callback1(struct sock *sk) |
sock | 452 | net/inet/af_inet.c | static void def_callback2(struct sock *sk,int len) |
sock | 466 | net/inet/af_inet.c | static int inet_create(struct socket *sock, int protocol) |
sock | 468 | net/inet/af_inet.c | struct sock *sk; |
sock | 472 | net/inet/af_inet.c | sk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL); |
sock | 477 | net/inet/af_inet.c | switch(sock->type) |
sock | 545 | net/inet/af_inet.c | sk->socket = sock; |
sock | 551 | net/inet/af_inet.c | sk->type = sock->type; |
sock | 607 | net/inet/af_inet.c | sk->sleep = sock->wait; |
sock | 623 | net/inet/af_inet.c | sock->data =(void *) sk; |
sock | 674 | net/inet/af_inet.c | return(inet_create(newsock,((struct sock *)(oldsock->data))->protocol)); |
sock | 684 | net/inet/af_inet.c | static int inet_release(struct socket *sock, struct socket *peer) |
sock | 686 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 733 | net/inet/af_inet.c | sock->data = NULL; |
sock | 742 | net/inet/af_inet.c | static int inet_bind(struct socket *sock, struct sockaddr *uaddr, |
sock | 746 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data, *sk2; |
sock | 823 | net/inet/af_inet.c | static int inet_error(struct sock *sk) |
sock | 840 | net/inet/af_inet.c | static int inet_connect(struct socket *sock, struct sockaddr * uaddr, |
sock | 843 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 845 | net/inet/af_inet.c | sock->conn = NULL; |
sock | 847 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && tcp_connected(sk->state)) |
sock | 849 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 854 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK)) |
sock | 857 | net/inet/af_inet.c | if (sock->state != SS_CONNECTING) |
sock | 867 | net/inet/af_inet.c | sock->state = SS_CONNECTING; |
sock | 887 | net/inet/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 894 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 898 | net/inet/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 917 | net/inet/af_inet.c | static int inet_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 919 | net/inet/af_inet.c | struct sock *sk1, *sk2; |
sock | 922 | net/inet/af_inet.c | sk1 = (struct sock *) sock->data; |
sock | 931 | net/inet/af_inet.c | struct sock *sk=(struct sock *)newsock->data; |
sock | 997 | net/inet/af_inet.c | static int inet_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1001 | net/inet/af_inet.c | struct sock *sk; |
sock | 1004 | net/inet/af_inet.c | sk = (struct sock *) sock->data; |
sock | 1029 | net/inet/af_inet.c | static int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1032 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1046 | net/inet/af_inet.c | static int inet_recv(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1050 | net/inet/af_inet.c | return inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL); |
sock | 1053 | net/inet/af_inet.c | static int inet_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1055 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1065 | net/inet/af_inet.c | static int inet_send(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1068 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1082 | net/inet/af_inet.c | static int inet_write(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1084 | net/inet/af_inet.c | return inet_send(sock,ubuf,size,noblock,0); |
sock | 1087 | net/inet/af_inet.c | static int inet_sendto(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1090 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1108 | net/inet/af_inet.c | static int inet_shutdown(struct socket *sock, int how) |
sock | 1110 | net/inet/af_inet.c | struct sock *sk=(struct sock*)sock->data; |
sock | 1121 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED) |
sock | 1122 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1132 | net/inet/af_inet.c | static int inet_select(struct socket *sock, int sel_type, select_table *wait ) |
sock | 1134 | net/inet/af_inet.c | struct sock *sk=(struct sock *) sock->data; |
sock | 1152 | net/inet/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1154 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 1236 | net/inet/af_inet.c | struct sock *get_sock(struct proto *prot, unsigned short num, |
sock | 1240 | 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 | 405 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, dev, skb2, 1); |
sock | 483 | net/inet/icmp.c | ip_queue_xmit((struct sock *) NULL, dev, skb2, 1); |
sock | 566 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, dev, skb2, 1); |
sock | 697 | 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 | 92 | net/inet/ip.c | extern void sort_send(struct sock *sk); |
sock | 109 | net/inet/ip.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 1084 | net/inet/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
sock | 1630 | net/inet/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
sock | 1796 | net/inet/ip.c | void ip_do_retransmit(struct sock *sk, int all) |
sock | 1892 | net/inet/ip.c | void ip_retransmit(struct sock *sk, int all) |
sock | 1924 | net/inet/ip.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 1967 | net/inet/ip.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 69 | net/inet/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
sock | 81 | net/inet/ip.h | extern void ip_queue_xmit(struct sock *sk, |
sock | 84 | net/inet/ip.h | extern void ip_retransmit(struct sock *sk, int all); |
sock | 85 | net/inet/ip.h | extern void ip_do_retransmit(struct sock *sk, int all); |
sock | 86 | net/inet/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
sock | 87 | net/inet/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
sock | 114 | net/inet/ipx.c | if(s->ipx_source_addr.sock==port) |
sock | 161 | net/inet/ipx.c | htons(s->ipx_source_addr.sock)); |
sock | 165 | net/inet/ipx.c | htons(s->ipx_dest_addr.sock)); |
sock | 466 | net/inet/ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 468 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 476 | net/inet/ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 481 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 514 | net/inet/ipx.c | static int ipx_getsockopt(struct socket *sock, int level, int optname, |
sock | 521 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 552 | net/inet/ipx.c | static int ipx_listen(struct socket *sock, int backlog) |
sock | 557 | net/inet/ipx.c | static void def_callback1(struct sock *sk) |
sock | 563 | net/inet/ipx.c | static void def_callback2(struct sock *sk, int len) |
sock | 569 | net/inet/ipx.c | static int ipx_create(struct socket *sock, int protocol) |
sock | 575 | net/inet/ipx.c | switch(sock->type) |
sock | 600 | net/inet/ipx.c | sk->socket=sock; |
sock | 601 | net/inet/ipx.c | sk->type=sock->type; |
sock | 609 | net/inet/ipx.c | if(sock!=NULL) |
sock | 611 | net/inet/ipx.c | sock->data=(void *)sk; |
sock | 612 | net/inet/ipx.c | sk->sleep=sock->wait; |
sock | 629 | net/inet/ipx.c | static int ipx_release(struct socket *sock, struct socket *peer) |
sock | 631 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 637 | net/inet/ipx.c | sock->data=NULL; |
sock | 652 | net/inet/ipx.c | static int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 659 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 688 | net/inet/ipx.c | sk->ipx_source_addr.sock=addr->sipx_port; |
sock | 721 | net/inet/ipx.c | static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 724 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 728 | net/inet/ipx.c | sock->state = SS_UNCONNECTED; |
sock | 742 | net/inet/ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 747 | net/inet/ipx.c | sk->ipx_dest_addr.sock=addr->sipx_port; |
sock | 751 | net/inet/ipx.c | sock->state = SS_CONNECTED; |
sock | 761 | net/inet/ipx.c | static int ipx_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 768 | net/inet/ipx.c | static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 775 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 789 | net/inet/ipx.c | sipx.sipx_port = addr->sock; |
sock | 799 | net/inet/ipx.c | ipx_socket *sock; |
sock | 928 | net/inet/ipx.c | sock=ipx_find_socket(ipx->ipx_dest.sock); |
sock | 929 | net/inet/ipx.c | if(sock==NULL) /* But not one of our sockets */ |
sock | 937 | net/inet/ipx.c | if (sock->ipx_source_addr.net == 0L) |
sock | 938 | net/inet/ipx.c | sock->ipx_source_addr.net = ln->net; |
sock | 940 | net/inet/ipx.c | if(sock->rmem_alloc>=sock->rcvbuf) |
sock | 946 | net/inet/ipx.c | sock->rmem_alloc+=skb->mem_len; |
sock | 947 | net/inet/ipx.c | skb->sk = sock; |
sock | 949 | net/inet/ipx.c | skb_queue_tail(&sock->receive_queue,skb); |
sock | 950 | net/inet/ipx.c | if(!sock->dead) |
sock | 951 | net/inet/ipx.c | sock->data_ready(sock,skb->len); |
sock | 955 | net/inet/ipx.c | static int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock, |
sock | 958 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 984 | net/inet/ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1001 | net/inet/ipx.c | usipx->sipx_port=sk->ipx_dest_addr.sock; |
sock | 1091 | net/inet/ipx.c | ipx->ipx_dest.sock=usipx->sipx_port; |
sock | 1130 | net/inet/ipx.c | static int ipx_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags) |
sock | 1132 | net/inet/ipx.c | return ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0); |
sock | 1135 | net/inet/ipx.c | static int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1138 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1167 | net/inet/ipx.c | sipx->sipx_port=ipx->ipx_source.sock; |
sock | 1177 | net/inet/ipx.c | static int ipx_write(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1179 | net/inet/ipx.c | return ipx_send(sock,ubuf,size,noblock,0); |
sock | 1183 | net/inet/ipx.c | static int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1186 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1189 | net/inet/ipx.c | return ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL); |
sock | 1192 | net/inet/ipx.c | static int ipx_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1194 | net/inet/ipx.c | return ipx_recv(sock,ubuf,size,noblock,0); |
sock | 1203 | net/inet/ipx.c | static int ipx_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1205 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1210 | net/inet/ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1214 | 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 | 67 | net/inet/raw.c | struct sock *sk; |
sock | 71 | net/inet/raw.c | sk = (struct sock *) protocol->data; |
sock | 98 | net/inet/raw.c | struct sock *sk; |
sock | 109 | net/inet/raw.c | sk = (struct sock *) protocol->data; |
sock | 147 | net/inet/raw.c | static int raw_sendto(struct sock *sk, unsigned char *from, |
sock | 267 | net/inet/raw.c | static int raw_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 274 | net/inet/raw.c | static void raw_close(struct sock *sk, int timeout) |
sock | 286 | net/inet/raw.c | static int raw_init(struct sock *sk) |
sock | 303 | net/inet/raw.c | sk->pair = (struct sock *)p; |
sock | 314 | net/inet/raw.c | int raw_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 351 | net/inet/raw.c | int raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags) |
sock | 30 | net/inet/raw.h | extern int raw_recvfrom(struct sock *sk, unsigned char *to, |
sock | 33 | net/inet/raw.h | extern int raw_read(struct sock *sk, unsigned char *buff, |
sock | 114 | net/inet/sock.c | int sock_setsockopt(struct sock *sk, int level, int optname, |
sock | 217 | net/inet/sock.c | int sock_getsockopt(struct sock *sk, int level, int optname, |
sock | 311 | net/inet/sock.c | struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 332 | net/inet/sock.c | struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 353 | net/inet/sock.c | unsigned long sock_rspace(struct sock *sk) |
sock | 370 | net/inet/sock.c | unsigned long sock_wspace(struct sock *sk) |
sock | 384 | net/inet/sock.c | void sock_wfree(struct sock *sk, struct sk_buff *skb, unsigned long size) |
sock | 399 | net/inet/sock.c | void sock_rfree(struct sock *sk, struct sk_buff *skb, unsigned long size) |
sock | 410 | net/inet/sock.c | void release_sock(struct sock *sk) |
sock | 90 | net/inet/sock.h | struct sock *next; |
sock | 91 | net/inet/sock.h | struct sock *pair; |
sock | 170 | net/inet/sock.h | void (*state_change)(struct sock *sk); |
sock | 171 | net/inet/sock.h | void (*data_ready)(struct sock *sk,int bytes); |
sock | 172 | net/inet/sock.h | void (*write_space)(struct sock *sk); |
sock | 173 | net/inet/sock.h | void (*error_report)(struct sock *sk); |
sock | 178 | net/inet/sock.h | struct sk_buff * (*wmalloc)(struct sock *sk, |
sock | 181 | net/inet/sock.h | struct sk_buff * (*rmalloc)(struct sock *sk, |
sock | 184 | net/inet/sock.h | void (*wfree)(struct sock *sk, struct sk_buff *skb, |
sock | 186 | net/inet/sock.h | void (*rfree)(struct sock *sk, struct sk_buff *skb, |
sock | 188 | net/inet/sock.h | unsigned long (*rspace)(struct sock *sk); |
sock | 189 | net/inet/sock.h | unsigned long (*wspace)(struct sock *sk); |
sock | 190 | net/inet/sock.h | void (*close)(struct sock *sk, int timeout); |
sock | 191 | net/inet/sock.h | int (*read)(struct sock *sk, unsigned char *to, |
sock | 193 | net/inet/sock.h | int (*write)(struct sock *sk, unsigned char *to, |
sock | 195 | net/inet/sock.h | int (*sendto)(struct sock *sk, |
sock | 199 | net/inet/sock.h | int (*recvfrom)(struct sock *sk, |
sock | 208 | net/inet/sock.h | int (*connect)(struct sock *sk, |
sock | 210 | net/inet/sock.h | struct sock * (*accept) (struct sock *sk, int flags); |
sock | 211 | net/inet/sock.h | void (*queue_xmit)(struct sock *sk, |
sock | 214 | net/inet/sock.h | void (*retransmit)(struct sock *sk, int all); |
sock | 215 | net/inet/sock.h | void (*write_wakeup)(struct sock *sk); |
sock | 216 | net/inet/sock.h | void (*read_wakeup)(struct sock *sk); |
sock | 221 | net/inet/sock.h | int (*select)(struct sock *sk, int which, |
sock | 223 | net/inet/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
sock | 225 | net/inet/sock.h | int (*init)(struct sock *sk); |
sock | 226 | net/inet/sock.h | void (*shutdown)(struct sock *sk, int how); |
sock | 227 | net/inet/sock.h | int (*setsockopt)(struct sock *sk, int level, int optname, |
sock | 229 | net/inet/sock.h | int (*getsockopt)(struct sock *sk, int level, int optname, |
sock | 233 | net/inet/sock.h | struct sock * sock_array[SOCK_ARRAY_SIZE]; |
sock | 252 | net/inet/sock.h | extern void destroy_sock(struct sock *sk); |
sock | 254 | net/inet/sock.h | extern void put_sock(unsigned short, struct sock *); |
sock | 255 | net/inet/sock.h | extern void release_sock(struct sock *sk); |
sock | 256 | net/inet/sock.h | extern struct sock *get_sock(struct proto *, unsigned short, |
sock | 259 | net/inet/sock.h | extern void print_sk(struct sock *); |
sock | 260 | net/inet/sock.h | extern struct sk_buff *sock_wmalloc(struct sock *sk, |
sock | 263 | net/inet/sock.h | extern struct sk_buff *sock_rmalloc(struct sock *sk, |
sock | 266 | net/inet/sock.h | extern void sock_wfree(struct sock *sk, struct sk_buff *skb, |
sock | 268 | net/inet/sock.h | extern void sock_rfree(struct sock *sk, struct sk_buff *skb, |
sock | 270 | net/inet/sock.h | extern unsigned long sock_rspace(struct sock *sk); |
sock | 271 | net/inet/sock.h | extern unsigned long sock_wspace(struct sock *sk); |
sock | 273 | net/inet/sock.h | extern int sock_setsockopt(struct sock *sk,int level,int op,char *optval,int optlen); |
sock | 274 | net/inet/sock.h | extern int sock_getsockopt(struct sock *sk,int level,int op,char *optval,int *optlen); |
sock | 277 | net/inet/sock.h | extern struct sock *timer_base; |
sock | 279 | net/inet/sock.h | void delete_timer (struct sock *); |
sock | 280 | net/inet/sock.h | void reset_timer (struct sock *, int, unsigned long); |
sock | 192 | net/inet/tcp.c | int tcp_select_window(struct sock *sk) |
sock | 216 | net/inet/tcp.c | static void tcp_time_wait(struct sock *sk) |
sock | 232 | net/inet/tcp.c | static void tcp_retransmit(struct sock *sk, int all) |
sock | 264 | net/inet/tcp.c | struct sock *sk; |
sock | 321 | net/inet/tcp.c | static int tcp_readable(struct sock *sk) |
sock | 380 | net/inet/tcp.c | static int tcp_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 464 | net/inet/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 607 | net/inet/tcp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 614 | net/inet/tcp.c | static void tcp_send_skb(struct sock *sk, struct sk_buff *skb) |
sock | 676 | net/inet/tcp.c | struct sk_buff * tcp_dequeue_partial(struct sock * sk) |
sock | 692 | net/inet/tcp.c | static void tcp_send_partial(struct sock *sk) |
sock | 702 | net/inet/tcp.c | void tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk) |
sock | 729 | net/inet/tcp.c | struct sock *sk, |
sock | 821 | net/inet/tcp.c | static int tcp_build_header(struct tcphdr *th, struct sock *sk, int push) |
sock | 846 | net/inet/tcp.c | static int tcp_write(struct sock *sk, unsigned char *from, |
sock | 1171 | net/inet/tcp.c | static int tcp_sendto(struct sock *sk, unsigned char *from, |
sock | 1189 | net/inet/tcp.c | static void tcp_read_wakeup(struct sock *sk) |
sock | 1266 | net/inet/tcp.c | static void cleanup_rbuf(struct sock *sk) |
sock | 1353 | net/inet/tcp.c | static int tcp_read_urg(struct sock * sk, int nonblock, |
sock | 1415 | net/inet/tcp.c | static int tcp_read(struct sock *sk, unsigned char *to, |
sock | 1565 | net/inet/tcp.c | void tcp_shutdown(struct sock *sk, int how) |
sock | 1707 | net/inet/tcp.c | tcp_recvfrom(struct sock *sk, unsigned char *to, |
sock | 1825 | net/inet/tcp.c | static void tcp_options(struct sock *sk, struct tcphdr *th) |
sock | 1893 | net/inet/tcp.c | static void tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
sock | 1900 | net/inet/tcp.c | struct sock *newsk; |
sock | 1941 | net/inet/tcp.c | newsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC); |
sock | 2156 | net/inet/tcp.c | static void tcp_close(struct sock *sk, int timeout) |
sock | 2375 | net/inet/tcp.c | tcp_write_xmit(struct sock *sk) |
sock | 2438 | net/inet/tcp.c | static void sort_send(struct sock *sk) |
sock | 2476 | net/inet/tcp.c | static int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
sock | 2954 | net/inet/tcp.c | static int tcp_data(struct sk_buff *skb, struct sock *sk, |
sock | 3247 | net/inet/tcp.c | static void tcp_check_urg(struct sock * sk, struct tcphdr * th) |
sock | 3275 | net/inet/tcp.c | static inline int tcp_urg(struct sock *sk, struct tcphdr *th, |
sock | 3315 | net/inet/tcp.c | static int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th, |
sock | 3396 | net/inet/tcp.c | static struct sock * |
sock | 3397 | net/inet/tcp.c | tcp_accept(struct sock *sk, int flags) |
sock | 3399 | net/inet/tcp.c | struct sock *newsk; |
sock | 3456 | net/inet/tcp.c | static int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 3620 | net/inet/tcp.c | tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
sock | 3680 | net/inet/tcp.c | static inline int tcp_clean_end(struct sock *sk) |
sock | 3695 | net/inet/tcp.c | struct sock *sk; |
sock | 4213 | net/inet/tcp.c | static void tcp_write_wakeup(struct sock *sk) |
sock | 4288 | net/inet/tcp.c | tcp_send_probe0(struct sock *sk) |
sock | 4306 | net/inet/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 4343 | net/inet/tcp.c | int tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 118 | net/inet/tcp.h | extern void tcp_shutdown (struct sock *sk, int how); |
sock | 124 | net/inet/tcp.h | extern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 126 | net/inet/tcp.h | extern int tcp_select_window(struct sock *sk); |
sock | 128 | net/inet/tcp.h | unsigned long daddr, int len, struct sock *sk); |
sock | 129 | net/inet/tcp.h | extern void tcp_send_probe0(struct sock *sk); |
sock | 130 | net/inet/tcp.h | extern void tcp_enqueue_partial(struct sk_buff *, struct sock *); |
sock | 131 | net/inet/tcp.h | extern struct sk_buff * tcp_dequeue_partial(struct sock *); |
sock | 52 | net/inet/timer.c | void delete_timer (struct sock *t) |
sock | 65 | net/inet/timer.c | void reset_timer (struct sock *t, int timeout, unsigned long len) |
sock | 87 | net/inet/timer.c | struct sock *sk = (struct sock*)data; |
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 | 333 | net/inet/udp.c | static int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock, |
sock | 392 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 403 | net/inet/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 458 | net/inet/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 510 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 517 | net/inet/udp.c | int udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 537 | net/inet/udp.c | static void udp_close(struct sock *sk, int timeout) |
sock | 556 | net/inet/udp.c | struct sock *sk; |
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 | 199 | net/socket.c | struct socket *sock; |
sock | 201 | net/socket.c | if ((sock = inode->i_socket) != NULL) |
sock | 203 | net/socket.c | if (sock->state != SS_FREE && SOCK_INODE(sock) == inode) |
sock | 204 | net/socket.c | return sock; |
sock | 207 | net/socket.c | for (sock = sockets; sock <= last_socket; ++sock) |
sock | 208 | net/socket.c | if (sock->state != SS_FREE && SOCK_INODE(sock) == inode) |
sock | 211 | net/socket.c | return(sock); |
sock | 239 | net/socket.c | struct socket *sock; |
sock | 244 | net/socket.c | for (sock = sockets; sock <= last_socket; ++sock) |
sock | 246 | net/socket.c | if (sock->state == SS_FREE) |
sock | 251 | net/socket.c | sock->state = SS_UNCONNECTED; |
sock | 253 | net/socket.c | sock->flags = 0; |
sock | 254 | net/socket.c | sock->ops = NULL; |
sock | 255 | net/socket.c | sock->data = NULL; |
sock | 256 | net/socket.c | sock->conn = NULL; |
sock | 257 | net/socket.c | sock->iconn = NULL; |
sock | 265 | net/socket.c | if (!(SOCK_INODE(sock) = get_empty_inode())) |
sock | 268 | net/socket.c | sock->state = SS_FREE; |
sock | 271 | net/socket.c | SOCK_INODE(sock)->i_mode = S_IFSOCK; |
sock | 272 | net/socket.c | SOCK_INODE(sock)->i_uid = current->euid; |
sock | 273 | net/socket.c | SOCK_INODE(sock)->i_gid = current->egid; |
sock | 274 | net/socket.c | SOCK_INODE(sock)->i_socket = sock; |
sock | 276 | net/socket.c | sock->wait = &SOCK_INODE(sock)->i_wait; |
sock | 277 | net/socket.c | return(sock); |
sock | 311 | net/socket.c | static void sock_release(struct socket *sock) |
sock | 317 | net/socket.c | if ((oldstate = sock->state) != SS_UNCONNECTED) |
sock | 318 | net/socket.c | sock->state = SS_DISCONNECTING; |
sock | 324 | net/socket.c | for (peersock = sock->iconn; peersock; peersock = nextsock) |
sock | 335 | net/socket.c | peersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL; |
sock | 336 | net/socket.c | if (sock->ops) |
sock | 337 | net/socket.c | sock->ops->release(sock, peersock); |
sock | 340 | net/socket.c | inode = SOCK_INODE(sock); |
sock | 341 | net/socket.c | sock->state = SS_FREE; /* this really releases us */ |
sock | 371 | net/socket.c | struct socket *sock; |
sock | 374 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 379 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 388 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
sock | 398 | net/socket.c | struct socket *sock; |
sock | 401 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 407 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 417 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
sock | 438 | net/socket.c | struct socket *sock; |
sock | 440 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 445 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
sock | 451 | net/socket.c | struct socket *sock; |
sock | 453 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 463 | net/socket.c | if (sock->ops && sock->ops->select) |
sock | 464 | net/socket.c | return(sock->ops->select(sock, sel_type, wait)); |
sock | 471 | net/socket.c | struct socket *sock; |
sock | 480 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 486 | net/socket.c | sock_release(sock); |
sock | 569 | net/socket.c | struct socket *sock; |
sock | 604 | net/socket.c | if (!(sock = sock_alloc(1))) |
sock | 610 | net/socket.c | sock->type = type; |
sock | 611 | net/socket.c | sock->ops = ops; |
sock | 612 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
sock | 614 | net/socket.c | sock_release(sock); |
sock | 618 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
sock | 620 | net/socket.c | sock_release(sock); |
sock | 694 | net/socket.c | struct socket *sock; |
sock | 702 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 708 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
sock | 724 | net/socket.c | struct socket *sock; |
sock | 728 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 731 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 736 | net/socket.c | if (sock->ops && sock->ops->listen) |
sock | 737 | net/socket.c | sock->ops->listen(sock, backlog); |
sock | 738 | net/socket.c | sock->flags |= SO_ACCEPTCON; |
sock | 754 | net/socket.c | struct socket *sock, *newsock; |
sock | 761 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 763 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 767 | net/socket.c | if (!(sock->flags & SO_ACCEPTCON)) |
sock | 777 | net/socket.c | newsock->type = sock->type; |
sock | 778 | net/socket.c | newsock->ops = sock->ops; |
sock | 779 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
sock | 785 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
sock | 814 | net/socket.c | struct socket *sock; |
sock | 822 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 828 | net/socket.c | switch(sock->state) |
sock | 835 | net/socket.c | if(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */ |
sock | 846 | net/socket.c | return(sock->ops->connect(sock, uservaddr, |
sock | 851 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
sock | 866 | net/socket.c | struct socket *sock; |
sock | 873 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 876 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
sock | 891 | net/socket.c | struct socket *sock; |
sock | 898 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 901 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
sock | 916 | net/socket.c | struct socket *sock; |
sock | 922 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 932 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
sock | 944 | net/socket.c | struct socket *sock; |
sock | 951 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 965 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 980 | net/socket.c | struct socket *sock; |
sock | 987 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 998 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
sock | 1010 | net/socket.c | struct socket *sock; |
sock | 1017 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1028 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 1046 | net/socket.c | struct socket *sock; |
sock | 1051 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1054 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
sock | 1064 | net/socket.c | struct socket *sock; |
sock | 1069 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1072 | net/socket.c | if (!sock->ops || !sock->ops->getsockopt) |
sock | 1074 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
sock | 1084 | net/socket.c | struct socket *sock; |
sock | 1089 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1092 | net/socket.c | return(sock->ops->shutdown(sock, how)); |
sock | 1102 | net/socket.c | struct socket *sock; |
sock | 1104 | net/socket.c | sock = socki_lookup (filp->f_inode); |
sock | 1105 | net/socket.c | if (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL) |
sock | 1106 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
sock | 1289 | net/socket.c | struct socket *sock; |
sock | 1297 | net/socket.c | for (sock = sockets; sock <= last_socket; ++sock) |
sock | 1298 | 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) |