taglinefilesource code
sock117drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sock802drivers/net/de600.cde600_rspace(struct sock *sk)
sock51fs/nfs/sock.cstruct socket *sock;
sock76fs/nfs/sock.csock = socki_lookup(inode);
sock77fs/nfs/sock.cif (!sock) {
sock100fs/nfs/sock.cresult = sock->ops->send(sock, (void *) start, len, 0, 0);
sock158fs/nfs/sock.cresult = sock->ops->recvfrom(sock, (void *)&recv_xid,
sock189fs/nfs/sock.c(void)sock->ops->recvfrom(sock, (void *)&recv_xid,
sock212fs/nfs/sock.cresult=sock->ops->recvfrom(sock, (void *)start, 
sock87include/linux/net.hint  (*create)  (struct socket *sock, int protocol);
sock89include/linux/net.hint  (*release)  (struct socket *sock, struct socket *peer);
sock90include/linux/net.hint  (*bind)    (struct socket *sock, struct sockaddr *umyaddr,
sock92include/linux/net.hint  (*connect)  (struct socket *sock, struct sockaddr *uservaddr,
sock95include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
sock97include/linux/net.hint  (*getname)  (struct socket *sock, struct sockaddr *uaddr,
sock99include/linux/net.hint  (*read)    (struct socket *sock, char *ubuf, int size,
sock101include/linux/net.hint  (*write)  (struct socket *sock, char *ubuf, int size,
sock103include/linux/net.hint  (*select)  (struct socket *sock, int sel_type,
sock105include/linux/net.hint  (*ioctl)  (struct socket *sock, unsigned int cmd,
sock107include/linux/net.hint  (*listen)  (struct socket *sock, int len);
sock108include/linux/net.hint  (*send)    (struct socket *sock, void *buff, int len, int nonblock,
sock110include/linux/net.hint  (*recv)    (struct socket *sock, void *buff, int len, int nonblock,
sock112include/linux/net.hint  (*sendto)  (struct socket *sock, void *buff, int len, int nonblock,
sock114include/linux/net.hint  (*recvfrom)  (struct socket *sock, void *buff, int len, int nonblock,
sock116include/linux/net.hint  (*shutdown)  (struct socket *sock, int flags);
sock117include/linux/net.hint  (*setsockopt)  (struct socket *sock, int level, int optname,
sock119include/linux/net.hint  (*getsockopt)  (struct socket *sock, int level, int optname,
sock121include/linux/net.hint  (*fcntl)  (struct socket *sock, unsigned int cmd,
sock45include/linux/skbuff.hstruct sock      *sk;
sock138include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sock139include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sock69net/inet/af_inet.cstruct sock *sk;
sock97net/inet/af_inet.cstruct sock *sk;
sock141net/inet/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sock143net/inet/af_inet.cstruct sock *sk1;
sock144net/inet/af_inet.cstruct sock *sk2;
sock200net/inet/af_inet.cstatic void remove_sock(struct sock *sk1)
sock202net/inet/af_inet.cstruct sock *sk2;
sock238net/inet/af_inet.cvoid destroy_sock(struct sock *sk)
sock345net/inet/af_inet.cstatic int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock347net/inet/af_inet.cstruct sock *sk;
sock349net/inet/af_inet.csk = (struct sock *) sock->data;
sock374net/inet/af_inet.cstatic int inet_setsockopt(struct socket *sock, int level, int optname,
sock377net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sock390net/inet/af_inet.cstatic int inet_getsockopt(struct socket *sock, int level, int optname,
sock393net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sock406net/inet/af_inet.cstatic int inet_autobind(struct sock *sk)
sock424net/inet/af_inet.cstatic int inet_listen(struct socket *sock, int backlog)
sock426net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock446net/inet/af_inet.cstatic void def_callback1(struct sock *sk)
sock452net/inet/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sock466net/inet/af_inet.cstatic int inet_create(struct socket *sock, int protocol)
sock468net/inet/af_inet.cstruct sock *sk;
sock472net/inet/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sock477net/inet/af_inet.cswitch(sock->type) 
sock545net/inet/af_inet.csk->socket = sock;
sock551net/inet/af_inet.csk->type = sock->type;
sock607net/inet/af_inet.csk->sleep = sock->wait;
sock623net/inet/af_inet.csock->data =(void *) sk;
sock674net/inet/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
sock684net/inet/af_inet.cstatic int inet_release(struct socket *sock, struct socket *peer)
sock686net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock733net/inet/af_inet.csock->data = NULL;
sock742net/inet/af_inet.cstatic int inet_bind(struct socket *sock, struct sockaddr *uaddr,
sock746net/inet/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sock823net/inet/af_inet.cstatic int inet_error(struct sock *sk)
sock840net/inet/af_inet.cstatic int inet_connect(struct socket *sock, struct sockaddr * uaddr,
sock843net/inet/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock845net/inet/af_inet.csock->conn = NULL;
sock847net/inet/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sock849net/inet/af_inet.csock->state = SS_CONNECTED;
sock854net/inet/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sock857net/inet/af_inet.cif (sock->state != SS_CONNECTING) 
sock867net/inet/af_inet.csock->state = SS_CONNECTING;
sock887net/inet/af_inet.csock->state = SS_UNCONNECTED;
sock894net/inet/af_inet.csock->state = SS_CONNECTED;
sock898net/inet/af_inet.csock->state = SS_UNCONNECTED;
sock917net/inet/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
sock919net/inet/af_inet.cstruct sock *sk1, *sk2;
sock922net/inet/af_inet.csk1 = (struct sock *) sock->data;
sock931net/inet/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sock997net/inet/af_inet.cstatic int inet_getname(struct socket *sock, struct sockaddr *uaddr,
sock1001net/inet/af_inet.cstruct sock *sk;
sock1004net/inet/af_inet.csk = (struct sock *) sock->data;
sock1029net/inet/af_inet.cstatic int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, 
sock1032net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1046net/inet/af_inet.cstatic int inet_recv(struct socket *sock, void *ubuf, int size, int noblock,
sock1050net/inet/af_inet.creturn inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL);
sock1053net/inet/af_inet.cstatic int inet_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1055net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1065net/inet/af_inet.cstatic int inet_send(struct socket *sock, void *ubuf, int size, int noblock, 
sock1068net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1082net/inet/af_inet.cstatic int inet_write(struct socket *sock, char *ubuf, int size, int noblock)
sock1084net/inet/af_inet.creturn inet_send(sock,ubuf,size,noblock,0);
sock1087net/inet/af_inet.cstatic int inet_sendto(struct socket *sock, void *ubuf, int size, int noblock, 
sock1090net/inet/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1108net/inet/af_inet.cstatic int inet_shutdown(struct socket *sock, int how)
sock1110net/inet/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sock1121net/inet/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sock1122net/inet/af_inet.csock->state = SS_CONNECTED;
sock1132net/inet/af_inet.cstatic int inet_select(struct socket *sock, int sel_type, select_table *wait )
sock1134net/inet/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sock1152net/inet/af_inet.cstatic int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1154net/inet/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock1236net/inet/af_inet.cstruct sock *get_sock(struct proto *prot, unsigned short num,
sock1240net/inet/af_inet.cstruct sock *s;
sock53net/inet/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sock174net/inet/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sock405net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
sock483net/inet/icmp.cip_queue_xmit((struct sock *) NULL, dev, skb2, 1);
sock566net/inet/icmp.cip_queue_xmit((struct sock *)NULL, dev, skb2, 1);
sock697net/inet/icmp.cint icmp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock35net/inet/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sock92net/inet/ip.cextern void sort_send(struct sock *sk);
sock109net/inet/ip.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock1084net/inet/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sock1630net/inet/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sock1796net/inet/ip.cvoid ip_do_retransmit(struct sock *sk, int all)
sock1892net/inet/ip.cvoid ip_retransmit(struct sock *sk, int all)
sock1924net/inet/ip.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock1967net/inet/ip.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock69net/inet/ip.hextern int    ip_ioctl(struct sock *sk, int cmd,
sock81net/inet/ip.hextern void    ip_queue_xmit(struct sock *sk,
sock84net/inet/ip.hextern void    ip_retransmit(struct sock *sk, int all);
sock85net/inet/ip.hextern void    ip_do_retransmit(struct sock *sk, int all);
sock86net/inet/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sock87net/inet/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
sock114net/inet/ipx.cif(s->ipx_source_addr.sock==port)
sock161net/inet/ipx.chtons(s->ipx_source_addr.sock));
sock165net/inet/ipx.chtons(s->ipx_dest_addr.sock));
sock466net/inet/ipx.cstatic int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock468net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock476net/inet/ipx.cstatic int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock481net/inet/ipx.csk=(ipx_socket *)sock->data;
sock514net/inet/ipx.cstatic int ipx_getsockopt(struct socket *sock, int level, int optname,
sock521net/inet/ipx.csk=(ipx_socket *)sock->data;
sock552net/inet/ipx.cstatic int ipx_listen(struct socket *sock, int backlog)
sock557net/inet/ipx.cstatic void def_callback1(struct sock *sk)
sock563net/inet/ipx.cstatic void def_callback2(struct sock *sk, int len)
sock569net/inet/ipx.cstatic int ipx_create(struct socket *sock, int protocol)
sock575net/inet/ipx.cswitch(sock->type)
sock600net/inet/ipx.csk->socket=sock;
sock601net/inet/ipx.csk->type=sock->type;
sock609net/inet/ipx.cif(sock!=NULL)
sock611net/inet/ipx.csock->data=(void *)sk;
sock612net/inet/ipx.csk->sleep=sock->wait;
sock629net/inet/ipx.cstatic int ipx_release(struct socket *sock, struct socket *peer)
sock631net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock637net/inet/ipx.csock->data=NULL;
sock652net/inet/ipx.cstatic int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock659net/inet/ipx.csk=(ipx_socket *)sock->data;
sock688net/inet/ipx.csk->ipx_source_addr.sock=addr->sipx_port;
sock721net/inet/ipx.cstatic int ipx_connect(struct socket *sock, struct sockaddr *uaddr,
sock724net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock728net/inet/ipx.csock->state = SS_UNCONNECTED;
sock742net/inet/ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock747net/inet/ipx.csk->ipx_dest_addr.sock=addr->sipx_port;
sock751net/inet/ipx.csock->state = SS_CONNECTED;
sock761net/inet/ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
sock768net/inet/ipx.cstatic int ipx_getname(struct socket *sock, struct sockaddr *uaddr,
sock775net/inet/ipx.csk=(ipx_socket *)sock->data;
sock789net/inet/ipx.csipx.sipx_port = addr->sock;
sock799net/inet/ipx.cipx_socket *sock;
sock928net/inet/ipx.csock=ipx_find_socket(ipx->ipx_dest.sock);
sock929net/inet/ipx.cif(sock==NULL)  /* But not one of our sockets */
sock937net/inet/ipx.cif (sock->ipx_source_addr.net == 0L)
sock938net/inet/ipx.csock->ipx_source_addr.net = ln->net;
sock940net/inet/ipx.cif(sock->rmem_alloc>=sock->rcvbuf)
sock946net/inet/ipx.csock->rmem_alloc+=skb->mem_len;
sock947net/inet/ipx.cskb->sk = sock;
sock949net/inet/ipx.cskb_queue_tail(&sock->receive_queue,skb);
sock950net/inet/ipx.cif(!sock->dead)
sock951net/inet/ipx.csock->data_ready(sock,skb->len);
sock955net/inet/ipx.cstatic int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock,
sock958net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock984net/inet/ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock1001net/inet/ipx.cusipx->sipx_port=sk->ipx_dest_addr.sock;
sock1091net/inet/ipx.cipx->ipx_dest.sock=usipx->sipx_port;
sock1130net/inet/ipx.cstatic int ipx_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags)
sock1132net/inet/ipx.creturn ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0);
sock1135net/inet/ipx.cstatic int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1138net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1167net/inet/ipx.csipx->sipx_port=ipx->ipx_source.sock;
sock1177net/inet/ipx.cstatic int ipx_write(struct socket *sock, char *ubuf, int size, int noblock)
sock1179net/inet/ipx.creturn ipx_send(sock,ubuf,size,noblock,0);
sock1183net/inet/ipx.cstatic int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1186net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1189net/inet/ipx.creturn ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL);
sock1192net/inet/ipx.cstatic int ipx_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1194net/inet/ipx.creturn ipx_recv(sock,ubuf,size,noblock,0);
sock1203net/inet/ipx.cstatic int ipx_select(struct socket *sock , int sel_type, select_table *wait)
sock1205net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1210net/inet/ipx.cstatic int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1214net/inet/ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock21net/inet/ipx.hunsigned short sock;
sock62net/inet/ipx.htypedef struct sock ipx_socket;
sock69net/inet/packet.cstruct sock *sk;
sock76net/inet/packet.csk = (struct sock *) pt->data;  
sock123net/inet/packet.cstatic int packet_sendto(struct sock *sk, unsigned char *from, int len,
sock207net/inet/packet.cstatic int packet_write(struct sock *sk, unsigned char *buff, 
sock220net/inet/packet.cstatic void packet_close(struct sock *sk, int timeout)
sock238net/inet/packet.cstatic int packet_init(struct sock *sk)
sock255net/inet/packet.csk->pair = (struct sock *)p;
sock266net/inet/packet.cint packet_recvfrom(struct sock *sk, unsigned char *to, int len,
sock347net/inet/packet.cint packet_read(struct sock *sk, unsigned char *buff,
sock59net/inet/proc.cstruct sock **s_array;
sock60net/inet/proc.cstruct sock *sp;
sock67net/inet/raw.cstruct sock *sk;
sock71net/inet/raw.csk = (struct sock *) protocol->data;
sock98net/inet/raw.cstruct sock *sk;
sock109net/inet/raw.csk = (struct sock *) protocol->data;
sock147net/inet/raw.cstatic int raw_sendto(struct sock *sk, unsigned char *from, 
sock267net/inet/raw.cstatic int raw_write(struct sock *sk, unsigned char *buff, int len, int noblock,
sock274net/inet/raw.cstatic void raw_close(struct sock *sk, int timeout)
sock286net/inet/raw.cstatic int raw_init(struct sock *sk)
sock303net/inet/raw.csk->pair = (struct sock *)p;
sock314net/inet/raw.cint raw_recvfrom(struct sock *sk, unsigned char *to, int len,
sock351net/inet/raw.cint raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags)
sock30net/inet/raw.hextern int  raw_recvfrom(struct sock *sk, unsigned char *to,
sock33net/inet/raw.hextern int  raw_read(struct sock *sk, unsigned char *buff,
sock114net/inet/sock.cint sock_setsockopt(struct sock *sk, int level, int optname,
sock217net/inet/sock.cint sock_getsockopt(struct sock *sk, int level, int optname,
sock311net/inet/sock.cstruct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock332net/inet/sock.cstruct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock353net/inet/sock.cunsigned long sock_rspace(struct sock *sk)
sock370net/inet/sock.cunsigned long sock_wspace(struct sock *sk)
sock384net/inet/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb, unsigned long size)
sock399net/inet/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb, unsigned long size)
sock410net/inet/sock.cvoid release_sock(struct sock *sk)
sock90net/inet/sock.hstruct sock      *next;
sock91net/inet/sock.hstruct sock      *pair;
sock170net/inet/sock.hvoid        (*state_change)(struct sock *sk);
sock171net/inet/sock.hvoid        (*data_ready)(struct sock *sk,int bytes);
sock172net/inet/sock.hvoid        (*write_space)(struct sock *sk);
sock173net/inet/sock.hvoid        (*error_report)(struct sock *sk);
sock178net/inet/sock.hstruct sk_buff *  (*wmalloc)(struct sock *sk,
sock181net/inet/sock.hstruct sk_buff *  (*rmalloc)(struct sock *sk,
sock184net/inet/sock.hvoid      (*wfree)(struct sock *sk, struct sk_buff *skb,
sock186net/inet/sock.hvoid      (*rfree)(struct sock *sk, struct sk_buff *skb,
sock188net/inet/sock.hunsigned long    (*rspace)(struct sock *sk);
sock189net/inet/sock.hunsigned long    (*wspace)(struct sock *sk);
sock190net/inet/sock.hvoid      (*close)(struct sock *sk, int timeout);
sock191net/inet/sock.hint      (*read)(struct sock *sk, unsigned char *to,
sock193net/inet/sock.hint      (*write)(struct sock *sk, unsigned char *to,
sock195net/inet/sock.hint      (*sendto)(struct sock *sk,
sock199net/inet/sock.hint      (*recvfrom)(struct sock *sk,
sock208net/inet/sock.hint      (*connect)(struct sock *sk,
sock210net/inet/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sock211net/inet/sock.hvoid      (*queue_xmit)(struct sock *sk,
sock214net/inet/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sock215net/inet/sock.hvoid      (*write_wakeup)(struct sock *sk);
sock216net/inet/sock.hvoid      (*read_wakeup)(struct sock *sk);
sock221net/inet/sock.hint      (*select)(struct sock *sk, int which,
sock223net/inet/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sock225net/inet/sock.hint      (*init)(struct sock *sk);
sock226net/inet/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sock227net/inet/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sock229net/inet/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sock233net/inet/sock.hstruct sock *    sock_array[SOCK_ARRAY_SIZE];
sock252net/inet/sock.hextern void      destroy_sock(struct sock *sk);
sock254net/inet/sock.hextern void      put_sock(unsigned short, struct sock *); 
sock255net/inet/sock.hextern void      release_sock(struct sock *sk);
sock256net/inet/sock.hextern struct sock    *get_sock(struct proto *, unsigned short,
sock259net/inet/sock.hextern void      print_sk(struct sock *);
sock260net/inet/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sock263net/inet/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sock266net/inet/sock.hextern void      sock_wfree(struct sock *sk, struct sk_buff *skb,
sock268net/inet/sock.hextern void      sock_rfree(struct sock *sk, struct sk_buff *skb,
sock270net/inet/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sock271net/inet/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sock273net/inet/sock.hextern int      sock_setsockopt(struct sock *sk,int level,int op,char *optval,int optlen);
sock274net/inet/sock.hextern int      sock_getsockopt(struct sock *sk,int level,int op,char *optval,int *optlen);
sock277net/inet/sock.hextern struct sock *timer_base;
sock279net/inet/sock.hvoid delete_timer (struct sock *);
sock280net/inet/sock.hvoid reset_timer (struct sock *, int, unsigned long);
sock192net/inet/tcp.cint tcp_select_window(struct sock *sk)
sock216net/inet/tcp.cstatic void tcp_time_wait(struct sock *sk)
sock232net/inet/tcp.cstatic void tcp_retransmit(struct sock *sk, int all)
sock264net/inet/tcp.cstruct sock *sk;
sock321net/inet/tcp.cstatic int tcp_readable(struct sock *sk)
sock380net/inet/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sock464net/inet/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock607net/inet/tcp.cunsigned long daddr, int len, struct sock *sk)
sock614net/inet/tcp.cstatic void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sock676net/inet/tcp.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sock692net/inet/tcp.cstatic void tcp_send_partial(struct sock *sk)
sock702net/inet/tcp.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sock729net/inet/tcp.cstruct sock *sk,
sock821net/inet/tcp.cstatic int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sock846net/inet/tcp.cstatic int tcp_write(struct sock *sk, unsigned char *from,
sock1171net/inet/tcp.cstatic int tcp_sendto(struct sock *sk, unsigned char *from,
sock1189net/inet/tcp.cstatic void tcp_read_wakeup(struct sock *sk)
sock1266net/inet/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sock1353net/inet/tcp.cstatic int tcp_read_urg(struct sock * sk, int nonblock,
sock1415net/inet/tcp.cstatic int tcp_read(struct sock *sk, unsigned char *to,
sock1565net/inet/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sock1707net/inet/tcp.ctcp_recvfrom(struct sock *sk, unsigned char *to,
sock1825net/inet/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sock1893net/inet/tcp.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sock1900net/inet/tcp.cstruct sock *newsk;
sock1941net/inet/tcp.cnewsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC);
sock2156net/inet/tcp.cstatic void tcp_close(struct sock *sk, int timeout)
sock2375net/inet/tcp.ctcp_write_xmit(struct sock *sk)
sock2438net/inet/tcp.cstatic void sort_send(struct sock *sk)
sock2476net/inet/tcp.cstatic int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
sock2954net/inet/tcp.cstatic int tcp_data(struct sk_buff *skb, struct sock *sk, 
sock3247net/inet/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sock3275net/inet/tcp.cstatic inline int tcp_urg(struct sock *sk, struct tcphdr *th,
sock3315net/inet/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th, 
sock3396net/inet/tcp.cstatic struct sock *
sock3397net/inet/tcp.ctcp_accept(struct sock *sk, int flags)
sock3399net/inet/tcp.cstruct sock *newsk;
sock3456net/inet/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock3620net/inet/tcp.ctcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sock3680net/inet/tcp.cstatic inline int tcp_clean_end(struct sock *sk)
sock3695net/inet/tcp.cstruct sock *sk;
sock4213net/inet/tcp.cstatic void tcp_write_wakeup(struct sock *sk)
sock4288net/inet/tcp.ctcp_send_probe0(struct sock *sk)
sock4306net/inet/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock4343net/inet/tcp.cint tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock118net/inet/tcp.hextern void  tcp_shutdown (struct sock *sk, int how);
sock124net/inet/tcp.hextern int  tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock126net/inet/tcp.hextern int tcp_select_window(struct sock *sk);
sock128net/inet/tcp.hunsigned long daddr, int len, struct sock *sk);
sock129net/inet/tcp.hextern void tcp_send_probe0(struct sock *sk);
sock130net/inet/tcp.hextern void tcp_enqueue_partial(struct sk_buff *, struct sock *);
sock131net/inet/tcp.hextern struct sk_buff * tcp_dequeue_partial(struct sock *);
sock52net/inet/timer.cvoid delete_timer (struct sock *t)
sock65net/inet/timer.cvoid reset_timer (struct sock *t, int timeout, unsigned long len)
sock87net/inet/timer.cstruct sock *sk = (struct sock*)data;
sock101net/inet/udp.cstruct sock *sk;
sock232net/inet/udp.cunsigned long daddr, int len, struct sock *sk)
sock249net/inet/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sock333net/inet/udp.cstatic int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock,
sock392net/inet/udp.cstatic int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock,
sock403net/inet/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock458net/inet/udp.cint udp_recvfrom(struct sock *sk, unsigned char *to, int len,
sock510net/inet/udp.cint udp_read(struct sock *sk, unsigned char *buff, int len, int noblock,
sock517net/inet/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock537net/inet/udp.cstatic void udp_close(struct sock *sk, int timeout)
sock556net/inet/udp.cstruct sock *sk;
sock36net/inet/udp.hextern int  udp_recvfrom(struct sock *sk, unsigned char *to,
sock39net/inet/udp.hextern int  udp_read(struct sock *sk, unsigned char *buff,
sock41net/inet/udp.hextern int  udp_connect(struct sock *sk,
sock47net/inet/udp.hextern int  udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock199net/socket.cstruct socket *sock;
sock201net/socket.cif ((sock = inode->i_socket) != NULL) 
sock203net/socket.cif (sock->state != SS_FREE && SOCK_INODE(sock) == inode)
sock204net/socket.creturn sock;
sock207net/socket.cfor (sock = sockets; sock <= last_socket; ++sock)
sock208net/socket.cif (sock->state != SS_FREE && SOCK_INODE(sock) == inode) 
sock211net/socket.creturn(sock);
sock239net/socket.cstruct socket *sock;
sock244net/socket.cfor (sock = sockets; sock <= last_socket; ++sock) 
sock246net/socket.cif (sock->state == SS_FREE) 
sock251net/socket.csock->state = SS_UNCONNECTED;
sock253net/socket.csock->flags = 0;
sock254net/socket.csock->ops = NULL;
sock255net/socket.csock->data = NULL;
sock256net/socket.csock->conn = NULL;
sock257net/socket.csock->iconn = NULL;
sock265net/socket.cif (!(SOCK_INODE(sock) = get_empty_inode())) 
sock268net/socket.csock->state = SS_FREE;
sock271net/socket.cSOCK_INODE(sock)->i_mode = S_IFSOCK;
sock272net/socket.cSOCK_INODE(sock)->i_uid = current->euid;
sock273net/socket.cSOCK_INODE(sock)->i_gid = current->egid;
sock274net/socket.cSOCK_INODE(sock)->i_socket = sock;
sock276net/socket.csock->wait = &SOCK_INODE(sock)->i_wait;
sock277net/socket.creturn(sock);
sock311net/socket.cstatic void sock_release(struct socket *sock)
sock317net/socket.cif ((oldstate = sock->state) != SS_UNCONNECTED)
sock318net/socket.csock->state = SS_DISCONNECTING;
sock324net/socket.cfor (peersock = sock->iconn; peersock; peersock = nextsock) 
sock335net/socket.cpeersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL;
sock336net/socket.cif (sock->ops) 
sock337net/socket.csock->ops->release(sock, peersock);
sock340net/socket.cinode = SOCK_INODE(sock);
sock341net/socket.csock->state = SS_FREE;    /* this really releases us */
sock371net/socket.cstruct socket *sock;
sock374net/socket.cif (!(sock = socki_lookup(inode))) 
sock379net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock388net/socket.creturn(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK)));
sock398net/socket.cstruct socket *sock;
sock401net/socket.cif (!(sock = socki_lookup(inode))) 
sock407net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock417net/socket.creturn(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK)));
sock438net/socket.cstruct socket *sock;
sock440net/socket.cif (!(sock = socki_lookup(inode))) 
sock445net/socket.creturn(sock->ops->ioctl(sock, cmd, arg));
sock451net/socket.cstruct socket *sock;
sock453net/socket.cif (!(sock = socki_lookup(inode))) 
sock463net/socket.cif (sock->ops && sock->ops->select)
sock464net/socket.creturn(sock->ops->select(sock, sel_type, wait));
sock471net/socket.cstruct socket *sock;
sock480net/socket.cif (!(sock = socki_lookup(inode))) 
sock486net/socket.csock_release(sock);
sock569net/socket.cstruct socket *sock;
sock604net/socket.cif (!(sock = sock_alloc(1))) 
sock610net/socket.csock->type = type;
sock611net/socket.csock->ops = ops;
sock612net/socket.cif ((i = sock->ops->create(sock, protocol)) < 0) 
sock614net/socket.csock_release(sock);
sock618net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
sock620net/socket.csock_release(sock);
sock694net/socket.cstruct socket *sock;
sock702net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock708net/socket.cif ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) 
sock724net/socket.cstruct socket *sock;
sock728net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock731net/socket.cif (sock->state != SS_UNCONNECTED) 
sock736net/socket.cif (sock->ops && sock->ops->listen)
sock737net/socket.csock->ops->listen(sock, backlog);
sock738net/socket.csock->flags |= SO_ACCEPTCON;
sock754net/socket.cstruct socket *sock, *newsock;
sock761net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
sock763net/socket.cif (sock->state != SS_UNCONNECTED) 
sock767net/socket.cif (!(sock->flags & SO_ACCEPTCON)) 
sock777net/socket.cnewsock->type = sock->type;
sock778net/socket.cnewsock->ops = sock->ops;
sock779net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
sock785net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
sock814net/socket.cstruct socket *sock;
sock822net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
sock828net/socket.cswitch(sock->state) 
sock835net/socket.cif(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */
sock846net/socket.creturn(sock->ops->connect(sock, uservaddr,
sock851net/socket.ci = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags);
sock866net/socket.cstruct socket *sock;
sock873net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock876net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0);
sock891net/socket.cstruct socket *sock;
sock898net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock901net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1);
sock916net/socket.cstruct socket *sock;
sock922net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock932net/socket.creturn(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags));
sock944net/socket.cstruct socket *sock;
sock951net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock965net/socket.creturn(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock980net/socket.cstruct socket *sock;
sock987net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock998net/socket.creturn(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags));
sock1010net/socket.cstruct socket *sock;
sock1017net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1028net/socket.clen=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock1046net/socket.cstruct socket *sock;
sock1051net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1054net/socket.creturn(sock->ops->setsockopt(sock, level, optname, optval, optlen));
sock1064net/socket.cstruct socket *sock;
sock1069net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1072net/socket.cif (!sock->ops || !sock->ops->getsockopt) 
sock1074net/socket.creturn(sock->ops->getsockopt(sock, level, optname, optval, optlen));
sock1084net/socket.cstruct socket *sock;
sock1089net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1092net/socket.creturn(sock->ops->shutdown(sock, how));
sock1102net/socket.cstruct socket *sock;
sock1104net/socket.csock = socki_lookup (filp->f_inode);
sock1105net/socket.cif (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL)
sock1106net/socket.creturn(sock->ops->fcntl(sock, cmd, arg));
sock1289net/socket.cstruct socket *sock;
sock1297net/socket.cfor (sock = sockets; sock <= last_socket; ++sock)
sock1298net/socket.csock->state = SS_FREE;
sock61net/unix/sock.cstatic int unix_proto_create(struct socket *sock, int protocol);
sock63net/unix/sock.cstatic int unix_proto_release(struct socket *sock, struct socket *peer);
sock64net/unix/sock.cstatic int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr,
sock66net/unix/sock.cstatic int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr,
sock69net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, 
sock71net/unix/sock.cstatic int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr,
sock73net/unix/sock.cstatic int unix_proto_read(struct socket *sock, char *ubuf, int size,
sock75net/unix/sock.cstatic int unix_proto_write(struct socket *sock, char *ubuf, int size,
sock77net/unix/sock.cstatic int unix_proto_select(struct socket *sock, int sel_type, select_table * wait);
sock78net/unix/sock.cstatic int unix_proto_ioctl(struct socket *sock, unsigned int cmd,
sock80net/unix/sock.cstatic int unix_proto_listen(struct socket *sock, int backlog);
sock81net/unix/sock.cstatic int unix_proto_send(struct socket *sock, void *buff, int len,
sock83net/unix/sock.cstatic int unix_proto_recv(struct socket *sock, void *buff, int len,
sock85net/unix/sock.cstatic int unix_proto_sendto(struct socket *sock, void *buff, int len,
sock88net/unix/sock.cstatic int unix_proto_recvfrom(struct socket *sock, void *buff, int len,
sock92net/unix/sock.cstatic int unix_proto_shutdown(struct socket *sock, int how);
sock94net/unix/sock.cstatic int unix_proto_setsockopt(struct socket *sock, int level, int optname,
sock96net/unix/sock.cstatic int unix_proto_getsockopt(struct socket *sock, int level, int optname,
sock137net/unix/sock.cstatic int unix_proto_listen(struct socket *sock, int backlog)
sock146net/unix/sock.cstatic int unix_proto_setsockopt(struct socket *sock, int level, int optname,
sock153net/unix/sock.cstatic int unix_proto_getsockopt(struct socket *sock, int level, int optname,
sock164net/unix/sock.cstatic int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, 
sock170net/unix/sock.cstatic int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, 
sock180net/unix/sock.cstatic int unix_proto_shutdown(struct socket *sock, int how)
sock190net/unix/sock.cstatic int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock,
sock195net/unix/sock.creturn(unix_proto_write(sock, (char *) buff, len, nonblock));
sock203net/unix/sock.cstatic int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock,
sock208net/unix/sock.creturn(unix_proto_read(sock, (char *) buff, len, nonblock));
sock307net/unix/sock.cstatic int unix_proto_create(struct socket *sock, int protocol)
sock332net/unix/sock.cupd->socket = sock;
sock333net/unix/sock.cUN_DATA(sock) = upd;
sock353net/unix/sock.cstatic int unix_proto_release(struct socket *sock, struct socket *peer)
sock355net/unix/sock.cstruct unix_proto_data *upd = UN_DATA(sock);
sock360net/unix/sock.cif (upd->socket != sock) 
sock372net/unix/sock.cUN_DATA(sock) = NULL;
sock392net/unix/sock.cstatic int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr,
sock396net/unix/sock.cstruct unix_proto_data *upd = UN_DATA(sock);
sock446net/unix/sock.cstatic int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr,
sock462net/unix/sock.cif (sock->state == SS_CONNECTING) 
sock464net/unix/sock.cif (sock->state == SS_CONNECTED)
sock499net/unix/sock.cif ((i = sock_awaitconn(sock, serv_upd->socket)) < 0) 
sock504net/unix/sock.cif (sock->conn) 
sock506net/unix/sock.cunix_data_ref(UN_DATA(sock->conn));
sock507net/unix/sock.cUN_DATA(sock)->peerupd = UN_DATA(sock->conn); /* ref server */
sock536net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, int flags)
sock545net/unix/sock.cwhile(!(clientsock = sock->iconn)) 
sock549net/unix/sock.cinterruptible_sleep_on(sock->wait);
sock561net/unix/sock.csock->iconn = clientsock->next;
sock569net/unix/sock.cUN_DATA(newsock)->sockaddr_un        = UN_DATA(sock)->sockaddr_un;
sock570net/unix/sock.cUN_DATA(newsock)->sockaddr_len       = UN_DATA(sock)->sockaddr_len;
sock580net/unix/sock.cstatic int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr,
sock588net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock592net/unix/sock.cupd = UN_DATA(sock->conn);
sock595net/unix/sock.cupd = UN_DATA(sock);
sock608net/unix/sock.cstatic int unix_proto_read(struct socket *sock, char *ubuf, int size, int nonblock)
sock616net/unix/sock.cupd = UN_DATA(sock);
sock619net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock621net/unix/sock.creturn((sock->state == SS_DISCONNECTING) ? 0 : -EINVAL);
sock625net/unix/sock.cinterruptible_sleep_on(sock->wait);
sock657net/unix/sock.cif (sock->state == SS_CONNECTED)
sock658net/unix/sock.cwake_up_interruptible(sock->conn->wait);
sock673net/unix/sock.cstatic int unix_proto_write(struct socket *sock, char *ubuf, int size, int nonblock)
sock680net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock682net/unix/sock.cif (sock->state == SS_DISCONNECTING) 
sock689net/unix/sock.cpupd = UN_DATA(sock)->peerupd;  /* safer than sock->conn */
sock695net/unix/sock.cinterruptible_sleep_on(sock->wait);
sock700net/unix/sock.cif (sock->state == SS_DISCONNECTING) 
sock730net/unix/sock.cif (sock->state == SS_DISCONNECTING) 
sock747net/unix/sock.cif (sock->state == SS_CONNECTED)
sock748net/unix/sock.cwake_up_interruptible(sock->conn->wait);
sock761net/unix/sock.cstatic int unix_proto_select(struct socket *sock, int sel_type, select_table * wait)
sock768net/unix/sock.cif (sock->flags & SO_ACCEPTCON) 
sock772net/unix/sock.cif (sock->iconn) 
sock774net/unix/sock.cselect_wait(sock->wait, wait);
sock775net/unix/sock.creturn(sock->iconn ? 1 : 0);
sock777net/unix/sock.cselect_wait(sock->wait, wait);
sock783net/unix/sock.cupd = UN_DATA(sock);
sock786net/unix/sock.celse if (sock->state != SS_CONNECTED) 
sock790net/unix/sock.cselect_wait(sock->wait,wait);
sock796net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock800net/unix/sock.cpeerupd = UN_DATA(sock->conn);
sock803net/unix/sock.cselect_wait(sock->wait,wait);
sock819net/unix/sock.cstatic int unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock824net/unix/sock.cupd = UN_DATA(sock);
sock825net/unix/sock.cpeerupd = (sock->state == SS_CONNECTED) ? UN_DATA(sock->conn) : NULL;
sock830net/unix/sock.cif (sock->flags & SO_ACCEPTCON) 
sock841net/unix/sock.cif (sock->flags & SO_ACCEPTCON)