taglinefilesource code
sock117drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sock811drivers/net/de600.cde600_rspace(struct sock *sk)
sock56fs/nfs/sock.cstruct socket *sock;
sock81fs/nfs/sock.csock = &inode->u.socket_i;
sock82fs/nfs/sock.cif (!sock) {
sock105fs/nfs/sock.cresult = sock->ops->send(sock, (void *) start, len, 0, 0);
sock163fs/nfs/sock.cresult = sock->ops->recvfrom(sock, (void *)&recv_xid,
sock194fs/nfs/sock.c(void)sock->ops->recvfrom(sock, (void *)&recv_xid,
sock208fs/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;
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);
sock91include/linux/net.hint  (*create)  (struct socket *sock, int protocol);
sock93include/linux/net.hint  (*release)  (struct socket *sock, struct socket *peer);
sock94include/linux/net.hint  (*bind)    (struct socket *sock, struct sockaddr *umyaddr,
sock96include/linux/net.hint  (*connect)  (struct socket *sock, struct sockaddr *uservaddr,
sock99include/linux/net.hint  (*accept)  (struct socket *sock, struct socket *newsock,
sock101include/linux/net.hint  (*getname)  (struct socket *sock, struct sockaddr *uaddr,
sock103include/linux/net.hint  (*read)    (struct socket *sock, char *ubuf, int size,
sock105include/linux/net.hint  (*write)  (struct socket *sock, char *ubuf, int size,
sock107include/linux/net.hint  (*select)  (struct socket *sock, int sel_type,
sock109include/linux/net.hint  (*ioctl)  (struct socket *sock, unsigned int cmd,
sock111include/linux/net.hint  (*listen)  (struct socket *sock, int len);
sock112include/linux/net.hint  (*send)    (struct socket *sock, void *buff, int len, int nonblock,
sock114include/linux/net.hint  (*recv)    (struct socket *sock, void *buff, int len, int nonblock,
sock116include/linux/net.hint  (*sendto)  (struct socket *sock, void *buff, int len, int nonblock,
sock118include/linux/net.hint  (*recvfrom)  (struct socket *sock, void *buff, int len, int nonblock,
sock120include/linux/net.hint  (*shutdown)  (struct socket *sock, int flags);
sock121include/linux/net.hint  (*setsockopt)  (struct socket *sock, int level, int optname,
sock123include/linux/net.hint  (*getsockopt)  (struct socket *sock, int level, int optname,
sock125include/linux/net.hint  (*fcntl)  (struct socket *sock, unsigned int cmd,
sock135include/linux/net.hextern int  sock_wake_async(struct socket *sock, int how);
sock139include/linux/net.hextern void  sock_release(struct socket *sock);
sock159include/linux/netdevice.hint        (*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       */
sock358include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sock359include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sock133include/net/ax25.hstruct sock    *sk;    /* Backlink to socket */
sock35include/net/eth.hextern int    eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr);
sock35include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sock44include/net/ip.hextern void    ip_mc_dropsocket(struct sock *);
sock80include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd,
sock95include/net/ip.hextern void    ip_queue_xmit(struct sock *sk,
sock98include/net/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sock99include/net/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
sock101include/net/ip.hextern int    ip_build_xmit(struct sock *sk,
sock22include/net/ipx.hunsigned short sock;
sock45include/net/ipx.htypedef struct sock ipx_socket;
sock57include/net/netrom.hstruct sock    *sk;    /* Backlink to socket */
sock89include/net/netrom.hextern void nr_destroy_socket(struct sock *);
sock99include/net/netrom.hextern int  nr_process_rx_frame(struct sock *, struct sk_buff *);
sock102include/net/netrom.hextern int  nr_output(struct sock *, struct sk_buff *);
sock103include/net/netrom.hextern void nr_send_nak_frame(struct sock *);
sock104include/net/netrom.hextern void nr_kick(struct sock *);
sock105include/net/netrom.hextern void nr_transmit_buffer(struct sock *, struct sk_buff *);
sock106include/net/netrom.hextern void nr_nr_error_recovery(struct sock *);
sock107include/net/netrom.hextern void nr_establish_data_link(struct sock *);
sock108include/net/netrom.hextern void nr_enquiry_response(struct sock *);
sock109include/net/netrom.hextern void nr_check_iframes_acked(struct sock *, unsigned short);
sock122include/net/netrom.hextern void nr_clear_tx_queue(struct sock *);
sock123include/net/netrom.hextern void nr_frames_acked(struct sock *, unsigned short);
sock124include/net/netrom.hextern void nr_requeue_frames(struct sock *);
sock125include/net/netrom.hextern int  nr_validate_nr(struct sock *, unsigned short);
sock126include/net/netrom.hextern int  nr_in_rx_window(struct sock *, unsigned short);
sock127include/net/netrom.hextern void nr_write_internal(struct sock *, int);
sock129include/net/netrom.hextern unsigned short nr_calculate_t1(struct sock *);
sock130include/net/netrom.hextern void nr_calculate_rtt(struct sock *);
sock133include/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 *, 
sock100include/net/sock.hstruct sock      *next;
sock101include/net/sock.hstruct sock      *prev; /* Doubly linked chain.. */
sock102include/net/sock.hstruct sock      *pair;
sock202include/net/sock.hvoid        (*state_change)(struct sock *sk);
sock203include/net/sock.hvoid        (*data_ready)(struct sock *sk,int bytes);
sock204include/net/sock.hvoid        (*write_space)(struct sock *sk);
sock205include/net/sock.hvoid        (*error_report)(struct sock *sk);
sock210include/net/sock.hstruct sk_buff *  (*wmalloc)(struct sock *sk,
sock213include/net/sock.hstruct sk_buff *  (*rmalloc)(struct sock *sk,
sock216include/net/sock.hvoid      (*wfree)(struct sock *sk, struct sk_buff *skb);
sock217include/net/sock.hvoid      (*rfree)(struct sock *sk, struct sk_buff *skb);
sock218include/net/sock.hunsigned long    (*rspace)(struct sock *sk);
sock219include/net/sock.hunsigned long    (*wspace)(struct sock *sk);
sock220include/net/sock.hvoid      (*close)(struct sock *sk, int timeout);
sock221include/net/sock.hint      (*read)(struct sock *sk, unsigned char *to,
sock223include/net/sock.hint      (*write)(struct sock *sk, unsigned char *to,
sock225include/net/sock.hint      (*sendto)(struct sock *sk,
sock229include/net/sock.hint      (*recvfrom)(struct sock *sk,
sock238include/net/sock.hint      (*connect)(struct sock *sk,
sock240include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sock241include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sock244include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sock245include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sock246include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sock251include/net/sock.hint      (*select)(struct sock *sk, int which,
sock253include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sock255include/net/sock.hint      (*init)(struct sock *sk);
sock256include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sock257include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sock259include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sock266include/net/sock.hstruct sock *    sock_array[SOCK_ARRAY_SIZE];
sock285include/net/sock.hextern void      destroy_sock(struct sock *sk);
sock287include/net/sock.hextern void      put_sock(unsigned short, struct sock *); 
sock288include/net/sock.hextern void      release_sock(struct sock *sk);
sock289include/net/sock.hextern struct sock    *get_sock(struct proto *, unsigned short,
sock292include/net/sock.hextern struct sock    *get_sock_mcast(struct sock *, unsigned short,
sock295include/net/sock.hextern struct sock    *get_sock_raw(struct sock *, unsigned short,
sock298include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sock301include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sock304include/net/sock.hextern void      sock_wfree(struct sock *sk, struct sk_buff *skb);
sock305include/net/sock.hextern void      sock_rfree(struct sock *sk, struct sk_buff *skb);
sock306include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sock307include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sock309include/net/sock.hextern int      sock_setsockopt(struct sock *sk,int level,int op,char *optval,int optlen);
sock311include/net/sock.hextern int      sock_getsockopt(struct sock *sk,int level,int op,char *optval,int *optlen);
sock312include/net/sock.hextern struct sk_buff     *sock_alloc_send_skb(struct sock *skb, unsigned long size, int noblock, int *errcode);
sock322include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sock339include/net/sock.hextern struct sock *timer_base;
sock341include/net/sock.hvoid delete_timer (struct sock *);
sock342include/net/sock.hvoid reset_timer (struct sock *, int, unsigned long);
sock126include/net/tcp.hextern void  tcp_shutdown (struct sock *sk, int how);
sock132include/net/tcp.hextern int  tcp_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock134include/net/tcp.hextern int tcp_select_window(struct sock *sk);
sock136include/net/tcp.hunsigned long daddr, int len, struct sock *sk);
sock137include/net/tcp.hextern void tcp_send_probe0(struct sock *sk);
sock138include/net/tcp.hextern void tcp_enqueue_partial(struct sk_buff *, struct sock *);
sock139include/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)
sock921net/appletalk/ddp.cstatic int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock936net/appletalk/ddp.cstatic int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock941net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock974net/appletalk/ddp.cstatic int atalk_getsockopt(struct socket *sock, int level, int optname,
sock981net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1013net/appletalk/ddp.cstatic int atalk_listen(struct socket *sock, int backlog)
sock1022net/appletalk/ddp.cstatic void def_callback1(struct sock *sk)
sock1028net/appletalk/ddp.cstatic void def_callback2(struct sock *sk, int len)
sock1042net/appletalk/ddp.cstatic int atalk_create(struct socket *sock, int protocol)
sock1048net/appletalk/ddp.cswitch(sock->type)
sock1081net/appletalk/ddp.csk->socket=sock;
sock1082net/appletalk/ddp.csk->type=sock->type;
sock1095net/appletalk/ddp.cif(sock!=NULL)
sock1097net/appletalk/ddp.csock->data=(void *)sk;
sock1098net/appletalk/ddp.csk->sleep=sock->wait;
sock1123net/appletalk/ddp.cstatic int atalk_release(struct socket *sock, struct socket *peer)
sock1125net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1131net/appletalk/ddp.csock->data=NULL;
sock1173net/appletalk/ddp.cstatic int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1178net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1228net/appletalk/ddp.cstatic int atalk_connect(struct socket *sock, struct sockaddr *uaddr,
sock1231net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1235net/appletalk/ddp.csock->state = SS_UNCONNECTED;
sock1259net/appletalk/ddp.csock->state = SS_CONNECTED;
sock1277net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
sock1289net/appletalk/ddp.cstatic int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
sock1295net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1331net/appletalk/ddp.catalk_socket *sock;
sock1437net/appletalk/ddp.csock=atalk_search_socket( &tosat, atif );
sock1439net/appletalk/ddp.cif(sock==NULL)  /* But not one of our sockets */
sock1450net/appletalk/ddp.cskb->sk = sock;
sock1452net/appletalk/ddp.cif(sock_queue_rcv_skb(sock,skb)<0)
sock1460net/appletalk/ddp.cstatic int atalk_sendto(struct socket *sock, void *ubuf, int len, int noblock,
sock1463net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1637net/appletalk/ddp.cstatic int atalk_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags)
sock1639net/appletalk/ddp.creturn atalk_sendto(sock,ubuf,size,noblock,flags,NULL,0);
sock1642net/appletalk/ddp.cstatic int atalk_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1645net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1693net/appletalk/ddp.cstatic int atalk_write(struct socket *sock, char *ubuf, int size, int noblock)
sock1695net/appletalk/ddp.creturn atalk_send(sock,ubuf,size,noblock,0);
sock1699net/appletalk/ddp.cstatic int atalk_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1702net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1705net/appletalk/ddp.creturn atalk_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL);
sock1708net/appletalk/ddp.cstatic int atalk_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1710net/appletalk/ddp.creturn atalk_recv(sock,ubuf,size,noblock,0);
sock1719net/appletalk/ddp.cstatic int atalk_select(struct socket *sock , int sel_type, select_table *wait)
sock1721net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1730net/appletalk/ddp.cstatic int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1734net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock247net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
sock272net/ax25/af_ax25.cstatic struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type)
sock321net/ax25/af_ax25.cstatic struct sock *ax25_addr_match(ax25_address *addr)
sock341net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
sock626net/ax25/af_ax25.cstatic int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock635net/ax25/af_ax25.cstatic int ax25_setsockopt(struct socket *sock, int level, int optname,
sock638net/ax25/af_ax25.cstruct sock *sk;
sock641net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock697net/ax25/af_ax25.cstatic int ax25_getsockopt(struct socket *sock, int level, int optname,
sock700net/ax25/af_ax25.cstruct sock *sk;
sock704net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock754net/ax25/af_ax25.cstatic int ax25_listen(struct socket *sock, int backlog)
sock756net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock767net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sock773net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sock779net/ax25/af_ax25.cstatic int ax25_create(struct socket *sock, int protocol)
sock781net/ax25/af_ax25.cstruct sock *sk;
sock784net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock792net/ax25/af_ax25.csk->type = sock->type;
sock794net/ax25/af_ax25.cswitch (sock->type) {
sock812net/ax25/af_ax25.csk->socket        = sock;
sock839net/ax25/af_ax25.cif (sock != NULL) {
sock840net/ax25/af_ax25.csock->data = (void *)sk;
sock841net/ax25/af_ax25.csk->sleep  = sock->wait;
sock850net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
sock852net/ax25/af_ax25.cstruct sock *sk;
sock855net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock938net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sock943net/ax25/af_ax25.cstatic int ax25_release(struct socket *sock, struct socket *peer)
sock945net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock994net/ax25/af_ax25.csock->data = NULL;  
sock1005net/ax25/af_ax25.cstatic int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1007net/ax25/af_ax25.cstruct sock *sk;
sock1012net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1062net/ax25/af_ax25.cstatic int ax25_connect(struct socket *sock, struct sockaddr *uaddr,
sock1065net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1069net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock1070net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1074net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock1075net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1083net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1133net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1139net/ax25/af_ax25.csock->state        = SS_CONNECTING;
sock1162net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1166net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1178net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
sock1180net/ax25/af_ax25.cstruct sock *sk;
sock1181net/ax25/af_ax25.cstruct sock *newsk;
sock1185net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
sock1189net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1227net/ax25/af_ax25.cstatic int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
sock1232net/ax25/af_ax25.cstruct sock *sk;
sock1235net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1264net/ax25/af_ax25.cstruct sock *make;
sock1265net/ax25/af_ax25.cstruct sock *sk;
sock1270net/ax25/af_ax25.cstruct sock *raw;
sock1535net/ax25/af_ax25.cstatic int ax25_sendto(struct socket *sock, void *ubuf, int len, int noblock,
sock1538net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1685net/ax25/af_ax25.cstatic int ax25_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags)
sock1687net/ax25/af_ax25.creturn ax25_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
sock1690net/ax25/af_ax25.cstatic int ax25_write(struct socket *sock, char *ubuf, int size, int noblock)
sock1692net/ax25/af_ax25.creturn ax25_send(sock, ubuf, size, noblock, 0);
sock1695net/ax25/af_ax25.cstatic int ax25_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1698net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1756net/ax25/af_ax25.cstatic int ax25_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1759net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1764net/ax25/af_ax25.creturn ax25_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL);
sock1767net/ax25/af_ax25.cstatic int ax25_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1769net/ax25/af_ax25.creturn ax25_recv(sock, ubuf, size, noblock, 0);
sock1778net/ax25/af_ax25.cstatic int ax25_select(struct socket *sock , int sel_type, select_table *wait)
sock1780net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1785net/ax25/af_ax25.cstatic int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1787net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock53net/core/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sock176net/core/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sock379net/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)
sock216net/ethernet/eth.cvoid eth_header_cache(struct device *dev, struct sock *sk, unsigned long saddr, unsigned long daddr)
sock95net/ipv4/af_inet.cstruct sock *sk;
sock123net/ipv4/af_inet.cstruct sock *sk;
sock167net/ipv4/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sock169net/ipv4/af_inet.cstruct sock *sk1;
sock170net/ipv4/af_inet.cstruct sock *sk2;
sock236net/ipv4/af_inet.cstatic void remove_sock(struct sock *sk1)
sock238net/ipv4/af_inet.cstruct sock *sk2;
sock281net/ipv4/af_inet.cvoid destroy_sock(struct sock *sk)
sock399net/ipv4/af_inet.cstatic int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock401net/ipv4/af_inet.cstruct sock *sk;
sock403net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock428net/ipv4/af_inet.cstatic int inet_setsockopt(struct socket *sock, int level, int optname,
sock431net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sock444net/ipv4/af_inet.cstatic int inet_getsockopt(struct socket *sock, int level, int optname,
sock447net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sock460net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sock480net/ipv4/af_inet.cstatic int inet_listen(struct socket *sock, int backlog)
sock482net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock510net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sock516net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sock525net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sock541net/ipv4/af_inet.cstatic int inet_create(struct socket *sock, int protocol)
sock543net/ipv4/af_inet.cstruct sock *sk;
sock547net/ipv4/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sock553net/ipv4/af_inet.cswitch(sock->type) 
sock614net/ipv4/af_inet.csk->socket = sock;
sock620net/ipv4/af_inet.csk->type = sock->type;
sock707net/ipv4/af_inet.csk->sleep = sock->wait;
sock713net/ipv4/af_inet.csock->data =(void *) sk;
sock759net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
sock765net/ipv4/af_inet.cstatic inline int closing(struct sock * sk)
sock783net/ipv4/af_inet.cstatic int inet_release(struct socket *sock, struct socket *peer)
sock785net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock838net/ipv4/af_inet.csock->data = NULL;
sock845net/ipv4/af_inet.cstatic int inet_bind(struct socket *sock, struct sockaddr *uaddr,
sock849net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sock859net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock887net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock916net/ipv4/af_inet.cif(sock->type==SOCK_DGRAM)
sock918net/ipv4/af_inet.cif(sock->type==SOCK_STREAM)
sock933net/ipv4/af_inet.cstatic int inet_error(struct sock *sk)
sock950net/ipv4/af_inet.cstatic int inet_connect(struct socket *sock, struct sockaddr * uaddr,
sock953net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock955net/ipv4/af_inet.csock->conn = NULL;
sock957net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sock959net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock964net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sock974net/ipv4/af_inet.cif (sock->state != SS_CONNECTING) 
sock984net/ipv4/af_inet.csock->state = SS_CONNECTING;
sock987net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sock989net/ipv4/af_inet.csock->state=SS_UNCONNECTED;
sock1014net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1021net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1025net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1044net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
sock1046net/ipv4/af_inet.cstruct sock *sk1, *sk2;
sock1049net/ipv4/af_inet.csk1 = (struct sock *) sock->data;
sock1058net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sock1124net/ipv4/af_inet.cstatic int inet_getname(struct socket *sock, struct sockaddr *uaddr,
sock1128net/ipv4/af_inet.cstruct sock *sk;
sock1131net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock1156net/ipv4/af_inet.cstatic int inet_recvfrom(struct socket *sock, void *ubuf, int size, int noblock, 
sock1159net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1173net/ipv4/af_inet.cstatic int inet_recv(struct socket *sock, void *ubuf, int size, int noblock,
sock1177net/ipv4/af_inet.creturn inet_recvfrom(sock,ubuf,size,noblock,flags,NULL,NULL);
sock1180net/ipv4/af_inet.cstatic int inet_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1182net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1192net/ipv4/af_inet.cstatic int inet_send(struct socket *sock, void *ubuf, int size, int noblock, 
sock1195net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1209net/ipv4/af_inet.cstatic int inet_write(struct socket *sock, char *ubuf, int size, int noblock)
sock1211net/ipv4/af_inet.creturn inet_send(sock,ubuf,size,noblock,0);
sock1214net/ipv4/af_inet.cstatic int inet_sendto(struct socket *sock, void *ubuf, int size, int noblock, 
sock1217net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1235net/ipv4/af_inet.cstatic int inet_shutdown(struct socket *sock, int how)
sock1237net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sock1248net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sock1249net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1259net/ipv4/af_inet.cstatic int inet_select(struct socket *sock, int sel_type, select_table *wait )
sock1261net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sock1279net/ipv4/af_inet.cstatic int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1281net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock1377net/ipv4/af_inet.cstruct sock *get_sock(struct proto *prot, unsigned short num,
sock1381net/ipv4/af_inet.cstruct sock *s;
sock1382net/ipv4/af_inet.cstruct sock *result = NULL;
sock1441net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sock1446net/ipv4/af_inet.cstruct sock *s;
sock1470net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sock1475net/ipv4/af_inet.cstruct sock *s;
sock480net/ipv4/icmp.cip_queue_xmit((struct sock *)NULL, ndev, skb2, 1);
sock566net/ipv4/icmp.cip_queue_xmit((struct sock *) NULL, ndev, skb2, 1);
sock649net/ipv4/icmp.cip_queue_xmit((struct sock *)NULL, ndev, skb2, 1);
sock780net/ipv4/icmp.cint icmp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock323net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sock357net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sock383net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sock142net/ipv4/ip.cextern void sort_send(struct sock *sk);
sock163net/ipv4/ip.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock838net/ipv4/ip.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sock1252net/ipv4/ip.cstruct sock *raw_sk=NULL;
sock1532net/ipv4/ip.cstruct sock *sknext=NULL;
sock1719net/ipv4/ip.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sock2000net/ipv4/ip.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock2253net/ipv4/ip.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock2326net/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, unsigned char *from, int len,
sock227net/ipv4/packet.cstatic int packet_write(struct sock *sk, 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, unsigned char *from, 
sock210net/ipv4/raw.cstatic int raw_write(struct sock *sk, 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)
sock261net/ipv4/tcp.cvolatile struct sock *th_cache_sk;
sock276net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout);
sock302net/ipv4/tcp.cstatic __inline__ void tcp_set_state(struct sock *sk, int state)
sock337net/ipv4/tcp.cint tcp_select_window(struct sock *sk)
sock366net/ipv4/tcp.cstatic struct sk_buff *tcp_find_established(struct sock *s)
sock386net/ipv4/tcp.cstatic struct sk_buff *tcp_dequeue_established(struct sock *s)
sock405net/ipv4/tcp.cstatic void tcp_close_pending (struct sock *sk) 
sock422net/ipv4/tcp.cstatic void tcp_time_wait(struct sock *sk)
sock436net/ipv4/tcp.cvoid tcp_do_retransmit(struct sock *sk, int all)
sock549net/ipv4/tcp.cstatic void reset_xmit_timer(struct sock *sk, int why, unsigned long when)
sock570net/ipv4/tcp.cvoid tcp_retransmit_time(struct sock *sk, int all)
sock606net/ipv4/tcp.cstatic void tcp_retransmit(struct sock *sk, int all)
sock628net/ipv4/tcp.cstatic int tcp_write_timeout(struct sock *sk)
sock700net/ipv4/tcp.cstruct sock *sk = (struct sock*)data;
sock810net/ipv4/tcp.cstruct sock *sk;
sock868net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sock942net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sock965net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sock1014net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock1083net/ipv4/tcp.cunsigned long daddr, int len, struct sock *sk)
sock1096net/ipv4/tcp.cstatic void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sock1215net/ipv4/tcp.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sock1235net/ipv4/tcp.cstatic void tcp_send_partial(struct sock *sk)
sock1249net/ipv4/tcp.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sock1279net/ipv4/tcp.cstruct sock *sk,
sock1394net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sock1418net/ipv4/tcp.cstatic int tcp_write(struct sock *sk, unsigned char *from,
sock1739net/ipv4/tcp.cstatic int tcp_sendto(struct sock *sk, unsigned char *from,
sock1764net/ipv4/tcp.cstatic void tcp_read_wakeup(struct sock *sk)
sock1839net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sock1927net/ipv4/tcp.cstatic int tcp_read_urg(struct sock * sk, int nonblock,
sock1984net/ipv4/tcp.cstatic int tcp_read(struct sock *sk, unsigned char *to,
sock2218net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sock2272net/ipv4/tcp.cstatic void tcp_send_fin(struct sock *sk)
sock2373net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sock2426net/ipv4/tcp.ctcp_recvfrom(struct sock *sk, unsigned char *to,
sock2550net/ipv4/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sock2635net/ipv4/tcp.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sock2642net/ipv4/tcp.cstruct sock *newsk;
sock2685net/ipv4/tcp.cnewsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC);
sock2906net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout)
sock2979net/ipv4/tcp.cstatic void tcp_write_xmit(struct sock *sk)
sock3069net/ipv4/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
sock3672net/ipv4/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sock3759net/ipv4/tcp.cextern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, 
sock4086net/ipv4/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sock4118net/ipv4/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
sock4159net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sock4161net/ipv4/tcp.cstruct sock *newsk;
sock4218net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock4378net/ipv4/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sock4434net/ipv4/tcp.cstatic int tcp_std_reset(struct sock *sk, struct sk_buff *skb)
sock4472net/ipv4/tcp.cstruct sock *sk;
sock4489net/ipv4/tcp.csk=(struct sock *)th_cache_sk;
sock4870net/ipv4/tcp.cstatic void tcp_write_wakeup(struct sock *sk)
sock5092net/ipv4/tcp.cvoid tcp_send_probe0(struct sock *sk)
sock5110net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock5146net/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;
sock94net/ipv4/udp.cvolatile struct sock *uh_cache_sk;
sock109net/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);
sock129net/ipv4/udp.cstruct sock *sk;
sock255net/ipv4/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sock280net/ipv4/udp.cstatic int udp_sendto(struct sock *sk, unsigned char *from, int len, int noblock,
sock339net/ipv4/udp.cstatic int udp_write(struct sock *sk, unsigned char *buff, int len, int noblock,
sock350net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock405net/ipv4/udp.cint udp_recvfrom(struct sock *sk, unsigned char *to, int len,
sock457net/ipv4/udp.cint udp_read(struct sock *sk, unsigned char *buff, int len, int noblock,
sock464net/ipv4/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock493net/ipv4/udp.cstatic void udp_close(struct sock *sk, int timeout)
sock514net/ipv4/udp.cstruct sock *sk;
sock570net/ipv4/udp.cstruct sock *sknext=NULL;
sock596net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sock625net/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)
sock324net/ipx/af_ipx.cipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb)
sock328net/ipx/af_ipx.cif((retval = sock_queue_rcv_skb(sock, skb))<0) {
sock349net/ipx/af_ipx.csock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock);
sock359net/ipx/af_ipx.cswitch (ntohs(ipx->ipx_dest.sock)) {
sock370net/ipx/af_ipx.cipx->ipx_dest.sock);
sock1028net/ipx/af_ipx.cipx->ipx_source.sock = sk->ipx_port;
sock1031net/ipx/af_ipx.cipx->ipx_dest.sock=usipx->sipx_port;
sock1191net/ipx/af_ipx.chtons(s->ipx_dest_addr.sock));
sock1264net/ipx/af_ipx.cstatic int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1273net/ipx/af_ipx.cstatic int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock1278net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1309net/ipx/af_ipx.cstatic int ipx_getsockopt(struct socket *sock, int level, int optname,
sock1316net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1347net/ipx/af_ipx.cstatic int ipx_listen(struct socket *sock, int backlog)
sock1352net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sock1358net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sock1368net/ipx/af_ipx.cipx_create(struct socket *sock, int protocol)
sock1374net/ipx/af_ipx.cswitch(sock->type)
sock1398net/ipx/af_ipx.csk->socket=sock;
sock1399net/ipx/af_ipx.csk->type=sock->type;
sock1407net/ipx/af_ipx.cif(sock!=NULL)
sock1409net/ipx/af_ipx.csock->data=(void *)sk;
sock1410net/ipx/af_ipx.csk->sleep=sock->wait;
sock1422net/ipx/af_ipx.cstatic int ipx_release(struct socket *sock, struct socket *peer)
sock1424net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1430net/ipx/af_ipx.csock->data=NULL;
sock1458net/ipx/af_ipx.cstatic int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1464net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1503net/ipx/af_ipx.cstatic int ipx_connect(struct socket *sock, struct sockaddr *uaddr,
sock1506net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1510net/ipx/af_ipx.csock->state = SS_UNCONNECTED;
sock1524net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock1531net/ipx/af_ipx.csk->ipx_dest_addr.sock=addr->sipx_port;
sock1534net/ipx/af_ipx.csock->state = SS_CONNECTED;
sock1544net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
sock1551net/ipx/af_ipx.cstatic int ipx_getname(struct socket *sock, struct sockaddr *uaddr,
sock1558net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1568net/ipx/af_ipx.csipx.sipx_port = addr->sock;
sock1614net/ipx/af_ipx.cp->node[3],p->node[4],p->node[5],ntohs(p->sock));
sock1671net/ipx/af_ipx.cstatic int ipx_sendto(struct socket *sock, void *ubuf, int len, int noblock,
sock1674net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1689net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr, sizeof(struct sockaddr_ipx));
sock1703net/ipx/af_ipx.cusipx->sipx_port=sk->ipx_dest_addr.sock;
sock1714net/ipx/af_ipx.cstatic int ipx_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags)
sock1716net/ipx/af_ipx.creturn ipx_sendto(sock,ubuf,size,noblock,flags,NULL,0);
sock1719net/ipx/af_ipx.cstatic int ipx_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1722net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1755net/ipx/af_ipx.csipx->sipx_port=ipx->ipx_source.sock;
sock1764net/ipx/af_ipx.cstatic int ipx_write(struct socket *sock, char *ubuf, int size, int noblock)
sock1766net/ipx/af_ipx.creturn ipx_send(sock,ubuf,size,noblock,0);
sock1770net/ipx/af_ipx.cstatic int ipx_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1773net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1776net/ipx/af_ipx.creturn ipx_recvfrom(sock,ubuf,size,noblock,flags,NULL, NULL);
sock1779net/ipx/af_ipx.cstatic int ipx_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1781net/ipx/af_ipx.creturn ipx_recv(sock,ubuf,size,noblock,0);
sock1790net/ipx/af_ipx.cstatic int ipx_select(struct socket *sock , int sel_type, select_table *wait)
sock1792net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1797net/ipx/af_ipx.cstatic int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1801net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock66net/netrom/af_netrom.cstatic struct sock *volatile nr_list = NULL;
sock71net/netrom/af_netrom.cstatic void nr_remove_socket(struct sock *sk)
sock73net/netrom/af_netrom.cstruct sock *s;
sock114net/netrom/af_netrom.cstatic void nr_insert_socket(struct sock *sk)
sock131net/netrom/af_netrom.cstatic struct sock *nr_find_listener(ax25_address *addr, int type)
sock134net/netrom/af_netrom.cstruct sock *s;
sock153net/netrom/af_netrom.cstatic struct sock *nr_find_socket(unsigned char index, unsigned char id, int type)
sock155net/netrom/af_netrom.cstruct sock *s;
sock176net/netrom/af_netrom.cstatic struct sock *nr_find_peer(unsigned char index, unsigned char id, int type)
sock178net/netrom/af_netrom.cstruct sock *s;
sock199net/netrom/af_netrom.cvoid nr_destory_socket(struct sock *);
sock206net/netrom/af_netrom.cnr_destroy_socket((struct sock *)data);
sock215net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *sk)  /* Not static as its used by the timer */
sock258net/netrom/af_netrom.cstatic int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock267net/netrom/af_netrom.cstatic int nr_setsockopt(struct socket *sock, int level, int optname,
sock270net/netrom/af_netrom.cstruct sock *sk;
sock273net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock313net/netrom/af_netrom.cstatic int nr_getsockopt(struct socket *sock, int level, int optname,
sock316net/netrom/af_netrom.cstruct sock *sk;
sock320net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock358net/netrom/af_netrom.cstatic int nr_listen(struct socket *sock, int backlog)
sock360net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock372net/netrom/af_netrom.cstatic void def_callback1(struct sock *sk)
sock378net/netrom/af_netrom.cstatic void def_callback2(struct sock *sk, int len)
sock384net/netrom/af_netrom.cstatic int nr_create(struct socket *sock, int protocol)
sock386net/netrom/af_netrom.cstruct sock *sk;
sock389net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock397net/netrom/af_netrom.csk->type = sock->type;
sock399net/netrom/af_netrom.cswitch (sock->type) {
sock414net/netrom/af_netrom.csk->socket        = sock;
sock442net/netrom/af_netrom.cif (sock != NULL) {
sock443net/netrom/af_netrom.csock->data = (void *)sk;
sock444net/netrom/af_netrom.csk->sleep  = sock->wait;
sock486net/netrom/af_netrom.cstatic struct sock *nr_make_new(struct sock *osk)
sock488net/netrom/af_netrom.cstruct sock *sk;
sock491net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock574net/netrom/af_netrom.cstruct sock *sk = (struct sock *)oldsock->data;
sock579net/netrom/af_netrom.cstatic int nr_release(struct socket *sock, struct socket *peer)
sock581net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock629net/netrom/af_netrom.csock->data = NULL;  
sock634net/netrom/af_netrom.cstatic int nr_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock636net/netrom/af_netrom.cstruct sock *sk;
sock640net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock693net/netrom/af_netrom.cstatic int nr_connect(struct socket *sock, struct sockaddr *uaddr,
sock696net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock701net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock702net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock706net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock707net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock715net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock748net/netrom/af_netrom.csock->state   = SS_CONNECTING;
sock773net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock777net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock789net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
sock791net/netrom/af_netrom.cstruct sock *sk;
sock792net/netrom/af_netrom.cstruct sock *newsk;
sock796net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
sock800net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock838net/netrom/af_netrom.cstatic int nr_getname(struct socket *sock, struct sockaddr *uaddr,
sock842net/netrom/af_netrom.cstruct sock *sk;
sock844net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock866net/netrom/af_netrom.cstruct sock *sk;
sock867net/netrom/af_netrom.cstruct sock *make;  
sock980net/netrom/af_netrom.cstatic int nr_sendto(struct socket *sock, void *ubuf, int len, int noblock,
sock983net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1083net/netrom/af_netrom.cstatic int nr_send(struct socket *sock, void *ubuf, int size, int noblock, unsigned flags)
sock1085net/netrom/af_netrom.creturn nr_sendto(sock, ubuf, size, noblock, flags, NULL, 0);
sock1088net/netrom/af_netrom.cstatic int nr_write(struct socket *sock, char *ubuf, int size, int noblock)
sock1090net/netrom/af_netrom.creturn nr_send(sock, ubuf, size, noblock, 0);
sock1093net/netrom/af_netrom.cstatic int nr_recvfrom(struct socket *sock, void *ubuf, int size, int noblock,
sock1096net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1139net/netrom/af_netrom.cstatic int nr_recv(struct socket *sock, void *ubuf, int size , int noblock,
sock1142net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1147net/netrom/af_netrom.creturn nr_recvfrom(sock, ubuf, size, noblock, flags, NULL, NULL);
sock1150net/netrom/af_netrom.cstatic int nr_read(struct socket *sock, char *ubuf, int size, int noblock)
sock1152net/netrom/af_netrom.creturn nr_recv(sock, ubuf, size, noblock, 0);
sock1160net/netrom/af_netrom.cstatic int nr_select(struct socket *sock , int sel_type, select_table *wait)
sock1162net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1167net/netrom/af_netrom.cstatic int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1169net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1256net/netrom/af_netrom.cstruct sock *s;
sock55net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock101net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock130net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock284net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
sock43net/netrom/nr_out.cint nr_output(struct sock *sk, struct sk_buff *skb)
sock57net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
sock68net/netrom/nr_out.cvoid nr_send_nak_frame(struct sock *sk)
sock85net/netrom/nr_out.cvoid nr_kick(struct sock *sk)
sock145net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
sock186net/netrom/nr_out.cvoid nr_nr_error_recovery(struct sock *sk)
sock191net/netrom/nr_out.cvoid nr_establish_data_link(struct sock *sk)
sock205net/netrom/nr_out.cvoid nr_enquiry_response(struct sock *sk)
sock223net/netrom/nr_out.cvoid nr_check_iframes_acked(struct sock *sk, unsigned short nr)
sock47net/netrom/nr_subr.cvoid nr_clear_tx_queue(struct sock *sk)
sock74net/netrom/nr_subr.cvoid nr_frames_acked(struct sock *sk, unsigned short nr)
sock97net/netrom/nr_subr.cvoid nr_requeue_frames(struct sock *sk)
sock114net/netrom/nr_subr.cint nr_validate_nr(struct sock *sk, unsigned short nr)
sock131net/netrom/nr_subr.cint nr_in_rx_window(struct sock *sk, unsigned short ns)
sock150net/netrom/nr_subr.cvoid nr_write_internal(struct sock *sk, int frametype)
sock291net/netrom/nr_subr.cunsigned short nr_calculate_t1(struct sock *sk)
sock304net/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;
sock234net/socket.cstruct socket * sock;
sock245net/socket.csock = &inode->u.socket_i;
sock246net/socket.csock->state = SS_UNCONNECTED;
sock247net/socket.csock->flags = 0;
sock248net/socket.csock->ops = NULL;
sock249net/socket.csock->data = NULL;
sock250net/socket.csock->conn = NULL;
sock251net/socket.csock->iconn = NULL;
sock252net/socket.csock->next = NULL;
sock253net/socket.csock->wait = &inode->i_wait;
sock254net/socket.csock->inode = inode;    /* "backlink": we could use pointer arithmetic instead */
sock255net/socket.csock->fasync_list = NULL;
sock257net/socket.creturn sock;
sock271net/socket.cvoid sock_release(struct socket *sock)
sock276net/socket.cif ((oldstate = sock->state) != SS_UNCONNECTED)
sock277net/socket.csock->state = SS_DISCONNECTING;
sock283net/socket.cfor (peersock = sock->iconn; peersock; peersock = nextsock) 
sock294net/socket.cpeersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL;
sock295net/socket.cif (sock->ops) 
sock296net/socket.csock->ops->release(sock, peersock);
sock300net/socket.ciput(SOCK_INODE(sock));
sock319net/socket.cstruct socket *sock;
sock322net/socket.csock = socki_lookup(inode); 
sock323net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock332net/socket.creturn(sock->ops->read(sock, ubuf, size, (file->f_flags & O_NONBLOCK)));
sock342net/socket.cstruct socket *sock;
sock345net/socket.csock = socki_lookup(inode); 
sock347net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock357net/socket.creturn(sock->ops->write(sock, ubuf, size,(file->f_flags & O_NONBLOCK)));
sock368net/socket.cstruct socket *sock;
sock369net/socket.csock = socki_lookup(inode); 
sock370net/socket.creturn(sock->ops->ioctl(sock, cmd, arg));
sock376net/socket.cstruct socket *sock;
sock378net/socket.csock = socki_lookup(inode);
sock384net/socket.cif (sock->ops->select)
sock385net/socket.creturn(sock->ops->select(sock, sel_type, wait));
sock409net/socket.cstruct socket *sock;
sock419net/socket.csock = socki_lookup(inode);
sock421net/socket.cprev=&(sock->fasync_list);
sock440net/socket.cfna->fa_next=sock->fasync_list;
sock441net/socket.csock->fasync_list=fna;
sock455net/socket.cint sock_wake_async(struct socket *sock, int how)
sock457net/socket.cif (!sock || !sock->fasync_list)
sock462net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock465net/socket.cif (!(sock->flags & SO_WAITDATA))
sock466net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock469net/socket.cif (sock->flags & SO_NOSPACE)
sock471net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock472net/socket.csock->flags &= ~SO_NOSPACE;
sock565net/socket.cstruct socket *sock;
sock600net/socket.cif (!(sock = sock_alloc())) 
sock607net/socket.csock->type = type;
sock608net/socket.csock->ops = ops;
sock609net/socket.cif ((i = sock->ops->create(sock, protocol)) < 0) 
sock611net/socket.csock_release(sock);
sock615net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
sock617net/socket.csock_release(sock);
sock695net/socket.cstruct socket *sock;
sock703net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock709net/socket.cif ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) 
sock725net/socket.cstruct socket *sock;
sock729net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock732net/socket.cif (sock->state != SS_UNCONNECTED) 
sock737net/socket.cif (sock->ops && sock->ops->listen)
sock738net/socket.csock->ops->listen(sock, backlog);
sock739net/socket.csock->flags |= SO_ACCEPTCON;
sock755net/socket.cstruct socket *sock, *newsock;
sock762net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
sock764net/socket.cif (sock->state != SS_UNCONNECTED) 
sock768net/socket.cif (!(sock->flags & SO_ACCEPTCON)) 
sock779net/socket.cnewsock->type = sock->type;
sock780net/socket.cnewsock->ops = sock->ops;
sock781net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
sock787net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
sock816net/socket.cstruct socket *sock;
sock824net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
sock830net/socket.cswitch(sock->state) 
sock837net/socket.cif(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */
sock852net/socket.ci = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags);
sock867net/socket.cstruct socket *sock;
sock874net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock877net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0);
sock892net/socket.cstruct socket *sock;
sock899net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock902net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1);
sock917net/socket.cstruct socket *sock;
sock923net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock931net/socket.creturn(sock->ops->send(sock, buff, len, (file->f_flags & O_NONBLOCK), flags));
sock943net/socket.cstruct socket *sock;
sock950net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock962net/socket.creturn(sock->ops->sendto(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock977net/socket.cstruct socket *sock;
sock984net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock995net/socket.creturn(sock->ops->recv(sock, buff, len,(file->f_flags & O_NONBLOCK), flags));
sock1007net/socket.cstruct socket *sock;
sock1014net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1025net/socket.clen=sock->ops->recvfrom(sock, buff, len, (file->f_flags & O_NONBLOCK),
sock1043net/socket.cstruct socket *sock;
sock1048net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1051net/socket.creturn(sock->ops->setsockopt(sock, level, optname, optval, optlen));
sock1061net/socket.cstruct socket *sock;
sock1066net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1069net/socket.cif (!sock->ops->getsockopt) 
sock1071net/socket.creturn(sock->ops->getsockopt(sock, level, optname, optval, optlen));
sock1081net/socket.cstruct socket *sock;
sock1086net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1089net/socket.creturn(sock->ops->shutdown(sock, how));
sock1099net/socket.cstruct socket *sock;
sock1101net/socket.csock = socki_lookup (filp->f_inode);
sock1102net/socket.cif (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL)
sock1103net/socket.creturn(sock->ops->fcntl(sock, cmd, arg));
sock60net/unix/sock.cstatic int unix_proto_create(struct socket *sock, int protocol);
sock62net/unix/sock.cstatic int unix_proto_release(struct socket *sock, struct socket *peer);
sock63net/unix/sock.cstatic int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr,
sock65net/unix/sock.cstatic int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr,
sock68net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, 
sock70net/unix/sock.cstatic int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr,
sock72net/unix/sock.cstatic int unix_proto_read(struct socket *sock, char *ubuf, int size,
sock74net/unix/sock.cstatic int unix_proto_write(struct socket *sock, char *ubuf, int size,
sock76net/unix/sock.cstatic int unix_proto_select(struct socket *sock, int sel_type, select_table * wait);
sock77net/unix/sock.cstatic int unix_proto_ioctl(struct socket *sock, unsigned int cmd,
sock79net/unix/sock.cstatic int unix_proto_listen(struct socket *sock, int backlog);
sock80net/unix/sock.cstatic int unix_proto_send(struct socket *sock, void *buff, int len,
sock82net/unix/sock.cstatic int unix_proto_recv(struct socket *sock, void *buff, int len,
sock84net/unix/sock.cstatic int unix_proto_sendto(struct socket *sock, void *buff, int len,
sock87net/unix/sock.cstatic int unix_proto_recvfrom(struct socket *sock, void *buff, int len,
sock91net/unix/sock.cstatic int unix_proto_shutdown(struct socket *sock, int how);
sock93net/unix/sock.cstatic int unix_proto_setsockopt(struct socket *sock, int level, int optname,
sock95net/unix/sock.cstatic int unix_proto_getsockopt(struct socket *sock, int level, int optname,
sock136net/unix/sock.cstatic int unix_proto_listen(struct socket *sock, int backlog)
sock145net/unix/sock.cstatic int unix_proto_setsockopt(struct socket *sock, int level, int optname,
sock152net/unix/sock.cstatic int unix_proto_getsockopt(struct socket *sock, int level, int optname,
sock163net/unix/sock.cstatic int unix_proto_sendto(struct socket *sock, void *buff, int len, int nonblock, 
sock169net/unix/sock.cstatic int unix_proto_recvfrom(struct socket *sock, void *buff, int len, int nonblock, 
sock179net/unix/sock.cstatic int unix_proto_shutdown(struct socket *sock, int how)
sock189net/unix/sock.cstatic int unix_proto_send(struct socket *sock, void *buff, int len, int nonblock,
sock194net/unix/sock.creturn(unix_proto_write(sock, (char *) buff, len, nonblock));
sock202net/unix/sock.cstatic int unix_proto_recv(struct socket *sock, void *buff, int len, int nonblock,
sock207net/unix/sock.creturn(unix_proto_read(sock, (char *) buff, len, nonblock));
sock306net/unix/sock.cstatic int unix_proto_create(struct socket *sock, int protocol)
sock331net/unix/sock.cupd->socket = sock;
sock332net/unix/sock.cUN_DATA(sock) = upd;
sock352net/unix/sock.cstatic int unix_proto_release(struct socket *sock, struct socket *peer)
sock354net/unix/sock.cstruct unix_proto_data *upd = UN_DATA(sock);
sock359net/unix/sock.cif (upd->socket != sock) 
sock371net/unix/sock.cUN_DATA(sock) = NULL;
sock391net/unix/sock.cstatic int unix_proto_bind(struct socket *sock, struct sockaddr *umyaddr,
sock395net/unix/sock.cstruct unix_proto_data *upd = UN_DATA(sock);
sock445net/unix/sock.cstatic int unix_proto_connect(struct socket *sock, struct sockaddr *uservaddr,
sock461net/unix/sock.cif (sock->state == SS_CONNECTING) 
sock463net/unix/sock.cif (sock->state == SS_CONNECTED)
sock498net/unix/sock.cif ((i = sock_awaitconn(sock, serv_upd->socket, flags)) < 0) 
sock503net/unix/sock.cif (sock->conn) 
sock505net/unix/sock.cunix_data_ref(UN_DATA(sock->conn));
sock506net/unix/sock.cUN_DATA(sock)->peerupd = UN_DATA(sock->conn); /* ref server */
sock535net/unix/sock.cstatic int unix_proto_accept(struct socket *sock, struct socket *newsock, int flags)
sock544net/unix/sock.cwhile(!(clientsock = sock->iconn)) 
sock548net/unix/sock.csock->flags |= SO_WAITDATA;
sock549net/unix/sock.cinterruptible_sleep_on(sock->wait);
sock550net/unix/sock.csock->flags &= ~SO_WAITDATA;
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;
sock581net/unix/sock.cstatic int unix_proto_getname(struct socket *sock, struct sockaddr *usockaddr,
sock589net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock593net/unix/sock.cupd = UN_DATA(sock->conn);
sock596net/unix/sock.cupd = UN_DATA(sock);
sock609net/unix/sock.cstatic int unix_proto_read(struct socket *sock, char *ubuf, int size, int nonblock)
sock617net/unix/sock.cupd = UN_DATA(sock);
sock620net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock622net/unix/sock.creturn((sock->state == SS_DISCONNECTING) ? 0 : -EINVAL);
sock626net/unix/sock.csock->flags |= SO_WAITDATA;
sock627net/unix/sock.cinterruptible_sleep_on(sock->wait);
sock628net/unix/sock.csock->flags &= ~SO_WAITDATA;
sock660net/unix/sock.cif (sock->state == SS_CONNECTED)
sock662net/unix/sock.cwake_up_interruptible(sock->conn->wait);
sock663net/unix/sock.csock_wake_async(sock->conn, 2);
sock679net/unix/sock.cstatic int unix_proto_write(struct socket *sock, char *ubuf, int size, int nonblock)
sock686net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock688net/unix/sock.cif (sock->state == SS_DISCONNECTING) 
sock695net/unix/sock.cpupd = UN_DATA(sock)->peerupd;  /* safer than sock->conn */
sock699net/unix/sock.csock->flags |= SO_NOSPACE;
sock702net/unix/sock.csock->flags &= ~SO_NOSPACE;
sock703net/unix/sock.cinterruptible_sleep_on(sock->wait);
sock708net/unix/sock.cif (sock->state == SS_DISCONNECTING) 
sock738net/unix/sock.cif (sock->state == SS_DISCONNECTING) 
sock755net/unix/sock.cif (sock->state == SS_CONNECTED)
sock757net/unix/sock.cwake_up_interruptible(sock->conn->wait);
sock758net/unix/sock.csock_wake_async(sock->conn, 1);
sock772net/unix/sock.cstatic int unix_proto_select(struct socket *sock, int sel_type, select_table * wait)
sock779net/unix/sock.cif (sock->flags & SO_ACCEPTCON) 
sock783net/unix/sock.cif (sock->iconn) 
sock785net/unix/sock.cselect_wait(sock->wait, wait);
sock786net/unix/sock.creturn(sock->iconn ? 1 : 0);
sock788net/unix/sock.cselect_wait(sock->wait, wait);
sock794net/unix/sock.cupd = UN_DATA(sock);
sock797net/unix/sock.celse if (sock->state != SS_CONNECTED) 
sock801net/unix/sock.cselect_wait(sock->wait,wait);
sock807net/unix/sock.cif (sock->state != SS_CONNECTED) 
sock811net/unix/sock.cpeerupd = UN_DATA(sock->conn);
sock814net/unix/sock.cselect_wait(sock->wait,wait);
sock830net/unix/sock.cstatic int unix_proto_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock835net/unix/sock.cupd = UN_DATA(sock);
sock836net/unix/sock.cpeerupd = (sock->state == SS_CONNECTED) ? UN_DATA(sock->conn) : NULL;
sock841net/unix/sock.cif (sock->flags & SO_ACCEPTCON) 
sock852net/unix/sock.cif (sock->flags & SO_ACCEPTCON)