tag | line | file | source code |
sock | 117 | drivers/net/de600.c | static unsigned long de600_rspace(struct sock *sk); |
sock | 808 | 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 = &inode->u.socket_i; |
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 | 63 | include/linux/igmp.h | extern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr); |
sock | 64 | include/linux/igmp.h | extern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr); |
sock | 65 | include/linux/igmp.h | extern void ip_mc_drop_socket(struct sock *sk); |
sock | 91 | include/linux/net.h | int (*create) (struct socket *sock, int protocol); |
sock | 93 | include/linux/net.h | int (*release) (struct socket *sock, struct socket *peer); |
sock | 94 | include/linux/net.h | int (*bind) (struct socket *sock, struct sockaddr *umyaddr, |
sock | 96 | include/linux/net.h | int (*connect) (struct socket *sock, struct sockaddr *uservaddr, |
sock | 99 | include/linux/net.h | int (*accept) (struct socket *sock, struct socket *newsock, |
sock | 101 | include/linux/net.h | int (*getname) (struct socket *sock, struct sockaddr *uaddr, |
sock | 103 | include/linux/net.h | int (*read) (struct socket *sock, char *ubuf, int size, |
sock | 105 | include/linux/net.h | int (*write) (struct socket *sock, char *ubuf, int size, |
sock | 107 | include/linux/net.h | int (*select) (struct socket *sock, int sel_type, |
sock | 109 | include/linux/net.h | int (*ioctl) (struct socket *sock, unsigned int cmd, |
sock | 111 | include/linux/net.h | int (*listen) (struct socket *sock, int len); |
sock | 112 | include/linux/net.h | int (*send) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 114 | include/linux/net.h | int (*recv) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 116 | include/linux/net.h | int (*sendto) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 118 | include/linux/net.h | int (*recvfrom) (struct socket *sock, void *buff, int len, int nonblock, |
sock | 120 | include/linux/net.h | int (*shutdown) (struct socket *sock, int flags); |
sock | 121 | include/linux/net.h | int (*setsockopt) (struct socket *sock, int level, int optname, |
sock | 123 | include/linux/net.h | int (*getsockopt) (struct socket *sock, int level, int optname, |
sock | 125 | include/linux/net.h | int (*fcntl) (struct socket *sock, unsigned int cmd, |
sock | 135 | include/linux/net.h | extern int sock_wake_async(struct socket *sock, int how); |
sock | 139 | include/linux/net.h | extern void sock_release(struct socket *sock); |
sock | 46 | include/linux/skbuff.h | struct sock *sk; |
sock | 280 | include/linux/skbuff.h | extern struct sk_buff * skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err); |
sock | 281 | include/linux/skbuff.h | extern int datagram_select(struct sock *sk, int sel_type, select_table *wait); |
sock | 87 | net/inet/af_inet.c | struct sock *sk; |
sock | 115 | net/inet/af_inet.c | struct sock *sk; |
sock | 159 | net/inet/af_inet.c | void put_sock(unsigned short num, struct sock *sk) |
sock | 161 | net/inet/af_inet.c | struct sock *sk1; |
sock | 162 | net/inet/af_inet.c | struct sock *sk2; |
sock | 225 | net/inet/af_inet.c | static void remove_sock(struct sock *sk1) |
sock | 227 | net/inet/af_inet.c | struct sock *sk2; |
sock | 267 | net/inet/af_inet.c | void destroy_sock(struct sock *sk) |
sock | 385 | net/inet/af_inet.c | static int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 387 | net/inet/af_inet.c | struct sock *sk; |
sock | 389 | net/inet/af_inet.c | sk = (struct sock *) sock->data; |
sock | 414 | net/inet/af_inet.c | static int inet_setsockopt(struct socket *sock, int level, int optname, |
sock | 417 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 430 | net/inet/af_inet.c | static int inet_getsockopt(struct socket *sock, int level, int optname, |
sock | 433 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 446 | net/inet/af_inet.c | static int inet_autobind(struct sock *sk) |
sock | 464 | net/inet/af_inet.c | static int inet_listen(struct socket *sock, int backlog) |
sock | 466 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 493 | net/inet/af_inet.c | static void def_callback1(struct sock *sk) |
sock | 499 | net/inet/af_inet.c | static void def_callback2(struct sock *sk,int len) |
sock | 508 | net/inet/af_inet.c | static void def_callback3(struct sock *sk) |
sock | 524 | net/inet/af_inet.c | static int inet_create(struct socket *sock, int protocol) |
sock | 526 | net/inet/af_inet.c | struct sock *sk; |
sock | 530 | net/inet/af_inet.c | sk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL); |
sock | 535 | net/inet/af_inet.c | switch(sock->type) |
sock | 603 | net/inet/af_inet.c | sk->socket = sock; |
sock | 609 | net/inet/af_inet.c | sk->type = sock->type; |
sock | 665 | net/inet/af_inet.c | sk->sleep = sock->wait; |
sock | 682 | net/inet/af_inet.c | sock->data =(void *) sk; |
sock | 739 | net/inet/af_inet.c | return(inet_create(newsock,((struct sock *)(oldsock->data))->protocol)); |
sock | 745 | net/inet/af_inet.c | static inline int closing(struct sock * sk) |
sock | 763 | net/inet/af_inet.c | static int inet_release(struct socket *sock, struct socket *peer) |
sock | 765 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 819 | net/inet/af_inet.c | sock->data = NULL; |
sock | 829 | net/inet/af_inet.c | static int inet_bind(struct socket *sock, struct sockaddr *uaddr, |
sock | 833 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data, *sk2; |
sock | 843 | net/inet/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 870 | net/inet/af_inet.c | if(sock->type != SOCK_RAW) |
sock | 911 | net/inet/af_inet.c | static int inet_error(struct sock *sk) |
sock | 928 | net/inet/af_inet.c | static int inet_connect(struct socket *sock, struct sockaddr * uaddr, |
sock | 931 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 933 | net/inet/af_inet.c | sock->conn = NULL; |
sock | 935 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && tcp_connected(sk->state)) |
sock | 937 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 942 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK)) |
sock | 945 | net/inet/af_inet.c | if (sock->state != SS_CONNECTING) |
sock | 955 | net/inet/af_inet.c | sock->state = SS_CONNECTING; |
sock | 958 | net/inet/af_inet.c | if (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING) |
sock | 960 | net/inet/af_inet.c | sock->state=SS_UNCONNECTED; |
sock | 985 | net/inet/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 992 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 996 | net/inet/af_inet.c | sock->state = SS_UNCONNECTED; |
sock | 1015 | net/inet/af_inet.c | static int inet_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1017 | net/inet/af_inet.c | struct sock *sk1, *sk2; |
sock | 1020 | net/inet/af_inet.c | sk1 = (struct sock *) sock->data; |
sock | 1029 | net/inet/af_inet.c | struct sock *sk=(struct sock *)newsock->data; |
sock | 1097 | net/inet/af_inet.c | static int inet_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1101 | net/inet/af_inet.c | struct sock *sk; |
sock | 1104 | net/inet/af_inet.c | sk = (struct sock *) sock->data; |
sock | 1129 | net/inet/af_inet.c | static int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1132 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1146 | net/inet/af_inet.c | static int inet_recv(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1150 | net/inet/af_inet.c | return inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL); |
sock | 1153 | net/inet/af_inet.c | static int inet_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1155 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1165 | net/inet/af_inet.c | static int inet_send(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1168 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1182 | net/inet/af_inet.c | static int inet_write(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1184 | net/inet/af_inet.c | return inet_send(sock,ubuf,size,noblock,0); |
sock | 1187 | net/inet/af_inet.c | static int inet_sendto(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1190 | net/inet/af_inet.c | struct sock *sk = (struct sock *) sock->data; |
sock | 1208 | net/inet/af_inet.c | static int inet_shutdown(struct socket *sock, int how) |
sock | 1210 | net/inet/af_inet.c | struct sock *sk=(struct sock*)sock->data; |
sock | 1221 | net/inet/af_inet.c | if (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED) |
sock | 1222 | net/inet/af_inet.c | sock->state = SS_CONNECTED; |
sock | 1232 | net/inet/af_inet.c | static int inet_select(struct socket *sock, int sel_type, select_table *wait ) |
sock | 1234 | net/inet/af_inet.c | struct sock *sk=(struct sock *) sock->data; |
sock | 1252 | net/inet/af_inet.c | static int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1254 | net/inet/af_inet.c | struct sock *sk=(struct sock *)sock->data; |
sock | 1349 | net/inet/af_inet.c | struct sock *get_sock(struct proto *prot, unsigned short num, |
sock | 1353 | net/inet/af_inet.c | struct sock *s; |
sock | 1354 | net/inet/af_inet.c | struct sock *result = NULL; |
sock | 1413 | net/inet/af_inet.c | struct sock *get_sock_raw(struct sock *sk, |
sock | 1418 | net/inet/af_inet.c | struct sock *s; |
sock | 1442 | net/inet/af_inet.c | struct sock *get_sock_mcast(struct sock *sk, |
sock | 1447 | 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 | 176 | net/inet/datagram.c | int datagram_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 397 | net/inet/dev.c | ((struct sock *)ptype->data != skb->sk)) |
sock | 462 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, ndev, skb2, 1); |
sock | 552 | net/inet/icmp.c | ip_queue_xmit((struct sock *) NULL, ndev, skb2, 1); |
sock | 635 | net/inet/icmp.c | ip_queue_xmit((struct sock *)NULL, ndev, skb2, 1); |
sock | 766 | 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 | 311 | net/inet/igmp.c | int ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr) |
sock | 345 | net/inet/igmp.c | int ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr) |
sock | 371 | net/inet/igmp.c | void ip_mc_drop_socket(struct sock *sk) |
sock | 125 | net/inet/ip.c | extern void sort_send(struct sock *sk); |
sock | 146 | net/inet/ip.c | int ip_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 1087 | net/inet/ip.c | void ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag) |
sock | 1462 | net/inet/ip.c | struct sock *raw_sk=NULL; |
sock | 1657 | net/inet/ip.c | struct sock *sknext=NULL; |
sock | 1785 | net/inet/ip.c | void ip_queue_xmit(struct sock *sk, struct device *dev, |
sock | 2053 | net/inet/ip.c | int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 2329 | net/inet/ip.c | int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 41 | net/inet/ip.h | extern void ip_mc_dropsocket(struct sock *); |
sock | 77 | net/inet/ip.h | extern int ip_ioctl(struct sock *sk, int cmd, |
sock | 91 | net/inet/ip.h | extern void ip_queue_xmit(struct sock *sk, |
sock | 94 | net/inet/ip.h | extern int ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen); |
sock | 95 | net/inet/ip.h | extern int ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen); |
sock | 318 | net/inet/ipx.c | ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb) |
sock | 322 | net/inet/ipx.c | if((retval = sock_queue_rcv_skb(sock, skb))<0) { |
sock | 344 | net/inet/ipx.c | sock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock); |
sock | 354 | net/inet/ipx.c | switch (ntohs(ipx->ipx_dest.sock)) { |
sock | 365 | net/inet/ipx.c | ipx->ipx_dest.sock); |
sock | 1023 | net/inet/ipx.c | ipx->ipx_source.sock = sk->ipx_port; |
sock | 1026 | net/inet/ipx.c | ipx->ipx_dest.sock=usipx->sipx_port; |
sock | 1186 | net/inet/ipx.c | htons(s->ipx_dest_addr.sock)); |
sock | 1259 | net/inet/ipx.c | static int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 1268 | net/inet/ipx.c | static int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen) |
sock | 1273 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1304 | net/inet/ipx.c | static int ipx_getsockopt(struct socket *sock, int level, int optname, |
sock | 1311 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1342 | net/inet/ipx.c | static int ipx_listen(struct socket *sock, int backlog) |
sock | 1347 | net/inet/ipx.c | static void def_callback1(struct sock *sk) |
sock | 1353 | net/inet/ipx.c | static void def_callback2(struct sock *sk, int len) |
sock | 1363 | net/inet/ipx.c | ipx_create(struct socket *sock, int protocol) |
sock | 1369 | net/inet/ipx.c | switch(sock->type) |
sock | 1394 | net/inet/ipx.c | sk->socket=sock; |
sock | 1395 | net/inet/ipx.c | sk->type=sock->type; |
sock | 1403 | net/inet/ipx.c | if(sock!=NULL) |
sock | 1405 | net/inet/ipx.c | sock->data=(void *)sk; |
sock | 1406 | net/inet/ipx.c | sk->sleep=sock->wait; |
sock | 1418 | net/inet/ipx.c | static int ipx_release(struct socket *sock, struct socket *peer) |
sock | 1420 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1426 | net/inet/ipx.c | sock->data=NULL; |
sock | 1454 | net/inet/ipx.c | static int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len) |
sock | 1460 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1499 | net/inet/ipx.c | static int ipx_connect(struct socket *sock, struct sockaddr *uaddr, |
sock | 1502 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1506 | net/inet/ipx.c | sock->state = SS_UNCONNECTED; |
sock | 1520 | net/inet/ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1527 | net/inet/ipx.c | sk->ipx_dest_addr.sock=addr->sipx_port; |
sock | 1530 | net/inet/ipx.c | sock->state = SS_CONNECTED; |
sock | 1540 | net/inet/ipx.c | static int ipx_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 1547 | net/inet/ipx.c | static int ipx_getname(struct socket *sock, struct sockaddr *uaddr, |
sock | 1554 | net/inet/ipx.c | sk=(ipx_socket *)sock->data; |
sock | 1564 | net/inet/ipx.c | sipx.sipx_port = addr->sock; |
sock | 1610 | net/inet/ipx.c | p->node[3],p->node[4],p->node[5],ntohs(p->sock)); |
sock | 1666 | net/inet/ipx.c | static int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock, |
sock | 1669 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1684 | net/inet/ipx.c | ret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx)); |
sock | 1698 | net/inet/ipx.c | usipx->sipx_port=sk->ipx_dest_addr.sock; |
sock | 1709 | net/inet/ipx.c | static int ipx_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags) |
sock | 1711 | net/inet/ipx.c | return ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0); |
sock | 1714 | net/inet/ipx.c | static int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, |
sock | 1717 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1750 | net/inet/ipx.c | sipx->sipx_port=ipx->ipx_source.sock; |
sock | 1759 | net/inet/ipx.c | static int ipx_write(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1761 | net/inet/ipx.c | return ipx_send(sock,ubuf,size,noblock,0); |
sock | 1765 | net/inet/ipx.c | static int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock, |
sock | 1768 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1771 | net/inet/ipx.c | return ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL); |
sock | 1774 | net/inet/ipx.c | static int ipx_read(struct socket *sock, char *ubuf, int size, int noblock) |
sock | 1776 | net/inet/ipx.c | return ipx_recv(sock,ubuf,size,noblock,0); |
sock | 1785 | net/inet/ipx.c | static int ipx_select(struct socket *sock , int sel_type, select_table *wait) |
sock | 1787 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 1792 | net/inet/ipx.c | static int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg) |
sock | 1796 | net/inet/ipx.c | ipx_socket *sk=(ipx_socket *)sock->data; |
sock | 22 | net/inet/ipx.h | unsigned short sock; |
sock | 45 | net/inet/ipx.h | typedef struct sock ipx_socket; |
sock | 73 | net/inet/packet.c | struct sock *sk; |
sock | 81 | net/inet/packet.c | sk = (struct sock *) pt->data; |
sock | 140 | net/inet/packet.c | static int packet_sendto(struct sock *sk, unsigned char *from, int len, |
sock | 224 | net/inet/packet.c | static int packet_write(struct sock *sk, unsigned char *buff, |
sock | 237 | net/inet/packet.c | static void packet_close(struct sock *sk, int timeout) |
sock | 255 | net/inet/packet.c | static int packet_init(struct sock *sk) |
sock | 273 | net/inet/packet.c | sk->pair = (struct sock *)p; |
sock | 284 | net/inet/packet.c | int packet_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 365 | 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 | 117 | net/inet/sock.c | int sock_setsockopt(struct sock *sk, int level, int optname, |
sock | 222 | net/inet/sock.c | int sock_getsockopt(struct sock *sk, int level, int optname, |
sock | 316 | net/inet/sock.c | struct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 339 | net/inet/sock.c | struct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority) |
sock | 362 | net/inet/sock.c | unsigned long sock_rspace(struct sock *sk) |
sock | 379 | net/inet/sock.c | unsigned long sock_wspace(struct sock *sk) |
sock | 393 | net/inet/sock.c | void sock_wfree(struct sock *sk, struct sk_buff *skb, unsigned long size) |
sock | 414 | net/inet/sock.c | void sock_rfree(struct sock *sk, struct sk_buff *skb, unsigned long size) |
sock | 434 | net/inet/sock.c | struct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode) |
sock | 509 | net/inet/sock.c | int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) |
sock | 525 | net/inet/sock.c | void release_sock(struct sock *sk) |
sock | 96 | net/inet/sock.h | struct sock *next; |
sock | 97 | net/inet/sock.h | struct sock *prev; /* Doubly linked chain.. */ |
sock | 98 | net/inet/sock.h | struct sock *pair; |
sock | 193 | net/inet/sock.h | void (*state_change)(struct sock *sk); |
sock | 194 | net/inet/sock.h | void (*data_ready)(struct sock *sk,int bytes); |
sock | 195 | net/inet/sock.h | void (*write_space)(struct sock *sk); |
sock | 196 | net/inet/sock.h | void (*error_report)(struct sock *sk); |
sock | 201 | net/inet/sock.h | struct sk_buff * (*wmalloc)(struct sock *sk, |
sock | 204 | net/inet/sock.h | struct sk_buff * (*rmalloc)(struct sock *sk, |
sock | 207 | net/inet/sock.h | void (*wfree)(struct sock *sk, struct sk_buff *skb, |
sock | 209 | net/inet/sock.h | void (*rfree)(struct sock *sk, struct sk_buff *skb, |
sock | 211 | net/inet/sock.h | unsigned long (*rspace)(struct sock *sk); |
sock | 212 | net/inet/sock.h | unsigned long (*wspace)(struct sock *sk); |
sock | 213 | net/inet/sock.h | void (*close)(struct sock *sk, int timeout); |
sock | 214 | net/inet/sock.h | int (*read)(struct sock *sk, unsigned char *to, |
sock | 216 | net/inet/sock.h | int (*write)(struct sock *sk, unsigned char *to, |
sock | 218 | net/inet/sock.h | int (*sendto)(struct sock *sk, |
sock | 222 | net/inet/sock.h | int (*recvfrom)(struct sock *sk, |
sock | 231 | net/inet/sock.h | int (*connect)(struct sock *sk, |
sock | 233 | net/inet/sock.h | struct sock * (*accept) (struct sock *sk, int flags); |
sock | 234 | net/inet/sock.h | void (*queue_xmit)(struct sock *sk, |
sock | 237 | net/inet/sock.h | void (*retransmit)(struct sock *sk, int all); |
sock | 238 | net/inet/sock.h | void (*write_wakeup)(struct sock *sk); |
sock | 239 | net/inet/sock.h | void (*read_wakeup)(struct sock *sk); |
sock | 244 | net/inet/sock.h | int (*select)(struct sock *sk, int which, |
sock | 246 | net/inet/sock.h | int (*ioctl)(struct sock *sk, int cmd, |
sock | 248 | net/inet/sock.h | int (*init)(struct sock *sk); |
sock | 249 | net/inet/sock.h | void (*shutdown)(struct sock *sk, int how); |
sock | 250 | net/inet/sock.h | int (*setsockopt)(struct sock *sk, int level, int optname, |
sock | 252 | net/inet/sock.h | int (*getsockopt)(struct sock *sk, int level, int optname, |
sock | 256 | net/inet/sock.h | struct sock * sock_array[SOCK_ARRAY_SIZE]; |
sock | 276 | net/inet/sock.h | extern void destroy_sock(struct sock *sk); |
sock | 278 | net/inet/sock.h | extern void put_sock(unsigned short, struct sock *); |
sock | 279 | net/inet/sock.h | extern void release_sock(struct sock *sk); |
sock | 280 | net/inet/sock.h | extern struct sock *get_sock(struct proto *, unsigned short, |
sock | 283 | net/inet/sock.h | extern struct sock *get_sock_mcast(struct sock *, unsigned short, |
sock | 286 | net/inet/sock.h | extern struct sock *get_sock_raw(struct sock *, unsigned short, |
sock | 289 | net/inet/sock.h | extern struct sk_buff *sock_wmalloc(struct sock *sk, |
sock | 292 | net/inet/sock.h | extern struct sk_buff *sock_rmalloc(struct sock *sk, |
sock | 295 | net/inet/sock.h | extern void sock_wfree(struct sock *sk, struct sk_buff *skb, |
sock | 297 | net/inet/sock.h | extern void sock_rfree(struct sock *sk, struct sk_buff *skb, |
sock | 299 | net/inet/sock.h | extern unsigned long sock_rspace(struct sock *sk); |
sock | 300 | net/inet/sock.h | extern unsigned long sock_wspace(struct sock *sk); |
sock | 302 | net/inet/sock.h | extern int sock_setsockopt(struct sock *sk,int level,int op,char *optval,int optlen); |
sock | 304 | net/inet/sock.h | extern int sock_getsockopt(struct sock *sk,int level,int op,char *optval,int *optlen); |
sock | 305 | net/inet/sock.h | extern struct sk_buff *sock_alloc_send_skb(struct sock *skb, unsigned long size, int noblock, int *errcode); |
sock | 306 | net/inet/sock.h | extern int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb); |
sock | 309 | net/inet/sock.h | extern struct sock *timer_base; |
sock | 311 | net/inet/sock.h | void delete_timer (struct sock *); |
sock | 312 | net/inet/sock.h | void reset_timer (struct sock *, int, unsigned long); |
sock | 244 | net/inet/tcp.c | static void tcp_close(struct sock *sk, int timeout); |
sock | 270 | net/inet/tcp.c | static __inline__ void tcp_set_state(struct sock *sk, int state) |
sock | 305 | net/inet/tcp.c | int tcp_select_window(struct sock *sk) |
sock | 334 | net/inet/tcp.c | static struct sk_buff *tcp_find_established(struct sock *s) |
sock | 354 | net/inet/tcp.c | static struct sk_buff *tcp_dequeue_established(struct sock *s) |
sock | 373 | net/inet/tcp.c | static void tcp_close_pending (struct sock *sk) |
sock | 390 | net/inet/tcp.c | static void tcp_time_wait(struct sock *sk) |
sock | 404 | net/inet/tcp.c | void tcp_do_retransmit(struct sock *sk, int all) |
sock | 515 | net/inet/tcp.c | static void reset_xmit_timer(struct sock *sk, int why, unsigned long when) |
sock | 536 | net/inet/tcp.c | void tcp_retransmit_time(struct sock *sk, int all) |
sock | 571 | net/inet/tcp.c | static void tcp_retransmit(struct sock *sk, int all) |
sock | 593 | net/inet/tcp.c | static int tcp_write_timeout(struct sock *sk) |
sock | 648 | net/inet/tcp.c | struct sock *sk = (struct sock*)data; |
sock | 757 | net/inet/tcp.c | struct sock *sk; |
sock | 815 | net/inet/tcp.c | static int tcp_readable(struct sock *sk) |
sock | 889 | net/inet/tcp.c | static int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 912 | net/inet/tcp.c | static int tcp_select(struct sock *sk, int sel_type, select_table *wait) |
sock | 959 | net/inet/tcp.c | int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 1102 | net/inet/tcp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 1114 | net/inet/tcp.c | static void tcp_send_skb(struct sock *sk, struct sk_buff *skb) |
sock | 1233 | net/inet/tcp.c | struct sk_buff * tcp_dequeue_partial(struct sock * sk) |
sock | 1253 | net/inet/tcp.c | static void tcp_send_partial(struct sock *sk) |
sock | 1267 | net/inet/tcp.c | void tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk) |
sock | 1297 | net/inet/tcp.c | struct sock *sk, |
sock | 1415 | net/inet/tcp.c | extern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push) |
sock | 1439 | net/inet/tcp.c | static int tcp_write(struct sock *sk, unsigned char *from, |
sock | 1768 | net/inet/tcp.c | static int tcp_sendto(struct sock *sk, unsigned char *from, |
sock | 1793 | net/inet/tcp.c | static void tcp_read_wakeup(struct sock *sk) |
sock | 1870 | net/inet/tcp.c | static void cleanup_rbuf(struct sock *sk) |
sock | 1958 | net/inet/tcp.c | static int tcp_read_urg(struct sock * sk, int nonblock, |
sock | 2015 | net/inet/tcp.c | static int tcp_read(struct sock *sk, unsigned char *to, |
sock | 2249 | net/inet/tcp.c | static int tcp_close_state(struct sock *sk, int dead) |
sock | 2303 | net/inet/tcp.c | static void tcp_send_fin(struct sock *sk) |
sock | 2407 | net/inet/tcp.c | void tcp_shutdown(struct sock *sk, int how) |
sock | 2460 | net/inet/tcp.c | tcp_recvfrom(struct sock *sk, unsigned char *to, |
sock | 2588 | net/inet/tcp.c | static void tcp_options(struct sock *sk, struct tcphdr *th) |
sock | 2673 | net/inet/tcp.c | static void tcp_conn_request(struct sock *sk, struct sk_buff *skb, |
sock | 2680 | net/inet/tcp.c | struct sock *newsk; |
sock | 2723 | net/inet/tcp.c | newsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC); |
sock | 2946 | net/inet/tcp.c | static void tcp_close(struct sock *sk, int timeout) |
sock | 3017 | net/inet/tcp.c | static void tcp_write_xmit(struct sock *sk) |
sock | 3107 | net/inet/tcp.c | extern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len) |
sock | 3710 | net/inet/tcp.c | static int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th) |
sock | 3797 | net/inet/tcp.c | extern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, |
sock | 4124 | net/inet/tcp.c | static void tcp_check_urg(struct sock * sk, struct tcphdr * th) |
sock | 4156 | net/inet/tcp.c | extern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th, |
sock | 4197 | net/inet/tcp.c | static struct sock *tcp_accept(struct sock *sk, int flags) |
sock | 4199 | net/inet/tcp.c | struct sock *newsk; |
sock | 4256 | net/inet/tcp.c | static int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 4418 | net/inet/tcp.c | extern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len, |
sock | 4474 | net/inet/tcp.c | static int tcp_std_reset(struct sock *sk, struct sk_buff *skb) |
sock | 4511 | net/inet/tcp.c | struct sock *sk; |
sock | 4902 | net/inet/tcp.c | static void tcp_write_wakeup(struct sock *sk) |
sock | 4983 | net/inet/tcp.c | void tcp_send_probe0(struct sock *sk) |
sock | 5001 | net/inet/tcp.c | int tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen) |
sock | 5037 | net/inet/tcp.c | int tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen) |
sock | 126 | net/inet/tcp.h | extern void tcp_shutdown (struct sock *sk, int how); |
sock | 132 | net/inet/tcp.h | extern int tcp_ioctl(struct sock *sk, int cmd, unsigned long arg); |
sock | 134 | net/inet/tcp.h | extern int tcp_select_window(struct sock *sk); |
sock | 136 | net/inet/tcp.h | unsigned long daddr, int len, struct sock *sk); |
sock | 137 | net/inet/tcp.h | extern void tcp_send_probe0(struct sock *sk); |
sock | 138 | net/inet/tcp.h | extern void tcp_enqueue_partial(struct sk_buff *, struct sock *); |
sock | 139 | 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 | 83 | 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 | 103 | net/inet/udp.c | struct sock *sk; |
sock | 234 | net/inet/udp.c | unsigned long daddr, int len, struct sock *sk) |
sock | 251 | net/inet/udp.c | static int udp_send(struct sock *sk, struct sockaddr_in *sin, |
sock | 342 | net/inet/udp.c | static int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock, |
sock | 401 | net/inet/udp.c | static int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 412 | net/inet/udp.c | int udp_ioctl(struct sock *sk, int cmd, unsigned long arg) |
sock | 467 | net/inet/udp.c | int udp_recvfrom(struct sock *sk, unsigned char *to, int len, |
sock | 519 | net/inet/udp.c | int udp_read(struct sock *sk, unsigned char *buff, int len, int noblock, |
sock | 526 | net/inet/udp.c | int udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len) |
sock | 552 | net/inet/udp.c | static void udp_close(struct sock *sk, int timeout) |
sock | 571 | net/inet/udp.c | struct sock *sk; |
sock | 622 | net/inet/udp.c | struct sock *sknext=NULL; |
sock | 667 | 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 | 235 | net/socket.c | struct socket * sock; |
sock | 246 | net/socket.c | sock = &inode->u.socket_i; |
sock | 247 | net/socket.c | sock->state = SS_UNCONNECTED; |
sock | 248 | net/socket.c | sock->flags = 0; |
sock | 249 | net/socket.c | sock->ops = NULL; |
sock | 250 | net/socket.c | sock->data = NULL; |
sock | 251 | net/socket.c | sock->conn = NULL; |
sock | 252 | net/socket.c | sock->iconn = NULL; |
sock | 253 | net/socket.c | sock->next = NULL; |
sock | 254 | net/socket.c | sock->wait = &inode->i_wait; |
sock | 255 | net/socket.c | sock->inode = inode; /* "backlink": we could use pointer arithmetic instead */ |
sock | 256 | net/socket.c | sock->fasync_list = NULL; |
sock | 258 | net/socket.c | return sock; |
sock | 272 | net/socket.c | void sock_release(struct socket *sock) |
sock | 277 | net/socket.c | if ((oldstate = sock->state) != SS_UNCONNECTED) |
sock | 278 | net/socket.c | sock->state = SS_DISCONNECTING; |
sock | 284 | net/socket.c | for (peersock = sock->iconn; peersock; peersock = nextsock) |
sock | 295 | net/socket.c | peersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL; |
sock | 296 | net/socket.c | if (sock->ops) |
sock | 297 | net/socket.c | sock->ops->release(sock, peersock); |
sock | 301 | net/socket.c | iput(SOCK_INODE(sock)); |
sock | 320 | net/socket.c | struct socket *sock; |
sock | 323 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 328 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 337 | net/socket.c | return(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK))); |
sock | 347 | net/socket.c | struct socket *sock; |
sock | 350 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 356 | net/socket.c | if (sock->flags & SO_ACCEPTCON) |
sock | 366 | net/socket.c | return(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK))); |
sock | 387 | net/socket.c | struct socket *sock; |
sock | 389 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 394 | net/socket.c | return(sock->ops->ioctl(sock, cmd, arg)); |
sock | 400 | net/socket.c | struct socket *sock; |
sock | 402 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 412 | net/socket.c | if (sock->ops && sock->ops->select) |
sock | 413 | net/socket.c | return(sock->ops->select(sock, sel_type, wait)); |
sock | 420 | net/socket.c | struct socket *sock; |
sock | 429 | net/socket.c | if (!(sock = socki_lookup(inode))) |
sock | 435 | net/socket.c | sock_release(sock); |
sock | 445 | net/socket.c | struct socket *sock; |
sock | 455 | net/socket.c | sock = socki_lookup(inode); |
sock | 457 | net/socket.c | prev=&(sock->fasync_list); |
sock | 476 | net/socket.c | fna->fa_next=sock->fasync_list; |
sock | 477 | net/socket.c | sock->fasync_list=fna; |
sock | 491 | net/socket.c | int sock_wake_async(struct socket *sock, int how) |
sock | 493 | net/socket.c | if (!sock || !sock->fasync_list) |
sock | 498 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 501 | net/socket.c | if (!(sock->flags & SO_WAITDATA)) |
sock | 502 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 505 | net/socket.c | if (sock->flags & SO_NOSPACE) |
sock | 507 | net/socket.c | kill_fasync(sock->fasync_list, SIGIO); |
sock | 508 | net/socket.c | sock->flags &= ~SO_NOSPACE; |
sock | 601 | net/socket.c | struct socket *sock; |
sock | 636 | net/socket.c | if (!(sock = sock_alloc())) |
sock | 643 | net/socket.c | sock->type = type; |
sock | 644 | net/socket.c | sock->ops = ops; |
sock | 645 | net/socket.c | if ((i = sock->ops->create(sock, protocol)) < 0) |
sock | 647 | net/socket.c | sock_release(sock); |
sock | 651 | net/socket.c | if ((fd = get_fd(SOCK_INODE(sock))) < 0) |
sock | 653 | net/socket.c | sock_release(sock); |
sock | 731 | net/socket.c | struct socket *sock; |
sock | 739 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 745 | net/socket.c | if ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) |
sock | 761 | net/socket.c | struct socket *sock; |
sock | 765 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 768 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 773 | net/socket.c | if (sock->ops && sock->ops->listen) |
sock | 774 | net/socket.c | sock->ops->listen(sock, backlog); |
sock | 775 | net/socket.c | sock->flags |= SO_ACCEPTCON; |
sock | 791 | net/socket.c | struct socket *sock, *newsock; |
sock | 798 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 800 | net/socket.c | if (sock->state != SS_UNCONNECTED) |
sock | 804 | net/socket.c | if (!(sock->flags & SO_ACCEPTCON)) |
sock | 815 | net/socket.c | newsock->type = sock->type; |
sock | 816 | net/socket.c | newsock->ops = sock->ops; |
sock | 817 | net/socket.c | if ((i = sock->ops->dup(newsock, sock)) < 0) |
sock | 823 | net/socket.c | i = newsock->ops->accept(sock, newsock, file->f_flags); |
sock | 852 | net/socket.c | struct socket *sock; |
sock | 860 | net/socket.c | if (!(sock = sockfd_lookup(fd, &file))) |
sock | 866 | net/socket.c | switch(sock->state) |
sock | 873 | net/socket.c | if(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */ |
sock | 888 | net/socket.c | i = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags); |
sock | 903 | net/socket.c | struct socket *sock; |
sock | 910 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 913 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0); |
sock | 928 | net/socket.c | struct socket *sock; |
sock | 935 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 938 | net/socket.c | err=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1); |
sock | 953 | net/socket.c | struct socket *sock; |
sock | 959 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 967 | net/socket.c | return(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags)); |
sock | 979 | net/socket.c | struct socket *sock; |
sock | 986 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 998 | net/socket.c | return(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 1013 | net/socket.c | struct socket *sock; |
sock | 1020 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1031 | net/socket.c | return(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags)); |
sock | 1043 | net/socket.c | struct socket *sock; |
sock | 1050 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1061 | net/socket.c | len=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK), |
sock | 1079 | net/socket.c | struct socket *sock; |
sock | 1084 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1087 | net/socket.c | return(sock->ops->setsockopt(sock, level, optname, optval, optlen)); |
sock | 1097 | net/socket.c | struct socket *sock; |
sock | 1102 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1105 | net/socket.c | if (!sock->ops || !sock->ops->getsockopt) |
sock | 1107 | net/socket.c | return(sock->ops->getsockopt(sock, level, optname, optval, optlen)); |
sock | 1117 | net/socket.c | struct socket *sock; |
sock | 1122 | net/socket.c | if (!(sock = sockfd_lookup(fd, NULL))) |
sock | 1125 | net/socket.c | return(sock->ops->shutdown(sock, how)); |
sock | 1135 | net/socket.c | struct socket *sock; |
sock | 1137 | net/socket.c | sock = socki_lookup (filp->f_inode); |
sock | 1138 | net/socket.c | if (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL) |
sock | 1139 | net/socket.c | return(sock->ops->fcntl(sock, cmd, arg)); |
sock | 60 | net/unix/sock.c | static int unix_proto_create(struct socket *sock, int protocol); |
sock | 62 | net/unix/sock.c | static int unix_proto_release(struct socket *sock, struct socket *peer); |
sock | 63 | net/unix/sock.c | static int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr, |
sock | 65 | net/unix/sock.c | static int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr, |
sock | 68 | net/unix/sock.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock, |
sock | 70 | net/unix/sock.c | static int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr, |
sock | 72 | net/unix/sock.c | static int unix_proto_read(struct socket *sock, char *ubuf, int size, |
sock | 74 | net/unix/sock.c | static int unix_proto_write(struct socket *sock, char *ubuf, int size, |
sock | 76 | net/unix/sock.c | static int unix_proto_select(struct socket *sock, int sel_type, select_table * wait); |
sock | 77 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, |
sock | 79 | net/unix/sock.c | static int unix_proto_listen(struct socket *sock, int backlog); |
sock | 80 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, |
sock | 82 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, |
sock | 84 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, |
sock | 87 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, |
sock | 91 | net/unix/sock.c | static int unix_proto_shutdown(struct socket *sock, int how); |
sock | 93 | net/unix/sock.c | static int unix_proto_setsockopt(struct socket *sock, int level, int optname, |
sock | 95 | net/unix/sock.c | static int unix_proto_getsockopt(struct socket *sock, int level, int optname, |
sock | 136 | net/unix/sock.c | static int unix_proto_listen(struct socket *sock, int backlog) |
sock | 145 | net/unix/sock.c | static int unix_proto_setsockopt(struct socket *sock, int level, int optname, |
sock | 152 | net/unix/sock.c | static int unix_proto_getsockopt(struct socket *sock, int level, int optname, |
sock | 163 | net/unix/sock.c | static int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, |
sock | 169 | net/unix/sock.c | static int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, |
sock | 179 | net/unix/sock.c | static int unix_proto_shutdown(struct socket *sock, int how) |
sock | 189 | net/unix/sock.c | static int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock, |
sock | 194 | net/unix/sock.c | return(unix_proto_write(sock, (char *) buff, len, nonblock)); |
sock | 202 | net/unix/sock.c | static int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock, |
sock | 207 | net/unix/sock.c | return(unix_proto_read(sock, (char *) buff, len, nonblock)); |
sock | 306 | net/unix/sock.c | static int unix_proto_create(struct socket *sock, int protocol) |
sock | 331 | net/unix/sock.c | upd->socket = sock; |
sock | 332 | net/unix/sock.c | UN_DATA(sock) = upd; |
sock | 352 | net/unix/sock.c | static int unix_proto_release(struct socket *sock, struct socket *peer) |
sock | 354 | net/unix/sock.c | struct unix_proto_data *upd = UN_DATA(sock); |
sock | 359 | net/unix/sock.c | if (upd->socket != sock) |
sock | 371 | net/unix/sock.c | UN_DATA(sock) = NULL; |
sock | 391 | net/unix/sock.c | static int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr, |
sock | 395 | net/unix/sock.c | struct unix_proto_data *upd = UN_DATA(sock); |
sock | 445 | net/unix/sock.c | static int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr, |
sock | 461 | net/unix/sock.c | if (sock->state == SS_CONNECTING) |
sock | 463 | net/unix/sock.c | if (sock->state == SS_CONNECTED) |
sock | 498 | net/unix/sock.c | if ((i = sock_awaitconn(sock, serv_upd->socket, flags)) < 0) |
sock | 503 | net/unix/sock.c | if (sock->conn) |
sock | 505 | net/unix/sock.c | unix_data_ref(UN_DATA(sock->conn)); |
sock | 506 | net/unix/sock.c | UN_DATA(sock)->peerupd = UN_DATA(sock->conn); /* ref server */ |
sock | 535 | net/unix/sock.c | static int unix_proto_accept(struct socket *sock, struct socket *newsock, int flags) |
sock | 544 | net/unix/sock.c | while(!(clientsock = sock->iconn)) |
sock | 548 | net/unix/sock.c | sock->flags |= SO_WAITDATA; |
sock | 549 | net/unix/sock.c | interruptible_sleep_on(sock->wait); |
sock | 550 | net/unix/sock.c | sock->flags &= ~SO_WAITDATA; |
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 | 581 | net/unix/sock.c | static int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr, |
sock | 589 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 593 | net/unix/sock.c | upd = UN_DATA(sock->conn); |
sock | 596 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 609 | net/unix/sock.c | static int unix_proto_read(struct socket *sock, char *ubuf, int size, int nonblock) |
sock | 617 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 620 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 622 | net/unix/sock.c | return((sock->state == SS_DISCONNECTING) ? 0 : -EINVAL); |
sock | 626 | net/unix/sock.c | sock->flags |= SO_WAITDATA; |
sock | 627 | net/unix/sock.c | interruptible_sleep_on(sock->wait); |
sock | 628 | net/unix/sock.c | sock->flags &= ~SO_WAITDATA; |
sock | 660 | net/unix/sock.c | if (sock->state == SS_CONNECTED) |
sock | 662 | net/unix/sock.c | wake_up_interruptible(sock->conn->wait); |
sock | 663 | net/unix/sock.c | sock_wake_async(sock->conn, 2); |
sock | 679 | net/unix/sock.c | static int unix_proto_write(struct socket *sock, char *ubuf, int size, int nonblock) |
sock | 686 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 688 | net/unix/sock.c | if (sock->state == SS_DISCONNECTING) |
sock | 695 | net/unix/sock.c | pupd = UN_DATA(sock)->peerupd; /* safer than sock->conn */ |
sock | 699 | net/unix/sock.c | sock->flags |= SO_NOSPACE; |
sock | 702 | net/unix/sock.c | sock->flags &= ~SO_NOSPACE; |
sock | 703 | net/unix/sock.c | interruptible_sleep_on(sock->wait); |
sock | 708 | net/unix/sock.c | if (sock->state == SS_DISCONNECTING) |
sock | 738 | net/unix/sock.c | if (sock->state == SS_DISCONNECTING) |
sock | 755 | net/unix/sock.c | if (sock->state == SS_CONNECTED) |
sock | 757 | net/unix/sock.c | wake_up_interruptible(sock->conn->wait); |
sock | 758 | net/unix/sock.c | sock_wake_async(sock->conn, 1); |
sock | 772 | net/unix/sock.c | static int unix_proto_select(struct socket *sock, int sel_type, select_table * wait) |
sock | 779 | net/unix/sock.c | if (sock->flags & SO_ACCEPTCON) |
sock | 783 | net/unix/sock.c | if (sock->iconn) |
sock | 785 | net/unix/sock.c | select_wait(sock->wait, wait); |
sock | 786 | net/unix/sock.c | return(sock->iconn ? 1 : 0); |
sock | 788 | net/unix/sock.c | select_wait(sock->wait, wait); |
sock | 794 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 797 | net/unix/sock.c | else if (sock->state != SS_CONNECTED) |
sock | 801 | net/unix/sock.c | select_wait(sock->wait,wait); |
sock | 807 | net/unix/sock.c | if (sock->state != SS_CONNECTED) |
sock | 811 | net/unix/sock.c | peerupd = UN_DATA(sock->conn); |
sock | 814 | net/unix/sock.c | select_wait(sock->wait,wait); |
sock | 830 | net/unix/sock.c | static int unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg) |
sock | 835 | net/unix/sock.c | upd = UN_DATA(sock); |
sock | 836 | net/unix/sock.c | peerupd = (sock->state == SS_CONNECTED) ? UN_DATA(sock->conn) : NULL; |
sock | 841 | net/unix/sock.c | if (sock->flags & SO_ACCEPTCON) |
sock | 852 | net/unix/sock.c | if (sock->flags & SO_ACCEPTCON) |