taglinefilesource code
sock117drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sock811drivers/net/de600.cde600_rspace(struct sock *sk)
sock149fs/nfs/inode.cstruct socket *sock;
sock154fs/nfs/inode.csock = &((filp->f_inode)->u.socket_i);
sock157fs/nfs/inode.csock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ;
sock56fs/nfs/sock.cstruct socket *sock;
sock81fs/nfs/sock.csock = &inode->u.socket_i;
sock82fs/nfs/sock.cif (!sock) {
sock107fs/nfs/sock.cresult = sock->ops->sendto(sock, (void *) start, len, 0, 0,
sock166fs/nfs/sock.cresult = sock->ops->recvfrom(sock, (void *)&recv_xid,
sock197fs/nfs/sock.c(void)sock->ops->recvfrom(sock, (void *)&recv_xid,
sock211fs/nfs/sock.cresult=sock->ops->recvfrom(sock, (void *)start, 
sock34fs/smbfs/sock.csmb_data_callback(struct sock *sk,int len)
sock36fs/smbfs/sock.cstruct socket *sock = sk->socket;
sock47fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf, 1, 1,
sock53fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf,
sock62fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf,
sock81fs/smbfs/sock.cstruct socket *sock;
sock82fs/smbfs/sock.cstruct sock   *sk;
sock94fs/smbfs/sock.csock = &(inode->u.socket_i);
sock96fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock102fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock129fs/smbfs/sock.cstruct socket *sock;
sock130fs/smbfs/sock.cstruct sock   *sk;
sock142fs/smbfs/sock.csock = &(inode->u.socket_i);
sock144fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock149fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock182fs/smbfs/sock.csmb_receive(struct smb_server *server, struct socket *sock)
sock189fs/smbfs/sock.cresult = sock->ops->recvfrom(sock, (void *)peek_buf, 4, 0,
sock210fs/smbfs/sock.csock->ops->recvfrom(sock, (void *)peek_buf, 4, 1,
sock232fs/smbfs/sock.cresult = sock->ops->
sock233fs/smbfs/sock.crecvfrom(sock,
sock265fs/smbfs/sock.csmb_receive_trans2(struct smb_server *server, struct socket *sock,
sock278fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock353fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock392fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock395fs/smbfs/sock.cif (sock == NULL)
sock398fs/smbfs/sock.cresult = sock->ops->release(sock, NULL);
sock404fs/smbfs/sock.csock->state = SS_UNCONNECTED;
sock406fs/smbfs/sock.cresult = sock->ops->create(sock, 0);
sock414fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock415fs/smbfs/sock.cif (sock == NULL)
sock417fs/smbfs/sock.cif (sock->state != SS_UNCONNECTED) {
sock419fs/smbfs/sock.csock->state);
sock421fs/smbfs/sock.creturn sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr),
sock439fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock442fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock471fs/smbfs/sock.cresult = sock->ops->send(sock, (void *)buffer, len, 0, 0);
sock476fs/smbfs/sock.cresult = smb_receive(server, sock);
sock518fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock521fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock550fs/smbfs/sock.cresult = sock->ops->send(sock, (void *)buffer, len, 0, 0);
sock555fs/smbfs/sock.cresult = smb_receive_trans2(server, sock,
sock128include/linux/atalk.htypedef struct sock  atalk_socket;
sock37include/linux/etherdevice.hextern void     eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
sock80include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
sock81include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
sock82include/linux/igmp.hextern void ip_mc_drop_socket(struct sock *sk);
sock93include/linux/net.hint  (*create)  (struct socket *sock, int protocol);
sock95include/linux/net.hint  (*release)  (struct socket *sock, struct socket *peer);
sock96include/linux/net.hint  (*bind)    (struct socket *sock, struct sockaddr *umyaddr,
sock98include/linux/net.hint  (*connect)  (struct socket *sock, struct sockaddr *uservaddr,
sock101include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
sock103include/linux/net.hint  (*getname)  (struct socket *sock, struct sockaddr *uaddr,
sock105include/linux/net.hint  (*read)    (struct socket *sock, char *ubuf, int size,
sock107include/linux/net.hint  (*write)  (struct socket *sock, const char *ubuf, int size,
sock109include/linux/net.hint  (*select)  (struct socket *sock, int sel_type,
sock111include/linux/net.hint  (*ioctl)  (struct socket *sock, unsigned int cmd,
sock113include/linux/net.hint  (*listen)  (struct socket *sock, int len);
sock114include/linux/net.hint  (*send)    (struct socket *sock, const void *buff, int len, int nonblock,
sock116include/linux/net.hint  (*recv)    (struct socket *sock, void *buff, int len, int nonblock,
sock118include/linux/net.hint  (*sendto)  (struct socket *sock, const void *buff, int len, int nonblock,
sock120include/linux/net.hint  (*recvfrom)  (struct socket *sock, void *buff, int len, int nonblock,
sock122include/linux/net.hint  (*shutdown)  (struct socket *sock, int flags);
sock123include/linux/net.hint  (*setsockopt)  (struct socket *sock, int level, int optname,
sock125include/linux/net.hint  (*getsockopt)  (struct socket *sock, int level, int optname,
sock127include/linux/net.hint  (*fcntl)  (struct socket *sock, unsigned int cmd,
sock129include/linux/net.hint   (*sendmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags);
sock130include/linux/net.hint   (*recvmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags, int *addr_len);
sock139include/linux/net.hextern int  sock_wake_async(struct socket *sock, int how);
sock143include/linux/net.hextern void  sock_release(struct socket *sock);
sock163include/linux/netdevice.hvoid        (*header_cache)(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
sock47include/linux/skbuff.hstruct sock      *sk;      /* Socket we are owned by       */
sock363include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sock364include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sock3include/net/af_unix.htypedef struct sock unix_socket;
sock143include/net/ax25.hstruct sock    *sk;    /* Backlink to socket */
sock35include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sock44include/net/ip.hextern void    ip_mc_dropsocket(struct sock *);
sock79include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd,
sock94include/net/ip.hextern void    ip_queue_xmit(struct sock *sk,
sock97include/net/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sock98include/net/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
sock100include/net/ip.hextern int    ip_build_xmit(struct sock *sk,
sock22include/net/ipx.hunsigned short sock;
sock45include/net/ipx.htypedef struct sock ipx_socket;
sock61include/net/netrom.hstruct sock    *sk;    /* Backlink to socket */
sock93include/net/netrom.hextern void nr_destroy_socket(struct sock *);
sock103include/net/netrom.hextern int  nr_process_rx_frame(struct sock *, struct sk_buff *);
sock106include/net/netrom.hextern void nr_output(struct sock *, struct sk_buff *);
sock107include/net/netrom.hextern void nr_send_nak_frame(struct sock *);
sock108include/net/netrom.hextern void nr_kick(struct sock *);
sock109include/net/netrom.hextern void nr_transmit_buffer(struct sock *, struct sk_buff *);
sock110include/net/netrom.hextern void nr_nr_error_recovery(struct sock *);
sock111include/net/netrom.hextern void nr_establish_data_link(struct sock *);
sock112include/net/netrom.hextern void nr_enquiry_response(struct sock *);
sock113include/net/netrom.hextern void nr_check_iframes_acked(struct sock *, unsigned short);
sock126include/net/netrom.hextern void nr_clear_queues(struct sock *);
sock127include/net/netrom.hextern void nr_frames_acked(struct sock *, unsigned short);
sock128include/net/netrom.hextern void nr_requeue_frames(struct sock *);
sock129include/net/netrom.hextern int  nr_validate_nr(struct sock *, unsigned short);
sock130include/net/netrom.hextern int  nr_in_rx_window(struct sock *, unsigned short);
sock131include/net/netrom.hextern void nr_write_internal(struct sock *, int);
sock133include/net/netrom.hextern unsigned short nr_calculate_t1(struct sock *);
sock134include/net/netrom.hextern void nr_calculate_rtt(struct sock *);
sock137include/net/netrom.hextern void nr_set_timer(struct sock *);
sock26include/net/raw.hextern int  raw_recvfrom(struct sock *sk, unsigned char *to,
sock29include/net/raw.hextern int  raw_read(struct sock *sk, unsigned char *buff,
sock31include/net/raw.hextern int   raw_rcv(struct sock *, struct sk_buff *, struct device *, 
sock71include/net/sock.hstruct sock *    other;
sock116include/net/sock.hstruct sock      *next;
sock117include/net/sock.hstruct sock      *prev; /* Doubly linked chain.. */
sock118include/net/sock.hstruct sock      *pair;
sock230include/net/sock.hvoid      (*state_change)(struct sock *sk);
sock231include/net/sock.hvoid      (*data_ready)(struct sock *sk,int bytes);
sock232include/net/sock.hvoid      (*write_space)(struct sock *sk);
sock233include/net/sock.hvoid      (*error_report)(struct sock *sk);
sock238include/net/sock.hstruct sk_buff *  (*wmalloc)(struct sock *sk,
sock241include/net/sock.hstruct sk_buff *  (*rmalloc)(struct sock *sk,
sock244include/net/sock.hvoid      (*wfree)(struct sock *sk, struct sk_buff *skb);
sock245include/net/sock.hvoid      (*rfree)(struct sock *sk, struct sk_buff *skb);
sock246include/net/sock.hunsigned long    (*rspace)(struct sock *sk);
sock247include/net/sock.hunsigned long    (*wspace)(struct sock *sk);
sock248include/net/sock.hvoid      (*close)(struct sock *sk, int timeout);
sock249include/net/sock.hint      (*read)(struct sock *sk, unsigned char *to,
sock251include/net/sock.hint      (*write)(struct sock *sk, const unsigned char *to,
sock253include/net/sock.hint      (*sendto)(struct sock *sk,
sock257include/net/sock.hint      (*recvfrom)(struct sock *sk,
sock267include/net/sock.hint      (*connect)(struct sock *sk,
sock269include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sock270include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sock273include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sock274include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sock275include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sock280include/net/sock.hint      (*select)(struct sock *sk, int which,
sock282include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sock284include/net/sock.hint      (*init)(struct sock *sk);
sock285include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sock286include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sock288include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sock295include/net/sock.hstruct sock *    sock_array[SOCK_ARRAY_SIZE];
sock318include/net/sock.hextern void      destroy_sock(struct sock *sk);
sock321include/net/sock.hextern void      put_sock(unsigned short, struct sock *); 
sock322include/net/sock.hextern void      release_sock(struct sock *sk);
sock323include/net/sock.hextern struct sock    *get_sock(struct proto *, unsigned short,
sock326include/net/sock.hextern struct sock    *get_sock_mcast(struct sock *, unsigned short,
sock329include/net/sock.hextern struct sock    *get_sock_raw(struct sock *, unsigned short,
sock332include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sock335include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sock338include/net/sock.hextern void      sock_wfree(struct sock *sk,
sock340include/net/sock.hextern void      sock_rfree(struct sock *sk,
sock342include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sock343include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sock345include/net/sock.hextern int      sock_setsockopt(struct sock *sk, int level,
sock349include/net/sock.hextern int      sock_getsockopt(struct sock *sk, int level,
sock352include/net/sock.hextern struct sk_buff     *sock_alloc_send_skb(struct sock *skb,
sock366include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sock383include/net/sock.hextern struct sock *timer_base;
sock385include/net/sock.hextern void delete_timer (struct sock *);
sock386include/net/sock.hextern void reset_timer (struct sock *, int, unsigned long);
sock128include/net/tcp.hextern void  tcp_shutdown (struct sock *sk, int how);
sock134include/net/tcp.hextern int  tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock136include/net/tcp.hextern int tcp_select_window(struct sock *sk);
sock138include/net/tcp.hunsigned long daddr, int len, struct sock *sk);
sock139include/net/tcp.hextern void tcp_send_probe0(struct sock *sk);
sock140include/net/tcp.hextern void tcp_enqueue_partial(struct sk_buff *, struct sock *);
sock141include/net/tcp.hextern struct sk_buff * tcp_dequeue_partial(struct sock *);
sock37include/net/udp.hunsigned long daddr, int len, struct sock *sk);
sock38include/net/udp.hextern int  udp_recvfrom(struct sock *sk, unsigned char *to,
sock41include/net/udp.hextern int  udp_read(struct sock *sk, unsigned char *buff,
sock43include/net/udp.hextern int  udp_connect(struct sock *sk,
sock49include/net/udp.hextern int  udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock6net/802/llc.cint llc_rx_adm(struct sock *sk,struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock36net/802/llc.cint llc_rx_setup(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock70net/802/llc.cint llc_rx_reset(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock114net/802/llc.cint llc_rx_d_conn(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock150net/802/llc.cint llc_rx_error(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock199net/802/llc.cint llc_rx_nr_shared(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock288net/802/llc.cint llc_rx_normal(struct sock *sk, struct sk_buff *skb, int type, int cmd, int pf, int nr, int ns)
sock927net/appletalk/ddp.cstatic int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock942net/appletalk/ddp.cstatic int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock947net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock980net/appletalk/ddp.cstatic int atalk_getsockopt(struct socket *sock, int level, int optname,
sock987net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1019net/appletalk/ddp.cstatic int atalk_listen(struct socket *sock, int backlog)
sock1028net/appletalk/ddp.cstatic void def_callback1(struct sock *sk)
sock1034net/appletalk/ddp.cstatic void def_callback2(struct sock *sk, int len)
sock1048net/appletalk/ddp.cstatic int atalk_create(struct socket *sock, int protocol)
sock1054net/appletalk/ddp.cswitch(sock->type)
sock1087net/appletalk/ddp.csk->socket=sock;
sock1088net/appletalk/ddp.csk->type=sock->type;
sock1101net/appletalk/ddp.cif(sock!=NULL)
sock1103net/appletalk/ddp.csock->data=(void *)sk;
sock1104net/appletalk/ddp.csk->sleep=sock->wait;
sock1129net/appletalk/ddp.cstatic int atalk_release(struct socket *sock, struct socket *peer)
sock1131net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1137net/appletalk/ddp.csock->data=NULL;
sock1179net/appletalk/ddp.cstatic int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1184net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1234net/appletalk/ddp.cstatic int atalk_connect(struct socket *sock, struct sockaddr *uaddr,
sock1237net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1241net/appletalk/ddp.csock->state = SS_UNCONNECTED;
sock1265net/appletalk/ddp.csock->state = SS_CONNECTED;
sock1283net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
sock1295net/appletalk/ddp.cstatic int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
sock1301net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1337net/appletalk/ddp.catalk_socket *sock;
sock1443net/appletalk/ddp.csock=atalk_search_socket( &tosat, atif );
sock1445net/appletalk/ddp.cif(sock==NULL)  /* But not one of our sockets */
sock1456net/appletalk/ddp.cskb->sk = sock;
sock1458net/appletalk/ddp.cif(sock_queue_rcv_skb(sock,skb)<0)
sock1466net/appletalk/ddp.cstatic int atalk_sendto(struct socket *sock, const void *ubuf, int len, int noblock,
sock1469net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1643net/appletalk/ddp.cstatic int atalk_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1645net/appletalk/ddp.creturn atalk_sendto(sock,ubuf,size,noblock,flags,NULL,0);
sock1648net/appletalk/ddp.cstatic int atalk_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1651net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1699net/appletalk/ddp.cstatic int atalk_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1701net/appletalk/ddp.creturn atalk_send(sock,ubuf,size,noblock,0);
sock1705net/appletalk/ddp.cstatic int atalk_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1708net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1711net/appletalk/ddp.creturn atalk_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL);
sock1714net/appletalk/ddp.cstatic int atalk_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1716net/appletalk/ddp.creturn atalk_recv(sock,ubuf,size,noblock,0);
sock1725net/appletalk/ddp.cstatic int atalk_select(struct socket *sock , int sel_type, select_table *wait)
sock1727net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1736net/appletalk/ddp.cstatic int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1740net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock253net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
sock278net/ax25/af_ax25.cstatic struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type)
sock327net/ax25/af_ax25.cstatic struct sock *ax25_addr_match(ax25_address *addr)
sock347net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
sock637net/ax25/af_ax25.cstatic int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock646net/ax25/af_ax25.cstatic int ax25_setsockopt(struct socket *sock, int level, int optname,
sock649net/ax25/af_ax25.cstruct sock *sk;
sock652net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock717net/ax25/af_ax25.cstatic int ax25_getsockopt(struct socket *sock, int level, int optname,
sock720net/ax25/af_ax25.cstruct sock *sk;
sock724net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock778net/ax25/af_ax25.cstatic int ax25_listen(struct socket *sock, int backlog)
sock780net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock791net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sock797net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sock803net/ax25/af_ax25.cstatic int ax25_create(struct socket *sock, int protocol)
sock805net/ax25/af_ax25.cstruct sock *sk;
sock808net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock816net/ax25/af_ax25.csk->type = sock->type;
sock818net/ax25/af_ax25.cswitch (sock->type) {
sock836net/ax25/af_ax25.csk->socket        = sock;
sock863net/ax25/af_ax25.cif (sock != NULL) {
sock864net/ax25/af_ax25.csock->data = (void *)sk;
sock865net/ax25/af_ax25.csk->sleep  = sock->wait;
sock874net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
sock876net/ax25/af_ax25.cstruct sock *sk;
sock879net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock963net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sock968net/ax25/af_ax25.cstatic int ax25_release(struct socket *sock, struct socket *peer)
sock970net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1019net/ax25/af_ax25.csock->data = NULL;  
sock1030net/ax25/af_ax25.cstatic int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1032net/ax25/af_ax25.cstruct sock *sk;
sock1037net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1087net/ax25/af_ax25.cstatic int ax25_connect(struct socket *sock, struct sockaddr *uaddr,
sock1090net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1094net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock1095net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1099net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock1100net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1108net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1158net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1164net/ax25/af_ax25.csock->state        = SS_CONNECTING;
sock1187net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1191net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1203net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
sock1205net/ax25/af_ax25.cstruct sock *sk;
sock1206net/ax25/af_ax25.cstruct sock *newsk;
sock1210net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
sock1214net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1252net/ax25/af_ax25.cstatic int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
sock1257net/ax25/af_ax25.cstruct sock *sk;
sock1260net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1289net/ax25/af_ax25.cstruct sock *make;
sock1290net/ax25/af_ax25.cstruct sock *sk;
sock1295net/ax25/af_ax25.cstruct sock *raw;
sock1570net/ax25/af_ax25.cstatic int ax25_sendto(struct socket *sock, const void *ubuf, int len, int noblock,
sock1573net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1720net/ax25/af_ax25.cstatic int ax25_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1722net/ax25/af_ax25.creturn ax25_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
sock1725net/ax25/af_ax25.cstatic int ax25_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1727net/ax25/af_ax25.creturn ax25_send(sock, ubuf, size, noblock, 0);
sock1730net/ax25/af_ax25.cstatic int ax25_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1733net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1791net/ax25/af_ax25.cstatic int ax25_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1794net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1799net/ax25/af_ax25.creturn ax25_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL);
sock1802net/ax25/af_ax25.cstatic int ax25_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1804net/ax25/af_ax25.creturn ax25_recv(sock, ubuf, size, noblock, 0);
sock1813net/ax25/af_ax25.cstatic int ax25_select(struct socket *sock , int sel_type, select_table *wait)
sock1815net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1820net/ax25/af_ax25.cstatic int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1822net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock54net/core/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sock177net/core/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sock380net/core/dev.c((struct sock *)ptype->data != skb->sk))
sock117net/core/sock.cint sock_setsockopt(struct sock *sk, int level, int optname,
sock215net/core/sock.cint sock_getsockopt(struct sock *sk, int level, int optname,
sock305net/core/sock.cstruct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock328net/core/sock.cstruct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock351net/core/sock.cunsigned long sock_rspace(struct sock *sk)
sock368net/core/sock.cunsigned long sock_wspace(struct sock *sk)
sock382net/core/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb)
sock403net/core/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb)
sock424net/core/sock.cstruct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, int noblock, int *errcode)
sock495net/core/sock.cvoid release_sock(struct sock *sk)
sock217net/ethernet/eth.cvoid eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr)
sock106net/ipv4/af_inet.cstruct sock *sk;
sock134net/ipv4/af_inet.cstruct sock *sk;
sock178net/ipv4/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sock180net/ipv4/af_inet.cstruct sock *sk1;
sock181net/ipv4/af_inet.cstruct sock *sk2;
sock247net/ipv4/af_inet.cstatic void remove_sock(struct sock *sk1)
sock249net/ipv4/af_inet.cstruct sock *sk2;
sock292net/ipv4/af_inet.cvoid destroy_sock(struct sock *sk)
sock410net/ipv4/af_inet.cstatic int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock412net/ipv4/af_inet.cstruct sock *sk;
sock414net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock439net/ipv4/af_inet.cstatic int inet_setsockopt(struct socket *sock, int level, int optname,
sock442net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sock455net/ipv4/af_inet.cstatic int inet_getsockopt(struct socket *sock, int level, int optname,
sock458net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sock471net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sock491net/ipv4/af_inet.cstatic int inet_listen(struct socket *sock, int backlog)
sock493net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock523net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sock529net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sock538net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sock554net/ipv4/af_inet.cstatic int inet_create(struct socket *sock, int protocol)
sock556net/ipv4/af_inet.cstruct sock *sk;
sock560net/ipv4/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sock566net/ipv4/af_inet.cswitch(sock->type) 
sock627net/ipv4/af_inet.csk->socket = sock;
sock633net/ipv4/af_inet.csk->type = sock->type;
sock720net/ipv4/af_inet.csk->sleep = sock->wait;
sock726net/ipv4/af_inet.csock->data =(void *) sk;
sock772net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
sock778net/ipv4/af_inet.cstatic inline int closing(struct sock * sk)
sock796net/ipv4/af_inet.cstatic int inet_release(struct socket *sock, struct socket *peer)
sock798net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock851net/ipv4/af_inet.csock->data = NULL;
sock858net/ipv4/af_inet.cstatic int inet_bind(struct socket *sock, struct sockaddr *uaddr,
sock862net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sock872net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock900net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock929net/ipv4/af_inet.cif(sock->type==SOCK_DGRAM)
sock931net/ipv4/af_inet.cif(sock->type==SOCK_STREAM)
sock946net/ipv4/af_inet.cstatic int inet_error(struct sock *sk)
sock963net/ipv4/af_inet.cstatic int inet_connect(struct socket *sock, struct sockaddr * uaddr,
sock966net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock968net/ipv4/af_inet.csock->conn = NULL;
sock970net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sock972net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock977net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sock987net/ipv4/af_inet.cif (sock->state != SS_CONNECTING) 
sock997net/ipv4/af_inet.csock->state = SS_CONNECTING;
sock1000net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sock1002net/ipv4/af_inet.csock->state=SS_UNCONNECTED;
sock1027net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1034net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1038net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1057net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
sock1059net/ipv4/af_inet.cstruct sock *sk1, *sk2;
sock1062net/ipv4/af_inet.csk1 = (struct sock *) sock->data;
sock1071net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sock1137net/ipv4/af_inet.cstatic int inet_getname(struct socket *sock, struct sockaddr *uaddr,
sock1141net/ipv4/af_inet.cstruct sock *sk;
sock1144net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock1169net/ipv4/af_inet.cstatic int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, 
sock1172net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1186net/ipv4/af_inet.cstatic int inet_recv(struct socket *sock, void *ubuf, int size, int noblock,
sock1190net/ipv4/af_inet.creturn inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL);
sock1193net/ipv4/af_inet.cstatic int inet_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1195net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1205net/ipv4/af_inet.cstatic int inet_send(struct socket *sock, const void *ubuf, int size, int noblock, 
sock1208net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1222net/ipv4/af_inet.cstatic int inet_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1224net/ipv4/af_inet.creturn inet_send(sock,ubuf,size,noblock,0);
sock1227net/ipv4/af_inet.cstatic int inet_sendto(struct socket *sock, const void *ubuf, int size, int noblock, 
sock1230net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1248net/ipv4/af_inet.cstatic int inet_shutdown(struct socket *sock, int how)
sock1250net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sock1261net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sock1262net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1272net/ipv4/af_inet.cstatic int inet_select(struct socket *sock, int sel_type, select_table *wait )
sock1274net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sock1292net/ipv4/af_inet.cstatic int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1294net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock1389net/ipv4/af_inet.cstruct sock *get_sock(struct proto *prot, unsigned short num,
sock1393net/ipv4/af_inet.cstruct sock *s;
sock1394net/ipv4/af_inet.cstruct sock *result = NULL;
sock1453net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sock1458net/ipv4/af_inet.cstruct sock *s;
sock1482net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sock1487net/ipv4/af_inet.cstruct sock *s;
sock568net/ipv4/icmp.cip_queue_xmit((struct sock *)NULL, ndev, skb2, 1);
sock654net/ipv4/icmp.cip_queue_xmit((struct sock *) NULL, ndev, skb2, 1);
sock746net/ipv4/icmp.cip_queue_xmit((struct sock *)NULL, ndev, skb2, 1);
sock887net/ipv4/icmp.cint icmp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock319net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sock353net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sock379net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sock149net/ipv4/ip.cextern void sort_send(struct sock *sk);
sock169net/ipv4/ip.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock844net/ipv4/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sock1290net/ipv4/ip.cstruct sock *raw_sk=NULL;
sock1571net/ipv4/ip.cstruct sock *sknext=NULL;
sock1746net/ipv4/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sock2032net/ipv4/ip.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock2285net/ipv4/ip.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock2358net/ipv4/ip.cint ip_build_xmit(struct sock *sk,
sock75net/ipv4/packet.cstruct sock *sk;
sock83net/ipv4/packet.csk = (struct sock *) pt->data;  
sock144net/ipv4/packet.cstatic int packet_sendto(struct sock *sk, const unsigned char *from, int len,
sock227net/ipv4/packet.cstatic int packet_write(struct sock *sk, const unsigned char *buff, 
sock240net/ipv4/packet.cstatic void packet_close(struct sock *sk, int timeout)
sock258net/ipv4/packet.cstatic int packet_init(struct sock *sk)
sock276net/ipv4/packet.csk->pair = (struct sock *)p;
sock287net/ipv4/packet.cint packet_recvfrom(struct sock *sk, unsigned char *to, int len,
sock367net/ipv4/packet.cint packet_read(struct sock *sk, unsigned char *buff,
sock60net/ipv4/proc.cstruct sock **s_array;
sock61net/ipv4/proc.cstruct sock *sp;
sock69net/ipv4/raw.cstruct sock *sk;
sock73net/ipv4/raw.csk = (struct sock *) protocol->data;
sock97net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, long saddr, long daddr)
sock158net/ipv4/raw.cstatic int raw_sendto(struct sock *sk, const unsigned char *from, 
sock210net/ipv4/raw.cstatic int raw_write(struct sock *sk, const unsigned char *buff, int len, int noblock,
sock217net/ipv4/raw.cstatic void raw_close(struct sock *sk, int timeout)
sock223net/ipv4/raw.cstatic int raw_init(struct sock *sk)
sock234net/ipv4/raw.cint raw_recvfrom(struct sock *sk, unsigned char *to, int len,
sock274net/ipv4/raw.cint raw_read (struct sock *sk, unsigned char *buff, int len, int noblock,unsigned flags)
sock266net/ipv4/tcp.cvolatile struct sock *th_cache_sk;
sock281net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout);
sock307net/ipv4/tcp.cstatic __inline__ void tcp_set_state(struct sock *sk, int state)
sock342net/ipv4/tcp.cint tcp_select_window(struct sock *sk)
sock371net/ipv4/tcp.cstatic struct sk_buff *tcp_find_established(struct sock *s)
sock391net/ipv4/tcp.cstatic struct sk_buff *tcp_dequeue_established(struct sock *s)
sock410net/ipv4/tcp.cstatic void tcp_close_pending (struct sock *sk) 
sock427net/ipv4/tcp.cstatic void tcp_time_wait(struct sock *sk)
sock441net/ipv4/tcp.cvoid tcp_do_retransmit(struct sock *sk, int all)
sock590net/ipv4/tcp.cstatic void reset_xmit_timer(struct sock *sk, int why, unsigned long when)
sock611net/ipv4/tcp.cvoid tcp_retransmit_time(struct sock *sk, int all)
sock647net/ipv4/tcp.cstatic void tcp_retransmit(struct sock *sk, int all)
sock669net/ipv4/tcp.cstatic int tcp_write_timeout(struct sock *sk)
sock741net/ipv4/tcp.cstruct sock *sk = (struct sock*)data;
sock851net/ipv4/tcp.cstruct sock *sk;
sock909net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sock983net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sock1006net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sock1055net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock1124net/ipv4/tcp.cunsigned long daddr, int len, struct sock *sk)
sock1137net/ipv4/tcp.cstatic void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sock1256net/ipv4/tcp.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sock1276net/ipv4/tcp.cstatic void tcp_send_partial(struct sock *sk)
sock1290net/ipv4/tcp.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sock1320net/ipv4/tcp.cstruct sock *sk,
sock1435net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sock1459net/ipv4/tcp.cstatic int tcp_write(struct sock *sk, const unsigned char *from,
sock1780net/ipv4/tcp.cstatic int tcp_sendto(struct sock *sk, const unsigned char *from,
sock1805net/ipv4/tcp.cstatic void tcp_read_wakeup(struct sock *sk)
sock1887net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sock1975net/ipv4/tcp.cstatic int tcp_read_urg(struct sock * sk, int nonblock,
sock2032net/ipv4/tcp.cstatic int tcp_read(struct sock *sk, unsigned char *to,
sock2266net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sock2320net/ipv4/tcp.cstatic void tcp_send_fin(struct sock *sk)
sock2421net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sock2474net/ipv4/tcp.ctcp_recvfrom(struct sock *sk, unsigned char *to,
sock2598net/ipv4/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sock2683net/ipv4/tcp.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sock2690net/ipv4/tcp.cstruct sock *newsk;
sock2733net/ipv4/tcp.cnewsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC);
sock2954net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout)
sock3027net/ipv4/tcp.cstatic void tcp_write_xmit(struct sock *sk)
sock3116net/ipv4/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
sock3719net/ipv4/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sock3806net/ipv4/tcp.cextern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, 
sock4133net/ipv4/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sock4165net/ipv4/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
sock4206net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sock4208net/ipv4/tcp.cstruct sock *newsk;
sock4265net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock4425net/ipv4/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sock4481net/ipv4/tcp.cstatic int tcp_std_reset(struct sock *sk, struct sk_buff *skb)
sock4519net/ipv4/tcp.cstruct sock *sk;
sock4536net/ipv4/tcp.csk=(struct sock *)th_cache_sk;
sock4917net/ipv4/tcp.cstatic void tcp_write_wakeup(struct sock *sk)
sock5139net/ipv4/tcp.cvoid tcp_send_probe0(struct sock *sk)
sock5157net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock5193net/ipv4/tcp.cint tcp_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock53net/ipv4/timer.cvoid delete_timer (struct sock *t)
sock66net/ipv4/timer.cvoid reset_timer (struct sock *t, int timeout, unsigned long len)
sock88net/ipv4/timer.cstruct sock *sk = (struct sock*)data;
sock122net/ipv4/udp.cvolatile struct sock *uh_cache_sk;
sock137net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len);
sock157net/ipv4/udp.cstruct sock *sk;
sock289net/ipv4/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sock328net/ipv4/udp.cstatic int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock,
sock397net/ipv4/udp.cstatic int udp_write(struct sock *sk, const unsigned char *buff, int len, int noblock,
sock408net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock463net/ipv4/udp.cint udp_recvfrom(struct sock *sk, unsigned char *to, int len,
sock515net/ipv4/udp.cint udp_read(struct sock *sk, unsigned char *buff, int len, int noblock,
sock522net/ipv4/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock551net/ipv4/udp.cstatic void udp_close(struct sock *sk, int timeout)
sock572net/ipv4/udp.cstruct sock *sk;
sock639net/ipv4/udp.cstruct sock *sknext=NULL;
sock665net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sock694net/ipv4/udp.cstatic int udp_deliver(struct sock *sk, struct udphdr *uh, struct sk_buff *skb, struct device *dev, long saddr, long daddr, int len)
sock325net/ipx/af_ipx.cipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb)
sock329net/ipx/af_ipx.cif((retval = sock_queue_rcv_skb(sock, skb))<0) {
sock350net/ipx/af_ipx.csock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock);
sock360net/ipx/af_ipx.cswitch (ntohs(ipx->ipx_dest.sock)) {
sock371net/ipx/af_ipx.cipx->ipx_dest.sock);
sock1035net/ipx/af_ipx.cipx->ipx_source.sock = sk->ipx_port;
sock1038net/ipx/af_ipx.cipx->ipx_dest.sock=usipx->sipx_port;
sock1198net/ipx/af_ipx.chtons(s->ipx_dest_addr.sock));
sock1272net/ipx/af_ipx.cstatic int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1281net/ipx/af_ipx.cstatic int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock1286net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1317net/ipx/af_ipx.cstatic int ipx_getsockopt(struct socket *sock, int level, int optname,
sock1324net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1355net/ipx/af_ipx.cstatic int ipx_listen(struct socket *sock, int backlog)
sock1360net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sock1366net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sock1376net/ipx/af_ipx.cipx_create(struct socket *sock, int protocol)
sock1382net/ipx/af_ipx.cswitch(sock->type)
sock1406net/ipx/af_ipx.csk->socket=sock;
sock1407net/ipx/af_ipx.csk->type=sock->type;
sock1415net/ipx/af_ipx.cif(sock!=NULL)
sock1417net/ipx/af_ipx.csock->data=(void *)sk;
sock1418net/ipx/af_ipx.csk->sleep=sock->wait;
sock1430net/ipx/af_ipx.cstatic int ipx_release(struct socket *sock, struct socket *peer)
sock1432net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1438net/ipx/af_ipx.csock->data=NULL;
sock1466net/ipx/af_ipx.cstatic int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1472net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1511net/ipx/af_ipx.cstatic int ipx_connect(struct socket *sock, struct sockaddr *uaddr,
sock1514net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1518net/ipx/af_ipx.csock->state = SS_UNCONNECTED;
sock1532net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock1539net/ipx/af_ipx.csk->ipx_dest_addr.sock=addr->sipx_port;
sock1542net/ipx/af_ipx.csock->state = SS_CONNECTED;
sock1552net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
sock1559net/ipx/af_ipx.cstatic int ipx_getname(struct socket *sock, struct sockaddr *uaddr,
sock1566net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1576net/ipx/af_ipx.csipx.sipx_port = addr->sock;
sock1633net/ipx/af_ipx.cp->node[3],p->node[4],p->node[5],ntohs(p->sock));
sock1692net/ipx/af_ipx.cstatic int ipx_sendto(struct socket *sock, const void *ubuf, int len, int noblock,
sock1695net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1710net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock1724net/ipx/af_ipx.cusipx->sipx_port=sk->ipx_dest_addr.sock;
sock1735net/ipx/af_ipx.cstatic int ipx_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1737net/ipx/af_ipx.creturn ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0);
sock1740net/ipx/af_ipx.cstatic int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1743net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1776net/ipx/af_ipx.csipx->sipx_port=ipx->ipx_source.sock;
sock1785net/ipx/af_ipx.cstatic int ipx_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1787net/ipx/af_ipx.creturn ipx_send(sock,ubuf,size,noblock,0);
sock1791net/ipx/af_ipx.cstatic int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1794net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1797net/ipx/af_ipx.creturn ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL);
sock1800net/ipx/af_ipx.cstatic int ipx_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1802net/ipx/af_ipx.creturn ipx_recv(sock,ubuf,size,noblock,0);
sock1811net/ipx/af_ipx.cstatic int ipx_select(struct socket *sock , int sel_type, select_table *wait)
sock1813net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1818net/ipx/af_ipx.cstatic int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1822net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock69net/netrom/af_netrom.cstatic struct sock *volatile nr_list = NULL;
sock74net/netrom/af_netrom.cstatic void nr_remove_socket(struct sock *sk)
sock76net/netrom/af_netrom.cstruct sock *s;
sock106net/netrom/af_netrom.cstruct sock *s;
sock138net/netrom/af_netrom.cstatic void nr_insert_socket(struct sock *sk)
sock155net/netrom/af_netrom.cstatic struct sock *nr_find_listener(ax25_address *addr, int type)
sock158net/netrom/af_netrom.cstruct sock *s;
sock177net/netrom/af_netrom.cstatic struct sock *nr_find_socket(unsigned char index, unsigned char id, int type)
sock179net/netrom/af_netrom.cstruct sock *s;
sock200net/netrom/af_netrom.cstatic struct sock *nr_find_peer(unsigned char index, unsigned char id, int type)
sock202net/netrom/af_netrom.cstruct sock *s;
sock223net/netrom/af_netrom.cvoid nr_destory_socket(struct sock *);
sock230net/netrom/af_netrom.cnr_destroy_socket((struct sock *)data);
sock239net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *sk)  /* Not static as its used by the timer */
sock282net/netrom/af_netrom.cstatic int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock291net/netrom/af_netrom.cstatic int nr_setsockopt(struct socket *sock, int level, int optname,
sock294net/netrom/af_netrom.cstruct sock *sk;
sock297net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock337net/netrom/af_netrom.cstatic int nr_getsockopt(struct socket *sock, int level, int optname,
sock340net/netrom/af_netrom.cstruct sock *sk;
sock344net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock382net/netrom/af_netrom.cstatic int nr_listen(struct socket *sock, int backlog)
sock384net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock396net/netrom/af_netrom.cstatic void def_callback1(struct sock *sk)
sock402net/netrom/af_netrom.cstatic void def_callback2(struct sock *sk, int len)
sock408net/netrom/af_netrom.cstatic int nr_create(struct socket *sock, int protocol)
sock410net/netrom/af_netrom.cstruct sock *sk;
sock413net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock421net/netrom/af_netrom.csk->type = sock->type;
sock423net/netrom/af_netrom.cswitch (sock->type) {
sock438net/netrom/af_netrom.csk->socket        = sock;
sock466net/netrom/af_netrom.cif (sock != NULL) {
sock467net/netrom/af_netrom.csock->data = (void *)sk;
sock468net/netrom/af_netrom.csk->sleep  = sock->wait;
sock513net/netrom/af_netrom.cstatic struct sock *nr_make_new(struct sock *osk)
sock515net/netrom/af_netrom.cstruct sock *sk;
sock518net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock603net/netrom/af_netrom.cstruct sock *sk = (struct sock *)oldsock->data;
sock608net/netrom/af_netrom.cstatic int nr_release(struct socket *sock, struct socket *peer)
sock610net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock658net/netrom/af_netrom.csock->data = NULL;  
sock663net/netrom/af_netrom.cstatic int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock665net/netrom/af_netrom.cstruct sock *sk;
sock670net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock724net/netrom/af_netrom.cstatic int nr_connect(struct socket *sock, struct sockaddr *uaddr,
sock727net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock732net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock733net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock737net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock738net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock746net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock779net/netrom/af_netrom.csock->state   = SS_CONNECTING;
sock804net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock808net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock820net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
sock822net/netrom/af_netrom.cstruct sock *sk;
sock823net/netrom/af_netrom.cstruct sock *newsk;
sock827net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
sock831net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock869net/netrom/af_netrom.cstatic int nr_getname(struct socket *sock, struct sockaddr *uaddr,
sock873net/netrom/af_netrom.cstruct sock *sk;
sock875net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock897net/netrom/af_netrom.cstruct sock *sk;
sock898net/netrom/af_netrom.cstruct sock *make;  
sock1011net/netrom/af_netrom.cstatic int nr_sendto(struct socket *sock, const void *ubuf, int len, int noblock,
sock1014net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1117net/netrom/af_netrom.cstatic int nr_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags)
sock1119net/netrom/af_netrom.creturn nr_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
sock1122net/netrom/af_netrom.cstatic int nr_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock1124net/netrom/af_netrom.creturn nr_send(sock, ubuf, size, noblock, 0);
sock1127net/netrom/af_netrom.cstatic int nr_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1130net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1173net/netrom/af_netrom.cstatic int nr_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1176net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1181net/netrom/af_netrom.creturn nr_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL);
sock1184net/netrom/af_netrom.cstatic int nr_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1186net/netrom/af_netrom.creturn nr_recv(sock, ubuf, size, noblock, 0);
sock1194net/netrom/af_netrom.cstatic int nr_select(struct socket *sock , int sel_type, select_table *wait)
sock1196net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1201net/netrom/af_netrom.cstatic int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1203net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1292net/netrom/af_netrom.cstruct sock *s;
sock51net/netrom/nr_in.cstatic int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
sock90net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock136net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock165net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock319net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
sock48net/netrom/nr_out.cvoid nr_output(struct sock *sk, struct sk_buff *skb)
sock103net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
sock117net/netrom/nr_out.cvoid nr_send_nak_frame(struct sock *sk)
sock134net/netrom/nr_out.cvoid nr_kick(struct sock *sk)
sock194net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
sock235net/netrom/nr_out.cvoid nr_nr_error_recovery(struct sock *sk)
sock240net/netrom/nr_out.cvoid nr_establish_data_link(struct sock *sk)
sock254net/netrom/nr_out.cvoid nr_enquiry_response(struct sock *sk)
sock272net/netrom/nr_out.cvoid nr_check_iframes_acked(struct sock *sk, unsigned short nr)
sock47net/netrom/nr_subr.cvoid nr_clear_queues(struct sock *sk)
sock77net/netrom/nr_subr.cvoid nr_frames_acked(struct sock *sk, unsigned short nr)
sock100net/netrom/nr_subr.cvoid nr_requeue_frames(struct sock *sk)
sock117net/netrom/nr_subr.cint nr_validate_nr(struct sock *sk, unsigned short nr)
sock134net/netrom/nr_subr.cint nr_in_rx_window(struct sock *sk, unsigned short ns)
sock153net/netrom/nr_subr.cvoid nr_write_internal(struct sock *sk, int frametype)
sock294net/netrom/nr_subr.cunsigned short nr_calculate_t1(struct sock *sk)
sock309net/netrom/nr_subr.cvoid nr_calculate_rtt(struct sock *sk)
sock48net/netrom/nr_timer.cvoid nr_set_timer(struct sock *sk)
sock65net/netrom/nr_timer.cstatic void nr_reset_timer(struct sock *sk)
sock88net/netrom/nr_timer.cstruct sock *sk = (struct sock *)param;
sock235net/socket.cstruct socket * sock;
sock246net/socket.csock = &inode->u.socket_i;
sock247net/socket.csock->state = SS_UNCONNECTED;
sock248net/socket.csock->flags = 0;
sock249net/socket.csock->ops = NULL;
sock250net/socket.csock->data = NULL;
sock251net/socket.csock->conn = NULL;
sock252net/socket.csock->iconn = NULL;
sock253net/socket.csock->next = NULL;
sock254net/socket.csock->wait = &inode->i_wait;
sock255net/socket.csock->inode = inode;    /* "backlink": we could use pointer arithmetic instead */
sock256net/socket.csock->fasync_list = NULL;
sock258net/socket.creturn sock;
sock272net/socket.cvoid sock_release(struct socket *sock)
sock277net/socket.cif ((oldstate = sock->state) != SS_UNCONNECTED)
sock278net/socket.csock->state = SS_DISCONNECTING;
sock284net/socket.cfor (peersock = sock->iconn; peersock; peersock = nextsock) 
sock295net/socket.cpeersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL;
sock296net/socket.cif (sock->ops) 
sock297net/socket.csock->ops->release(sock, peersock);
sock301net/socket.ciput(SOCK_INODE(sock));
sock320net/socket.cstruct socket *sock;
sock323net/socket.csock = socki_lookup(inode); 
sock324net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock333net/socket.creturn(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK)));
sock343net/socket.cstruct socket *sock;
sock346net/socket.csock = socki_lookup(inode); 
sock348net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock358net/socket.creturn(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK)));
sock369net/socket.cstruct socket *sock;
sock370net/socket.csock = socki_lookup(inode); 
sock371net/socket.creturn(sock->ops->ioctl(sock, cmd, arg));
sock377net/socket.cstruct socket *sock;
sock379net/socket.csock = socki_lookup(inode);
sock385net/socket.cif (sock->ops->select)
sock386net/socket.creturn(sock->ops->select(sock, sel_type, wait));
sock410net/socket.cstruct socket *sock;
sock420net/socket.csock = socki_lookup(inode);
sock422net/socket.cprev=&(sock->fasync_list);
sock441net/socket.cfna->fa_next=sock->fasync_list;
sock442net/socket.csock->fasync_list=fna;
sock456net/socket.cint sock_wake_async(struct socket *sock, int how)
sock458net/socket.cif (!sock || !sock->fasync_list)
sock463net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock466net/socket.cif (!(sock->flags & SO_WAITDATA))
sock467net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock470net/socket.cif (sock->flags & SO_NOSPACE)
sock472net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock473net/socket.csock->flags &= ~SO_NOSPACE;
sock566net/socket.cstruct socket *sock;
sock601net/socket.cif (!(sock = sock_alloc())) 
sock608net/socket.csock->type = type;
sock609net/socket.csock->ops = ops;
sock610net/socket.cif ((i = sock->ops->create(sock, protocol)) < 0) 
sock612net/socket.csock_release(sock);
sock616net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
sock618net/socket.csock_release(sock);
sock696net/socket.cstruct socket *sock;
sock704net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock710net/socket.cif ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) 
sock726net/socket.cstruct socket *sock;
sock730net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock733net/socket.cif (sock->state != SS_UNCONNECTED) 
sock738net/socket.cif (sock->ops && sock->ops->listen)
sock739net/socket.csock->ops->listen(sock, backlog);
sock740net/socket.csock->flags |= SO_ACCEPTCON;
sock756net/socket.cstruct socket *sock, *newsock;
sock763net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
sock765net/socket.cif (sock->state != SS_UNCONNECTED) 
sock769net/socket.cif (!(sock->flags & SO_ACCEPTCON)) 
sock780net/socket.cnewsock->type = sock->type;
sock781net/socket.cnewsock->ops = sock->ops;
sock782net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
sock788net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
sock817net/socket.cstruct socket *sock;
sock825net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
sock831net/socket.cswitch(sock->state) 
sock838net/socket.cif(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */
sock853net/socket.ci = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags);
sock868net/socket.cstruct socket *sock;
sock875net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock878net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0);
sock893net/socket.cstruct socket *sock;
sock900net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock903net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1);
sock918net/socket.cstruct socket *sock;
sock924net/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)))
sock963net/socket.creturn(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock978net/socket.cstruct socket *sock;
sock985net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock996net/socket.creturn(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags));
sock1008net/socket.cstruct socket *sock;
sock1015net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1026net/socket.clen=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock1044net/socket.cstruct socket *sock;
sock1049net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1052net/socket.creturn(sock->ops->setsockopt(sock, level, optname, optval, optlen));
sock1062net/socket.cstruct socket *sock;
sock1067net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1070net/socket.cif (!sock->ops->getsockopt) 
sock1072net/socket.creturn(sock->ops->getsockopt(sock, level, optname, optval, optlen));
sock1082net/socket.cstruct socket *sock;
sock1087net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1090net/socket.creturn(sock->ops->shutdown(sock, how));
sock1099net/socket.cstruct socket *sock;
sock1109net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1123net/socket.cif(sock->ops->sendmsg==NULL)
sock1125net/socket.creturn sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags);
sock1134net/socket.cstruct socket *sock;
sock1146net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1160net/socket.cif(sock->ops->recvmsg==NULL)
sock1162net/socket.clen=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len);
sock1180net/socket.cstruct socket *sock;
sock1182net/socket.csock = socki_lookup (filp->f_inode);
sock1183net/socket.cif (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL)
sock1184net/socket.creturn(sock->ops->fcntl(sock, cmd, arg));
sock196net/unix/af_unix.cstatic int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock205net/unix/af_unix.cstatic int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock207net/unix/af_unix.cunix_socket *sk=sock->data;
sock213net/unix/af_unix.cstatic int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen)
sock215net/unix/af_unix.cunix_socket *sk=sock->data;
sock221net/unix/af_unix.cstatic int unix_listen(struct socket *sock, int backlog)
sock223net/unix/af_unix.cunix_socket *sk=sock->data;
sock231net/unix/af_unix.cstatic void def_callback1(struct sock *sk)
sock237net/unix/af_unix.cstatic void def_callback2(struct sock *sk, int len)
sock243net/unix/af_unix.cstatic int unix_create(struct socket *sock, int protocol)
sock252net/unix/af_unix.csk->type=sock->type;
sock253net/unix/af_unix.cswitch(sock->type)
sock295net/unix/af_unix.csk->socket=sock;
sock296net/unix/af_unix.csock->data=(void *)sk;
sock297net/unix/af_unix.csk->sleep=sock->wait;
sock308net/unix/af_unix.cstatic int unix_release(struct socket *sock, struct socket *peer)
sock310net/unix/af_unix.cunix_socket *sk=sock->data;
sock361net/unix/af_unix.cstatic int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock364net/unix/af_unix.cunix_socket *sk=sock->data;
sock405net/unix/af_unix.cstatic int unix_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags)
sock407net/unix/af_unix.cunix_socket *sk=sock->data;
sock416net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED)
sock418net/unix/af_unix.csock->state=SS_CONNECTED;
sock421net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE)
sock423net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock426net/unix/af_unix.cif(sock->state==SS_CONNECTING)
sock438net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock441net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock443net/unix/af_unix.csock->state=SS_CONNECTED;
sock449net/unix/af_unix.cif(sock->state==SS_UNCONNECTED)
sock473net/unix/af_unix.csock->state=SS_CONNECTING;
sock505net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock513net/unix/af_unix.csock->state=SS_CONNECTED;
sock547net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
sock549net/unix/af_unix.cunix_socket *sk=sock->data;
sock607net/unix/af_unix.cstatic int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer)
sock609net/unix/af_unix.cunix_socket *sk=sock->data;
sock630net/unix/af_unix.cstatic int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags)
sock632net/unix/af_unix.cunix_socket *sk=sock->data;
sock652net/unix/af_unix.cif(sock->type==SOCK_STREAM)
sock673net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock708net/unix/af_unix.cstatic int unix_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock710net/unix/af_unix.cunix_socket *sk=sock->data;
sock806net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock816net/unix/af_unix.cstatic int unix_shutdown(struct socket *sock, int mode)
sock818net/unix/af_unix.cunix_socket *sk=(unix_socket *)sock->data;
sock845net/unix/af_unix.cstatic int unix_select(struct socket *sock,  int sel_type, select_table *wait)
sock847net/unix/af_unix.creturn datagram_select(sock->data,sel_type,wait);
sock850net/unix/af_unix.cstatic int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock852net/unix/af_unix.cunix_socket *sk=sock->data;
sock933net/unix/af_unix.cstatic int unix_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags,
sock947net/unix/af_unix.creturn unix_recvmsg(sock,&msg,size,noblock,flags,addr_len);  
sock950net/unix/af_unix.cstatic int unix_read(struct socket *sock, char *ubuf, int size, int noblock)
sock952net/unix/af_unix.creturn unix_recvfrom(sock,ubuf,size,noblock,0,NULL,NULL);
sock955net/unix/af_unix.cstatic int unix_recv(struct socket *sock, void *ubuf, int size, int noblock, unsigned int flags)
sock957net/unix/af_unix.creturn unix_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL);
sock960net/unix/af_unix.cstatic int unix_sendto(struct socket *sock, const void *ubuf, int size, int noblock, unsigned flags,
sock972net/unix/af_unix.creturn unix_sendmsg(sock,&msg,size,noblock,flags);  
sock975net/unix/af_unix.cstatic int unix_write(struct socket *sock, const char *ubuf, int size, int noblock)
sock977net/unix/af_unix.creturn unix_sendto(sock,ubuf,size,noblock, 0, NULL, 0);
sock980net/unix/af_unix.cstatic int unix_send(struct socket *sock, const void *ubuf, int size, int noblock, unsigned int flags)
sock982net/unix/af_unix.creturn unix_sendto(sock,ubuf,size,noblock, flags, NULL, 0);