taglinefilesource code
sock114drivers/net/de600.cstatic unsigned long de600_rspace(struct sock *sk);
sock807drivers/net/de600.cde600_rspace(struct sock *sk)
sock30fs/ncpfs/sock.cstatic int _recvfrom(struct socket *sock, unsigned char *ubuf,
sock48fs/ncpfs/sock.creturn sock->ops->recvmsg(sock, &msg, size, noblock, flags, addr_len);
sock51fs/ncpfs/sock.cstatic int _sendto(struct socket *sock, const void *buff,
sock68fs/ncpfs/sock.creturn sock->ops->sendmsg(sock, &msg, len, nonblock, flags);
sock73fs/ncpfs/sock.cncp_wdog_data_ready(struct sock *sk, int len)
sock75fs/ncpfs/sock.cstruct socket *sock = sk->socket;
sock88fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)packet_buf, 2, 1, 0,
sock97fs/ncpfs/sock.c_recvfrom(sock, (void *)packet_buf, 2, 1, 0,
sock118fs/ncpfs/sock.cresult = _sendto(sock, (void *)packet_buf, 2, 1, 0,
sock132fs/ncpfs/sock.cstruct socket *sock;
sock133fs/ncpfs/sock.cstruct sock   *sk;
sock145fs/ncpfs/sock.csock = &(inode->u.socket_i);
sock147fs/ncpfs/sock.cif (sock->type != SOCK_DGRAM)
sock154fs/ncpfs/sock.csk   = (struct sock *)(sock->data);
sock184fs/ncpfs/sock.cstruct socket *sock;
sock185fs/ncpfs/sock.cstruct sock   *sk;
sock197fs/ncpfs/sock.csock = &(inode->u.socket_i);
sock199fs/ncpfs/sock.cif (sock->type != SOCK_DGRAM)
sock205fs/ncpfs/sock.csk   = (struct sock *)(sock->data);
sock248fs/ncpfs/sock.cstruct socket *sock;
sock274fs/ncpfs/sock.csock = &inode->u.socket_i;
sock275fs/ncpfs/sock.cif (!sock)
sock317fs/ncpfs/sock.cresult = _sendto(sock, (void *) start, size, 0, 0,
sock384fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)&reply,
sock411fs/ncpfs/sock.c_recvfrom(sock, (void *)&reply, sizeof(reply), 1, 0,
sock439fs/ncpfs/sock.c_recvfrom(sock, (void *)&reply, sizeof(reply), 1, 0, NULL,
sock450fs/ncpfs/sock.cresult = _recvfrom(sock, (void *)start, server->packet_size,
sock145fs/nfs/inode.cstruct socket *sock;
sock150fs/nfs/inode.csock = &((filp->f_inode)->u.socket_i);
sock153fs/nfs/inode.csock->ops->getname(sock, &(server->toaddr), &dummylen, 1) ;
sock786fs/nfs/nfsroot.cstruct socket *sock;
sock804fs/nfs/nfsroot.csock = &((filp->f_inode)->u.socket_i);
sock807fs/nfs/nfsroot.csock->ops->getname(sock, &(s.toaddr), &dummylen, 1);
sock87fs/nfs/rpcsock.cstruct socket  *sock = rsock->sock;
sock94fs/nfs/rpcsock.cresult = sock->ops->sendmsg(sock, msg, len, 0, 0);
sock135fs/nfs/rpcsock.cstruct socket  *sock = rsock->sock;
sock144fs/nfs/rpcsock.cresult = sock->ops->recvmsg(sock, msg, len, 1, flags, &alen);
sock369fs/nfs/rpcsock.crsock->sock = &file->f_inode->u.socket_i;
sock165fs/read_write.cstruct socket *sock;
sock167fs/read_write.csock = &inode->u.socket_i;
sock168fs/read_write.cif (!sock->ops)
sock178fs/read_write.cif (!sock->ops->recvmsg)
sock180fs/read_write.creturn sock->ops->recvmsg(sock, &msg, size,
sock183fs/read_write.cif (!sock->ops->sendmsg)
sock185fs/read_write.creturn sock->ops->sendmsg(sock, &msg, size,
sock27fs/smbfs/sock.cstatic int _recvfrom(struct socket *sock, unsigned char *ubuf, int size, int noblock, unsigned flags,
sock44fs/smbfs/sock.creturn sock->ops->recvmsg(sock, &msg, size, noblock, flags, addr_len);
sock47fs/smbfs/sock.cstatic int _send(struct socket *sock, const void *buff, int len, int nonblock, unsigned flags) {
sock60fs/smbfs/sock.creturn sock->ops->sendmsg(sock, &msg, len, nonblock, flags);
sock64fs/smbfs/sock.csmb_data_callback(struct sock *sk,int len)
sock66fs/smbfs/sock.cstruct socket *sock = sk->socket;
sock77fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf, 1, 1,
sock83fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf,
sock92fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf,
sock111fs/smbfs/sock.cstruct socket *sock;
sock112fs/smbfs/sock.cstruct sock   *sk;
sock124fs/smbfs/sock.csock = &(inode->u.socket_i);
sock126fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock132fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock159fs/smbfs/sock.cstruct socket *sock;
sock160fs/smbfs/sock.cstruct sock   *sk;
sock172fs/smbfs/sock.csock = &(inode->u.socket_i);
sock174fs/smbfs/sock.cif (sock->type != SOCK_STREAM) {
sock179fs/smbfs/sock.csk   = (struct sock *)(sock->data);
sock213fs/smbfs/sock.csmb_receive_raw(struct socket *sock, unsigned char *target,
sock227fs/smbfs/sock.cresult = _recvfrom(sock, (void *)peek_buf, 4, 0,
sock273fs/smbfs/sock.cresult = _recvfrom(sock,
sock294fs/smbfs/sock.csmb_receive(struct smb_server *server, struct socket *sock)
sock298fs/smbfs/sock.cresult = smb_receive_raw(sock, server->packet,
sock324fs/smbfs/sock.csmb_receive_trans2(struct smb_server *server, struct socket *sock,
sock337fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock412fs/smbfs/sock.cif ((result = smb_receive(server, sock)) < 0) {
sock451fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock454fs/smbfs/sock.cif (sock == NULL)
sock457fs/smbfs/sock.cresult = sock->ops->release(sock, NULL);
sock463fs/smbfs/sock.csock->state = SS_UNCONNECTED;
sock465fs/smbfs/sock.cresult = sock->ops->create(sock, 0);
sock473fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock474fs/smbfs/sock.cif (sock == NULL)
sock476fs/smbfs/sock.cif (sock->state != SS_UNCONNECTED) {
sock478fs/smbfs/sock.csock->state);
sock480fs/smbfs/sock.creturn sock->ops->connect(sock, (struct sockaddr *)&(server->m.addr),
sock498fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock501fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock524fs/smbfs/sock.cresult = _send(sock, (void *)buffer, len, 0, 0);
sock529fs/smbfs/sock.cresult = smb_receive(server, sock);
sock566fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock569fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock592fs/smbfs/sock.cresult = _send(sock, (void *)buffer, len, 0, 0);
sock597fs/smbfs/sock.cresult = smb_receive_trans2(server, sock,
sock632fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock635fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock661fs/smbfs/sock.c(unsigned int)buffer, (unsigned int)sock);
sock663fs/smbfs/sock.cresult = _send(sock, (void *)buffer, len, 0, 0);
sock673fs/smbfs/sock.cresult = smb_receive_raw(sock, target, max_len, 0);
sock707fs/smbfs/sock.cstruct socket *sock = server_sock(server);
sock710fs/smbfs/sock.cif ((sock == NULL) || (buffer == NULL)) {
sock731fs/smbfs/sock.cresult = _send(sock, (void *)nb_header, 4, 0, 0);
sock735fs/smbfs/sock.cresult = _send(sock, (void *)source, length, 0, 0);
sock744fs/smbfs/sock.cresult = smb_receive(server, sock);
sock128include/linux/atalk.htypedef struct sock  atalk_socket;
sock112include/linux/igmp.hextern int ip_mc_join_group(struct sock *sk, struct device *dev, unsigned long addr);
sock113include/linux/igmp.hextern int ip_mc_leave_group(struct sock *sk, struct device *dev,unsigned long addr);
sock114include/linux/igmp.hextern void ip_mc_drop_socket(struct sock *sk);
sock119include/linux/mroute.hextern struct sock *mroute_socket;
sock120include/linux/mroute.hextern int ip_mroute_setsockopt(struct sock *, int, char *, int);
sock121include/linux/mroute.hextern int ip_mroute_getsockopt(struct sock *, int, char *, int *);
sock122include/linux/mroute.hextern int ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock123include/linux/mroute.hextern void mroute_close(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  (*select)  (struct socket *sock, int sel_type,
sock107include/linux/net.hint  (*ioctl)  (struct socket *sock, unsigned int cmd,
sock109include/linux/net.hint  (*listen)  (struct socket *sock, int len);
sock110include/linux/net.hint  (*shutdown)  (struct socket *sock, int flags);
sock111include/linux/net.hint  (*setsockopt)  (struct socket *sock, int level, int optname,
sock113include/linux/net.hint  (*getsockopt)  (struct socket *sock, int level, int optname,
sock115include/linux/net.hint  (*fcntl)  (struct socket *sock, unsigned int cmd,
sock117include/linux/net.hint   (*sendmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags);
sock118include/linux/net.hint   (*recvmsg)  (struct socket *sock, struct msghdr *m, int total_len, int nonblock, int flags, int *addr_len);
sock126include/linux/net.hextern int  sock_wake_async(struct socket *sock, int how);
sock130include/linux/net.hextern void  sock_release(struct socket *sock);
sock39include/linux/rpcsock.hstruct socket    *sock;
sock52include/linux/skbuff.hstruct sock  *sk;      /* Socket we are owned by       */
sock400include/linux/skbuff.hextern struct sk_buff *    skb_recv_datagram(struct sock *sk,unsigned flags,int noblock, int *err);
sock401include/linux/skbuff.hextern int      datagram_select(struct sock *sk, int sel_type, select_table *wait);
sock3include/net/af_unix.htypedef struct sock unix_socket;
sock161include/net/ax25.hstruct sock    *sk;    /* Backlink to socket */
sock32include/net/icmp.hextern int  icmp_ioctl(struct sock *sk, int cmd,
sock45include/net/ip.hextern void    ip_mc_dropsocket(struct sock *);
sock87include/net/ip.hextern int    ip_ioctl(struct sock *sk, int cmd, unsigned long arg);
sock104include/net/ip.hextern void    ip_queue_xmit(struct sock *sk,
sock108include/net/ip.hextern int    ip_build_xmit(struct sock *sk,
sock130include/net/ip.hvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag);
sock151include/net/ip.hextern int     ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen);
sock152include/net/ip.hextern int     ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen);
sock22include/net/ipx.hunsigned short sock;
sock46include/net/ipx.htypedef struct sock ipx_socket;
sock63include/net/netrom.hstruct sock    *sk;    /* Backlink to socket */
sock95include/net/netrom.hextern void nr_destroy_socket(struct sock *);
sock104include/net/netrom.hextern int  nr_process_rx_frame(struct sock *, struct sk_buff *);
sock107include/net/netrom.hextern void nr_output(struct sock *, struct sk_buff *);
sock108include/net/netrom.hextern void nr_send_nak_frame(struct sock *);
sock109include/net/netrom.hextern void nr_kick(struct sock *);
sock110include/net/netrom.hextern void nr_transmit_buffer(struct sock *, struct sk_buff *);
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 *, 
sock73include/net/sock.hstruct sock *    other;
sock134include/net/sock.hstruct sock    *next;
sock135include/net/sock.hstruct sock    *prev; /* Doubly linked chain.. */
sock136include/net/sock.hstruct sock    *pair;
sock268include/net/sock.hvoid      (*state_change)(struct sock *sk);
sock269include/net/sock.hvoid      (*data_ready)(struct sock *sk,int bytes);
sock270include/net/sock.hvoid      (*write_space)(struct sock *sk);
sock271include/net/sock.hvoid      (*error_report)(struct sock *sk);
sock281include/net/sock.hvoid      (*close)(struct sock *sk, int timeout);
sock288include/net/sock.hint      (*connect)(struct sock *sk,
sock290include/net/sock.hstruct sock *    (*accept) (struct sock *sk, int flags);
sock291include/net/sock.hvoid      (*queue_xmit)(struct sock *sk,
sock294include/net/sock.hvoid      (*retransmit)(struct sock *sk, int all);
sock295include/net/sock.hvoid      (*write_wakeup)(struct sock *sk);
sock296include/net/sock.hvoid      (*read_wakeup)(struct sock *sk);
sock301include/net/sock.hint      (*select)(struct sock *sk, int which,
sock303include/net/sock.hint      (*ioctl)(struct sock *sk, int cmd,
sock305include/net/sock.hint      (*init)(struct sock *sk);
sock306include/net/sock.hvoid      (*shutdown)(struct sock *sk, int how);
sock307include/net/sock.hint      (*setsockopt)(struct sock *sk, int level, int optname,
sock309include/net/sock.hint      (*getsockopt)(struct sock *sk, int level, int optname,
sock311include/net/sock.hint      (*sendmsg)(struct sock *sk, struct msghdr *msg, int len,
sock313include/net/sock.hint      (*recvmsg)(struct sock *sk, struct msghdr *msg, int len,
sock315include/net/sock.hint      (*bind)(struct sock *sk, struct sockaddr *uaddr, int addr_len);
sock320include/net/sock.hstruct sock *    sock_array[SOCK_ARRAY_SIZE];
sock347include/net/sock.hextern void      destroy_sock(struct sock *sk);
sock350include/net/sock.hextern void      put_sock(unsigned short, struct sock *); 
sock351include/net/sock.hextern void      release_sock(struct sock *sk);
sock352include/net/sock.hextern struct sock    *get_sock(struct proto *, unsigned short,
sock355include/net/sock.hextern struct sock    *get_sock_mcast(struct sock *, unsigned short,
sock358include/net/sock.hextern struct sock    *get_sock_raw(struct sock *, unsigned short,
sock361include/net/sock.hextern struct sk_buff    *sock_wmalloc(struct sock *sk,
sock364include/net/sock.hextern struct sk_buff    *sock_rmalloc(struct sock *sk,
sock367include/net/sock.hextern void      sock_wfree(struct sock *sk,
sock369include/net/sock.hextern void      sock_rfree(struct sock *sk,
sock371include/net/sock.hextern unsigned long    sock_rspace(struct sock *sk);
sock372include/net/sock.hextern unsigned long    sock_wspace(struct sock *sk);
sock374include/net/sock.hextern int      sock_setsockopt(struct sock *sk, int level,
sock378include/net/sock.hextern int      sock_getsockopt(struct sock *sk, int level,
sock381include/net/sock.hextern struct sk_buff     *sock_alloc_send_skb(struct sock *skb,
sock396include/net/sock.hextern __inline__ int sock_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
sock416include/net/sock.hextern __inline__ int sock_error(struct sock *sk)
sock426include/net/sock.hextern struct sock *timer_base;
sock428include/net/sock.hextern void delete_timer (struct sock *);
sock429include/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);
sock137include/net/tcp.hunsigned long daddr, int len, struct sock *sk);
sock138include/net/tcp.hextern void tcp_send_probe0(struct sock *sk);
sock139include/net/tcp.hextern void tcp_enqueue_partial(struct sk_buff *, struct sock *);
sock140include/net/tcp.hextern struct sk_buff * tcp_dequeue_partial(struct sock *);
sock37include/net/udp.h__u32 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)
sock952net/appletalk/ddp.cstatic int atalk_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock967net/appletalk/ddp.cstatic int atalk_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock972net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1005net/appletalk/ddp.cstatic int atalk_getsockopt(struct socket *sock, int level, int optname,
sock1012net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1045net/appletalk/ddp.cstatic int atalk_listen(struct socket *sock, int backlog)
sock1054net/appletalk/ddp.cstatic void def_callback1(struct sock *sk)
sock1060net/appletalk/ddp.cstatic void def_callback2(struct sock *sk, int len)
sock1074net/appletalk/ddp.cstatic int atalk_create(struct socket *sock, int protocol)
sock1080net/appletalk/ddp.cswitch(sock->type)
sock1114net/appletalk/ddp.csk->socket=sock;
sock1115net/appletalk/ddp.csk->type=sock->type;
sock1128net/appletalk/ddp.cif(sock!=NULL)
sock1130net/appletalk/ddp.csock->data=(void *)sk;
sock1131net/appletalk/ddp.csk->sleep=sock->wait;
sock1156net/appletalk/ddp.cstatic int atalk_release(struct socket *sock, struct socket *peer)
sock1158net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1164net/appletalk/ddp.csock->data=NULL;
sock1207net/appletalk/ddp.cstatic int atalk_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1212net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1261net/appletalk/ddp.cstatic int atalk_connect(struct socket *sock, struct sockaddr *uaddr,
sock1264net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1268net/appletalk/ddp.csock->state = SS_UNCONNECTED;
sock1292net/appletalk/ddp.csock->state = SS_CONNECTED;
sock1310net/appletalk/ddp.cstatic int atalk_accept(struct socket *sock, struct socket *newsock, int flags)
sock1322net/appletalk/ddp.cstatic int atalk_getname(struct socket *sock, struct sockaddr *uaddr,
sock1328net/appletalk/ddp.csk=(atalk_socket *)sock->data;
sock1364net/appletalk/ddp.catalk_socket *sock;
sock1491net/appletalk/ddp.csock=atalk_search_socket( &tosat, atif );
sock1493net/appletalk/ddp.cif(sock==NULL)  /* But not one of our sockets */
sock1504net/appletalk/ddp.cskb->sk = sock;
sock1506net/appletalk/ddp.cif(sock_queue_rcv_skb(sock,skb)<0)
sock1514net/appletalk/ddp.cstatic int atalk_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags)
sock1516net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1701net/appletalk/ddp.cstatic int atalk_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock1703net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1752net/appletalk/ddp.cstatic int atalk_select(struct socket *sock , int sel_type, select_table *wait)
sock1754net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock1763net/appletalk/ddp.cstatic int atalk_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock1767net/appletalk/ddp.catalk_socket *sk=(atalk_socket *)sock->data;
sock270net/ax25/af_ax25.cstatic struct sock *ax25_find_listener(ax25_address *addr, struct device *dev, int type)
sock295net/ax25/af_ax25.cstatic struct sock *ax25_find_socket(ax25_address *my_addr, ax25_address *dest_addr, int type)
sock344net/ax25/af_ax25.cstatic struct sock *ax25_addr_match(ax25_address *addr)
sock364net/ax25/af_ax25.cstatic void ax25_send_to_raw(struct sock *sk, struct sk_buff *skb, int proto)
sock722net/ax25/af_ax25.cstatic int ax25_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock727net/ax25/af_ax25.cstatic int ax25_setsockopt(struct socket *sock, int level, int optname,
sock730net/ax25/af_ax25.cstruct sock *sk;
sock733net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock802net/ax25/af_ax25.cstatic int ax25_getsockopt(struct socket *sock, int level, int optname,
sock805net/ax25/af_ax25.cstruct sock *sk;
sock809net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock867net/ax25/af_ax25.cstatic int ax25_listen(struct socket *sock, int backlog)
sock869net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock880net/ax25/af_ax25.cstatic void def_callback1(struct sock *sk)
sock886net/ax25/af_ax25.cstatic void def_callback2(struct sock *sk, int len)
sock892net/ax25/af_ax25.cstatic int ax25_create(struct socket *sock, int protocol)
sock894net/ax25/af_ax25.cstruct sock *sk;
sock897net/ax25/af_ax25.cswitch (sock->type) {
sock927net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock939net/ax25/af_ax25.csk->socket        = sock;
sock940net/ax25/af_ax25.csk->type          = sock->type;
sock969net/ax25/af_ax25.cif (sock != NULL) {
sock970net/ax25/af_ax25.csock->data = (void *)sk;
sock971net/ax25/af_ax25.csk->sleep  = sock->wait;
sock980net/ax25/af_ax25.cstatic struct sock *ax25_make_new(struct sock *osk, struct device *dev)
sock982net/ax25/af_ax25.cstruct sock *sk;
sock985net/ax25/af_ax25.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock1075net/ax25/af_ax25.cstruct sock *sk = (struct sock *)oldsock->data;
sock1080net/ax25/af_ax25.cstatic int ax25_release(struct socket *sock, struct socket *peer)
sock1082net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1141net/ax25/af_ax25.csock->data = NULL;  
sock1153net/ax25/af_ax25.cstatic int ax25_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1155net/ax25/af_ax25.cstruct sock *sk;
sock1160net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1215net/ax25/af_ax25.cstatic int ax25_connect(struct socket *sock, struct sockaddr *uaddr,
sock1218net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1222net/ax25/af_ax25.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock1223net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1227net/ax25/af_ax25.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock1228net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1236net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1296net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1302net/ax25/af_ax25.csock->state        = SS_CONNECTING;
sock1332net/ax25/af_ax25.csock->state = SS_UNCONNECTED;
sock1336net/ax25/af_ax25.csock->state = SS_CONNECTED;
sock1348net/ax25/af_ax25.cstatic int ax25_accept(struct socket *sock, struct socket *newsock, int flags)
sock1350net/ax25/af_ax25.cstruct sock *sk;
sock1351net/ax25/af_ax25.cstruct sock *newsk;
sock1355net/ax25/af_ax25.ckfree_s(newsock->data, sizeof(struct sock));
sock1359net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1399net/ax25/af_ax25.cstatic int ax25_getname(struct socket *sock, struct sockaddr *uaddr,
sock1404net/ax25/af_ax25.cstruct sock *sk;
sock1407net/ax25/af_ax25.csk = (struct sock *)sock->data;
sock1436net/ax25/af_ax25.cstruct sock *make;
sock1437net/ax25/af_ax25.cstruct sock *sk;
sock1442net/ax25/af_ax25.cstruct sock *raw;
sock1779net/ax25/af_ax25.cstatic int ax25_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags)
sock1781net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock1919net/ax25/af_ax25.cstatic int ax25_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock1921net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock2002net/ax25/af_ax25.cstatic int ax25_select(struct socket *sock , int sel_type, select_table *wait)
sock2004net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock2009net/ax25/af_ax25.cstatic int ax25_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock2011net/ax25/af_ax25.cstruct sock *sk = (struct sock *)sock->data;
sock52net/core/datagram.cstruct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, int noblock, int *err)
sock186net/core/datagram.cint datagram_select(struct sock *sk, int sel_type, select_table *wait)
sock417net/core/dev.c((struct sock *)ptype->data != skb->sk))
sock121net/core/sock.cint sock_setsockopt(struct sock *sk, int level, int optname,
sock235net/core/sock.cint sock_getsockopt(struct sock *sk, int level, int optname,
sock328net/core/sock.cstruct sk_buff *sock_wmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock351net/core/sock.cstruct sk_buff *sock_rmalloc(struct sock *sk, unsigned long size, int force, int priority)
sock374net/core/sock.cunsigned long sock_rspace(struct sock *sk)
sock391net/core/sock.cunsigned long sock_wspace(struct sock *sk)
sock405net/core/sock.cvoid sock_wfree(struct sock *sk, struct sk_buff *skb)
sock426net/core/sock.cvoid sock_rfree(struct sock *sk, struct sk_buff *skb)
sock447net/core/sock.cstruct sk_buff *sock_alloc_send_skb(struct sock *sk, unsigned long size, unsigned long fallback, int noblock, int *errcode)
sock545net/core/sock.cvoid release_sock(struct sock *sk)
sock114net/ipv4/af_inet.cstruct sock *sk;
sock142net/ipv4/af_inet.cstruct sock *sk;
sock189net/ipv4/af_inet.cvoid put_sock(unsigned short num, struct sock *sk)
sock191net/ipv4/af_inet.cstruct sock **skp, *tmp;
sock250net/ipv4/af_inet.cstatic void remove_sock(struct sock *sk1)
sock252net/ipv4/af_inet.cstruct sock **p;
sock287net/ipv4/af_inet.cvoid destroy_sock(struct sock *sk)
sock435net/ipv4/af_inet.cstatic int inet_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock437net/ipv4/af_inet.cstruct sock *sk;
sock439net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock464net/ipv4/af_inet.cstatic int inet_setsockopt(struct socket *sock, int level, int optname,
sock467net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;  
sock480net/ipv4/af_inet.cstatic int inet_getsockopt(struct socket *sock, int level, int optname,
sock483net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;    
sock496net/ipv4/af_inet.cstatic int inet_autobind(struct sock *sk)
sock516net/ipv4/af_inet.cstatic int inet_listen(struct socket *sock, int backlog)
sock518net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock548net/ipv4/af_inet.cstatic void def_callback1(struct sock *sk)
sock554net/ipv4/af_inet.cstatic void def_callback2(struct sock *sk,int len)
sock563net/ipv4/af_inet.cstatic void def_callback3(struct sock *sk)
sock579net/ipv4/af_inet.cstatic int inet_create(struct socket *sock, int protocol)
sock581net/ipv4/af_inet.cstruct sock *sk;
sock585net/ipv4/af_inet.csk = (struct sock *) kmalloc(sizeof(*sk), GFP_KERNEL);
sock591net/ipv4/af_inet.cswitch(sock->type) 
sock652net/ipv4/af_inet.csk->socket = sock;
sock658net/ipv4/af_inet.csk->type = sock->type;
sock676net/ipv4/af_inet.csk->sleep = sock->wait;
sock682net/ipv4/af_inet.csock->data =(void *) sk;
sock732net/ipv4/af_inet.creturn(inet_create(newsock,((struct sock *)(oldsock->data))->protocol));
sock739net/ipv4/af_inet.cstatic inline int closing(struct sock * sk)
sock757net/ipv4/af_inet.cstatic int inet_release(struct socket *sock, struct socket *peer)
sock759net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock812net/ipv4/af_inet.csock->data = NULL;
sock825net/ipv4/af_inet.cstatic int inet_bind(struct socket *sock, struct sockaddr *uaddr,
sock829net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data, *sk2;
sock846net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock887net/ipv4/af_inet.cif(sock->type != SOCK_RAW)
sock946net/ipv4/af_inet.cif(sock->type==SOCK_DGRAM)
sock948net/ipv4/af_inet.cif(sock->type==SOCK_STREAM)
sock965net/ipv4/af_inet.cstatic int inet_connect(struct socket *sock, struct sockaddr * uaddr,
sock968net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock970net/ipv4/af_inet.csock->conn = NULL;
sock972net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && tcp_connected(sk->state))
sock974net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock979net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->protocol == IPPROTO_TCP && (flags & O_NONBLOCK))
sock985net/ipv4/af_inet.cif (sock->state != SS_CONNECTING) 
sock995net/ipv4/af_inet.csock->state = SS_CONNECTING;
sock998net/ipv4/af_inet.cif (sk->state > TCP_FIN_WAIT2 && sock->state==SS_CONNECTING)
sock1000net/ipv4/af_inet.csock->state=SS_UNCONNECTED;
sock1020net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1026net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1030net/ipv4/af_inet.csock->state = SS_UNCONNECTED;
sock1047net/ipv4/af_inet.cstatic int inet_accept(struct socket *sock, struct socket *newsock, int flags)
sock1049net/ipv4/af_inet.cstruct sock *sk1, *sk2;
sock1052net/ipv4/af_inet.csk1 = (struct sock *) sock->data;
sock1062net/ipv4/af_inet.cstruct sock *sk=(struct sock *)newsock->data;
sock1128net/ipv4/af_inet.cstatic int inet_getname(struct socket *sock, struct sockaddr *uaddr,
sock1132net/ipv4/af_inet.cstruct sock *sk;
sock1135net/ipv4/af_inet.csk = (struct sock *) sock->data;
sock1160net/ipv4/af_inet.cstatic int inet_recvmsg(struct socket *sock, struct msghdr *ubuf, int size, int noblock, 
sock1163net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1176net/ipv4/af_inet.cstatic int inet_sendmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, 
sock1179net/ipv4/af_inet.cstruct sock *sk = (struct sock *) sock->data;
sock1197net/ipv4/af_inet.cstatic int inet_shutdown(struct socket *sock, int how)
sock1199net/ipv4/af_inet.cstruct sock *sk=(struct sock*)sock->data;
sock1210net/ipv4/af_inet.cif (sock->state == SS_CONNECTING && sk->state == TCP_ESTABLISHED)
sock1211net/ipv4/af_inet.csock->state = SS_CONNECTED;
sock1221net/ipv4/af_inet.cstatic int inet_select(struct socket *sock, int sel_type, select_table *wait )
sock1223net/ipv4/af_inet.cstruct sock *sk=(struct sock *) sock->data;
sock1241net/ipv4/af_inet.cstatic int inet_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1243net/ipv4/af_inet.cstruct sock *sk=(struct sock *)sock->data;
sock1340net/ipv4/af_inet.cstruct sock *get_sock(struct proto *prot, unsigned short num,
sock1344net/ipv4/af_inet.cstruct sock *s;
sock1345net/ipv4/af_inet.cstruct sock *result = NULL;
sock1404net/ipv4/af_inet.cstruct sock *get_sock_raw(struct sock *sk, 
sock1409net/ipv4/af_inet.cstruct sock *s;
sock1433net/ipv4/af_inet.cstruct sock *get_sock_mcast(struct sock *sk, 
sock1438net/ipv4/af_inet.cstruct sock *s;
sock233net/ipv4/icmp.cstruct sock *sk=icmp_socket.data;
sock742net/ipv4/icmp.cstruct sock *sk;
sock570net/ipv4/igmp.cint ip_mc_join_group(struct sock *sk , struct device *dev, unsigned long addr)
sock604net/ipv4/igmp.cint ip_mc_leave_group(struct sock *sk, struct device *dev, unsigned long addr)
sock630net/ipv4/igmp.cvoid ip_mc_drop_socket(struct sock *sk)
sock618net/ipv4/ip_fragment.cvoid ip_fragment(struct sock *sk, struct sk_buff *skb, struct device *dev, int is_frag)
sock159net/ipv4/ip_input.cextern void sort_send(struct sock *sk);
sock179net/ipv4/ip_input.cint ip_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock200net/ipv4/ip_input.cstruct sock *raw_sk=NULL;
sock477net/ipv4/ip_input.cstruct sock *sknext=NULL;
sock334net/ipv4/ip_output.cvoid ip_queue_xmit(struct sock *sk, struct device *dev,
sock561net/ipv4/ip_output.cint ip_build_xmit(struct sock *sk,
sock111net/ipv4/ip_sockglue.cint ip_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock420net/ipv4/ip_sockglue.cint ip_getsockopt(struct sock *sk, int level, int optname, char *optval, int *optlen)
sock427net/ipv4/ipmr.cint ip_mroute_setsockopt(struct sock *sk,int optname,char *optval,int optlen)
sock568net/ipv4/ipmr.cint ip_mroute_getsockopt(struct sock *sk,int optname,char *optval,int *optlen)
sock596net/ipv4/ipmr.cint ipmr_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock639net/ipv4/ipmr.cvoid mroute_close(struct sock *sk)
sock76net/ipv4/packet.cstruct sock *sk;
sock83net/ipv4/packet.csk = (struct sock *) pt->data;  
sock123net/ipv4/packet.cstatic int packet_sendmsg(struct sock *sk, struct msghdr *msg, int len,
sock208net/ipv4/packet.cstatic void packet_close(struct sock *sk, int timeout)
sock246net/ipv4/packet.cint packet_attach(struct sock *sk)
sock270net/ipv4/packet.cstatic int packet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len)
sock351net/ipv4/packet.cstatic int packet_init(struct sock *sk)
sock379net/ipv4/packet.cint packet_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sock60net/ipv4/proc.cstruct sock **s_array;
sock61net/ipv4/proc.cstruct sock *sp;
sock64net/ipv4/raw.cstruct sock *mroute_socket=NULL;
sock82net/ipv4/raw.cstruct sock *sk;
sock86net/ipv4/raw.csk = (struct sock *) protocol->data;
sock119net/ipv4/raw.cint raw_rcv(struct sock *sk, struct sk_buff *skb, struct device *dev, __u32 saddr, __u32 daddr)
sock191net/ipv4/raw.cstatic int raw_sendto(struct sock *sk, const unsigned char *from, 
sock258net/ipv4/raw.cstatic int raw_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, 
sock289net/ipv4/raw.cstatic void raw_close(struct sock *sk, int timeout)
sock302net/ipv4/raw.cstatic int raw_init(struct sock *sk)
sock313net/ipv4/raw.cint raw_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sock458net/ipv4/tcp.cvolatile struct sock *th_cache_sk;
sock473net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout);
sock474net/ipv4/tcp.cstatic void tcp_read_wakeup(struct sock *sk);
sock499net/ipv4/tcp.cstatic __inline__ void tcp_set_state(struct sock *sk, int state)
sock530net/ipv4/tcp.cstatic __inline__ unsigned short tcp_select_window(struct sock *sk)
sock581net/ipv4/tcp.cstatic __inline__ unsigned short tcp_raise_window(struct sock *sk)
sock619net/ipv4/tcp.cstatic struct sk_buff *tcp_find_established(struct sock *s)
sock639net/ipv4/tcp.cstatic struct sk_buff *tcp_dequeue_established(struct sock *s)
sock658net/ipv4/tcp.cstatic void tcp_close_pending (struct sock *sk) 
sock675net/ipv4/tcp.cstatic void tcp_time_wait(struct sock *sk)
sock689net/ipv4/tcp.cvoid tcp_do_retransmit(struct sock *sk, int all)
sock868net/ipv4/tcp.cstatic void reset_xmit_timer(struct sock *sk, int why, unsigned long when)
sock889net/ipv4/tcp.cvoid tcp_retransmit_time(struct sock *sk, int all)
sock925net/ipv4/tcp.cstatic void tcp_retransmit(struct sock *sk, int all)
sock947net/ipv4/tcp.cstatic int tcp_write_timeout(struct sock *sk)
sock1024net/ipv4/tcp.cstruct sock *sk = (struct sock*)data;
sock1142net/ipv4/tcp.cstruct sock *sk;
sock1225net/ipv4/tcp.cstatic int tcp_readable(struct sock *sk)
sock1299net/ipv4/tcp.cstatic int tcp_listen_select(struct sock *sk, int sel_type, select_table *wait)
sock1322net/ipv4/tcp.cstatic int tcp_select(struct sock *sk, int sel_type, select_table *wait)
sock1371net/ipv4/tcp.cint tcp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock1438net/ipv4/tcp.cunsigned long daddr, int len, struct sock *sk)
sock1451net/ipv4/tcp.cstatic void tcp_send_skb(struct sock *sk, struct sk_buff *skb)
sock1575net/ipv4/tcp.cstruct sk_buff * tcp_dequeue_partial(struct sock * sk)
sock1595net/ipv4/tcp.cstatic void tcp_send_partial(struct sock *sk)
sock1609net/ipv4/tcp.cvoid tcp_enqueue_partial(struct sk_buff * skb, struct sock * sk)
sock1640net/ipv4/tcp.cstruct sock *sk,
sock1752net/ipv4/tcp.cextern __inline int tcp_build_header(struct tcphdr *th, struct sock *sk, int push)
sock1776net/ipv4/tcp.cstatic int tcp_sendmsg(struct sock *sk, struct msghdr *msg,
sock2145net/ipv4/tcp.cstatic void tcp_read_wakeup(struct sock *sk)
sock2230net/ipv4/tcp.cstatic void cleanup_rbuf(struct sock *sk)
sock2318net/ipv4/tcp.cstatic int tcp_recv_urg(struct sock * sk, int nonblock,
sock2381net/ipv4/tcp.cstatic int tcp_recvmsg(struct sock *sk, struct msghdr *msg,
sock2626net/ipv4/tcp.cstatic int tcp_close_state(struct sock *sk, int dead)
sock2680net/ipv4/tcp.cstatic void tcp_send_fin(struct sock *sk)
sock2782net/ipv4/tcp.cvoid tcp_shutdown(struct sock *sk, int how)
sock2928net/ipv4/tcp.cstatic void tcp_options(struct sock *sk, struct tcphdr *th)
sock3014net/ipv4/tcp.cstatic void tcp_conn_request(struct sock *sk, struct sk_buff *skb,
sock3021net/ipv4/tcp.cstruct sock *newsk;
sock3064net/ipv4/tcp.cnewsk = (struct sock *) kmalloc(sizeof(struct sock), GFP_ATOMIC);
sock3079net/ipv4/tcp.ckfree_s(newsk, sizeof(struct sock));
sock3086net/ipv4/tcp.ckfree_s(newsk, sizeof(struct sock));
sock3312net/ipv4/tcp.cstatic void tcp_close(struct sock *sk, int timeout)
sock3385net/ipv4/tcp.cstatic void tcp_write_xmit(struct sock *sk)
sock3485net/ipv4/tcp.cextern __inline__ int tcp_ack(struct sock *sk, struct tcphdr *th, unsigned long saddr, int len)
sock4096net/ipv4/tcp.cstatic int tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)
sock4183net/ipv4/tcp.cextern __inline__ int tcp_data(struct sk_buff *skb, struct sock *sk, 
sock4501net/ipv4/tcp.cstatic void tcp_check_urg(struct sock * sk, struct tcphdr * th)
sock4533net/ipv4/tcp.cextern __inline__ int tcp_urg(struct sock *sk, struct tcphdr *th,
sock4574net/ipv4/tcp.cstatic struct sock *tcp_accept(struct sock *sk, int flags)
sock4576net/ipv4/tcp.cstruct sock *newsk;
sock4633net/ipv4/tcp.cstatic int tcp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock4806net/ipv4/tcp.cextern __inline__ int tcp_sequence(struct sock *sk, struct tcphdr *th, short len,
sock4862net/ipv4/tcp.cstatic int tcp_std_reset(struct sock *sk, struct sk_buff *skb)
sock4900net/ipv4/tcp.cstruct sock *sk;
sock4918net/ipv4/tcp.csk=(struct sock *)th_cache_sk;
sock5354net/ipv4/tcp.cstatic void tcp_write_wakeup(struct sock *sk)
sock5549net/ipv4/tcp.cvoid tcp_send_probe0(struct sock *sk)
sock5567net/ipv4/tcp.cint tcp_setsockopt(struct sock *sk, int level, int optname, char *optval, int optlen)
sock5603net/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;
sock123net/ipv4/udp.cvolatile struct sock *uh_cache_sk;
sock138net/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);
sock158net/ipv4/udp.cstruct sock *sk;
sock300net/ipv4/udp.cstatic int udp_send(struct sock *sk, struct sockaddr_in *sin,
sock338net/ipv4/udp.cstatic int udp_sendto(struct sock *sk, const unsigned char *from, int len, int noblock,
sock409net/ipv4/udp.cstatic int udp_sendmsg(struct sock *sk, struct msghdr *msg, int len, int noblock, 
sock444net/ipv4/udp.cint udp_ioctl(struct sock *sk, int cmd, unsigned long arg)
sock499net/ipv4/udp.cint udp_recvmsg(struct sock *sk, struct msghdr *msg, int len,
sock547net/ipv4/udp.cint udp_connect(struct sock *sk, struct sockaddr_in *usin, int addr_len)
sock577net/ipv4/udp.cstatic void udp_close(struct sock *sk, int timeout)
sock598net/ipv4/udp.cstruct sock *sk;
sock665net/ipv4/udp.cstruct sock *sknext=NULL;
sock691net/ipv4/udp.csk=(struct sock *)uh_cache_sk;
sock720net/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)
sock348net/ipx/af_ipx.cstatic int ipxitf_def_skb_handler(struct sock *sock, struct sk_buff *skb)
sock352net/ipx/af_ipx.cif((retval = sock_queue_rcv_skb(sock, skb))<0) 
sock381net/ipx/af_ipx.cif (   (s->ipx_port == ipx->ipx_dest.sock)
sock439net/ipx/af_ipx.csock1 = ipxitf_find_socket(intrfc, ipx->ipx_dest.sock);
sock451net/ipx/af_ipx.cswitch (ntohs(ipx->ipx_dest.sock)) 
sock463net/ipx/af_ipx.cipx->ipx_dest.sock);
sock1218net/ipx/af_ipx.cipx->ipx_source.sock = sk->ipx_port;
sock1221net/ipx/af_ipx.cipx->ipx_dest.sock=usipx->sipx_port;
sock1404net/ipx/af_ipx.chtons(s->ipx_dest_addr.sock));
sock1478net/ipx/af_ipx.cstatic int ipx_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1487net/ipx/af_ipx.cstatic int ipx_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock1492net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1523net/ipx/af_ipx.cstatic int ipx_getsockopt(struct socket *sock, int level, int optname,
sock1530net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1562net/ipx/af_ipx.cstatic int ipx_listen(struct socket *sock, int backlog)
sock1567net/ipx/af_ipx.cstatic void def_callback1(struct sock *sk)
sock1573net/ipx/af_ipx.cstatic void def_callback2(struct sock *sk, int len)
sock1583net/ipx/af_ipx.cipx_create(struct socket *sock, int protocol)
sock1589net/ipx/af_ipx.cswitch(sock->type)
sock1613net/ipx/af_ipx.csk->socket=sock;
sock1614net/ipx/af_ipx.csk->type=sock->type;
sock1622net/ipx/af_ipx.cif(sock!=NULL)
sock1624net/ipx/af_ipx.csock->data=(void *)sk;
sock1625net/ipx/af_ipx.csk->sleep=sock->wait;
sock1637net/ipx/af_ipx.cstatic int ipx_release(struct socket *sock, struct socket *peer)
sock1639net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1645net/ipx/af_ipx.csock->data=NULL;
sock1673net/ipx/af_ipx.cstatic int ipx_bind(struct socket *sock, struct sockaddr *uaddr,int addr_len)
sock1679net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1771net/ipx/af_ipx.cstatic int ipx_connect(struct socket *sock, struct sockaddr *uaddr,
sock1774net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1778net/ipx/af_ipx.csock->state = SS_UNCONNECTED;
sock1796net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr,
sock1804net/ipx/af_ipx.csk->ipx_dest_addr.sock=addr->sipx_port;
sock1807net/ipx/af_ipx.csock->state = SS_CONNECTED;
sock1817net/ipx/af_ipx.cstatic int ipx_accept(struct socket *sock, struct socket *newsock, int flags)
sock1824net/ipx/af_ipx.cstatic int ipx_getname(struct socket *sock, struct sockaddr *uaddr,
sock1831net/ipx/af_ipx.csk=(ipx_socket *)sock->data;
sock1841net/ipx/af_ipx.csipx.sipx_port = addr->sock;
sock1903net/ipx/af_ipx.cp->node[3],p->node[4],p->node[5],ntohs(p->sock));
sock1962net/ipx/af_ipx.cstatic int ipx_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock,
sock1965net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock1986net/ipx/af_ipx.cret = ipx_bind (sock, (struct sockaddr *)&uaddr,
sock2003net/ipx/af_ipx.cusipx->sipx_port=sk->ipx_dest_addr.sock;
sock2015net/ipx/af_ipx.cstatic int ipx_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock,
sock2018net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock2048net/ipx/af_ipx.csipx->sipx_port=ipx->ipx_source.sock;
sock2062net/ipx/af_ipx.cstatic int ipx_select(struct socket *sock , int sel_type, select_table *wait)
sock2064net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock2069net/ipx/af_ipx.cstatic int ipx_ioctl(struct socket *sock,unsigned int cmd, unsigned long arg)
sock2073net/ipx/af_ipx.cipx_socket *sk=(ipx_socket *)sock->data;
sock67net/netrom/af_netrom.cstatic struct sock *volatile nr_list = NULL;
sock72net/netrom/af_netrom.cstatic void nr_remove_socket(struct sock *sk)
sock74net/netrom/af_netrom.cstruct sock *s;
sock104net/netrom/af_netrom.cstruct sock *s;
sock137net/netrom/af_netrom.cstatic void nr_insert_socket(struct sock *sk)
sock154net/netrom/af_netrom.cstatic struct sock *nr_find_listener(ax25_address *addr, int type)
sock157net/netrom/af_netrom.cstruct sock *s;
sock176net/netrom/af_netrom.cstatic struct sock *nr_find_socket(unsigned char index, unsigned char id, int type)
sock178net/netrom/af_netrom.cstruct sock *s;
sock199net/netrom/af_netrom.cstatic struct sock *nr_find_peer(unsigned char index, unsigned char id, int type)
sock201net/netrom/af_netrom.cstruct sock *s;
sock222net/netrom/af_netrom.cvoid nr_destory_socket(struct sock *);
sock229net/netrom/af_netrom.cnr_destroy_socket((struct sock *)data);
sock238net/netrom/af_netrom.cvoid nr_destroy_socket(struct sock *sk)  /* Not static as its used by the timer */
sock280net/netrom/af_netrom.cstatic int nr_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock285net/netrom/af_netrom.cstatic int nr_setsockopt(struct socket *sock, int level, int optname,
sock288net/netrom/af_netrom.cstruct sock *sk;
sock291net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock335net/netrom/af_netrom.cstatic int nr_getsockopt(struct socket *sock, int level, int optname,
sock338net/netrom/af_netrom.cstruct sock *sk;
sock342net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock384net/netrom/af_netrom.cstatic int nr_listen(struct socket *sock, int backlog)
sock386net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock398net/netrom/af_netrom.cstatic void def_callback1(struct sock *sk)
sock404net/netrom/af_netrom.cstatic void def_callback2(struct sock *sk, int len)
sock410net/netrom/af_netrom.cstatic int nr_create(struct socket *sock, int protocol)
sock412net/netrom/af_netrom.cstruct sock *sk;
sock415net/netrom/af_netrom.cif (sock->type != SOCK_SEQPACKET || protocol != 0)
sock418net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock432net/netrom/af_netrom.csk->socket        = sock;
sock433net/netrom/af_netrom.csk->type          = sock->type;
sock463net/netrom/af_netrom.cif (sock != NULL) {
sock464net/netrom/af_netrom.csock->data = (void *)sk;
sock465net/netrom/af_netrom.csk->sleep  = sock->wait;
sock511net/netrom/af_netrom.cstatic struct sock *nr_make_new(struct sock *osk)
sock513net/netrom/af_netrom.cstruct sock *sk;
sock519net/netrom/af_netrom.cif ((sk = (struct sock *)kmalloc(sizeof(*sk), GFP_ATOMIC)) == NULL)
sock596net/netrom/af_netrom.cstruct sock *sk = (struct sock *)oldsock->data;
sock601net/netrom/af_netrom.cstatic int nr_release(struct socket *sock, struct socket *peer)
sock603net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock657net/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;
sock716net/netrom/af_netrom.cstatic int nr_connect(struct socket *sock, struct sockaddr *uaddr,
sock719net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock724net/netrom/af_netrom.cif (sk->state == TCP_ESTABLISHED && sock->state == SS_CONNECTING) {
sock725net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock729net/netrom/af_netrom.cif (sk->state == TCP_CLOSE && sock->state == SS_CONNECTING) {
sock730net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock738net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock776net/netrom/af_netrom.csock->state   = SS_CONNECTING;
sock801net/netrom/af_netrom.csock->state = SS_UNCONNECTED;
sock805net/netrom/af_netrom.csock->state = SS_CONNECTED;
sock817net/netrom/af_netrom.cstatic int nr_accept(struct socket *sock, struct socket *newsock, int flags)
sock819net/netrom/af_netrom.cstruct sock *sk;
sock820net/netrom/af_netrom.cstruct sock *newsk;
sock824net/netrom/af_netrom.ckfree_s(newsock->data, sizeof(struct sock));
sock828net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock868net/netrom/af_netrom.cstatic int nr_getname(struct socket *sock, struct sockaddr *uaddr,
sock872net/netrom/af_netrom.cstruct sock *sk;
sock874net/netrom/af_netrom.csk = (struct sock *)sock->data;
sock896net/netrom/af_netrom.cstruct sock *sk;
sock897net/netrom/af_netrom.cstruct sock *make;  
sock1011net/netrom/af_netrom.cstatic int nr_sendmsg(struct socket *sock, struct msghdr *msg, int len, int noblock, int flags)
sock1013net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1114net/netrom/af_netrom.cstatic int nr_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock,
sock1117net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1169net/netrom/af_netrom.cstatic int nr_select(struct socket *sock , int sel_type, select_table *wait)
sock1171net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1176net/netrom/af_netrom.cstatic int nr_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock1178net/netrom/af_netrom.cstruct sock *sk = (struct sock *)sock->data;
sock1266net/netrom/af_netrom.cstruct sock *s;
sock53net/netrom/nr_in.cstatic int nr_queue_rx_frame(struct sock *sk, struct sk_buff *skb, int more)
sock97net/netrom/nr_in.cstatic int nr_state1_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock143net/netrom/nr_in.cstatic int nr_state2_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock171net/netrom/nr_in.cstatic int nr_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype)
sock310net/netrom/nr_in.cint nr_process_rx_frame(struct sock *sk, struct sk_buff *skb)
sock49net/netrom/nr_out.cvoid nr_output(struct sock *sk, struct sk_buff *skb)
sock104net/netrom/nr_out.cstatic void nr_send_iframe(struct sock *sk, struct sk_buff *skb)
sock118net/netrom/nr_out.cvoid nr_send_nak_frame(struct sock *sk)
sock141net/netrom/nr_out.cvoid nr_kick(struct sock *sk)
sock202net/netrom/nr_out.cvoid nr_transmit_buffer(struct sock *sk, struct sk_buff *skb)
sock243net/netrom/nr_out.cvoid nr_establish_data_link(struct sock *sk)
sock257net/netrom/nr_out.cvoid nr_enquiry_response(struct sock *sk)
sock275net/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)
sock151net/netrom/nr_subr.cvoid nr_write_internal(struct sock *sk, int frametype)
sock292net/netrom/nr_subr.cunsigned short nr_calculate_t1(struct sock *sk)
sock307net/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;
sock239net/socket.cstruct socket * sock;
sock250net/socket.csock = &inode->u.socket_i;
sock251net/socket.csock->state = SS_UNCONNECTED;
sock252net/socket.csock->flags = 0;
sock253net/socket.csock->ops = NULL;
sock254net/socket.csock->data = NULL;
sock255net/socket.csock->conn = NULL;
sock256net/socket.csock->iconn = NULL;
sock257net/socket.csock->next = NULL;
sock258net/socket.csock->wait = &inode->i_wait;
sock259net/socket.csock->inode = inode;    /* "backlink": we could use pointer arithmetic instead */
sock260net/socket.csock->fasync_list = NULL;
sock262net/socket.creturn sock;
sock276net/socket.cvoid sock_release(struct socket *sock)
sock281net/socket.cif ((oldstate = sock->state) != SS_UNCONNECTED)
sock282net/socket.csock->state = SS_DISCONNECTING;
sock288net/socket.cfor (peersock = sock->iconn; peersock; peersock = nextsock) 
sock299net/socket.cpeersock = (oldstate == SS_CONNECTED) ? sock->conn : NULL;
sock300net/socket.cif (sock->ops) 
sock301net/socket.csock->ops->release(sock, peersock);
sock305net/socket.ciput(SOCK_INODE(sock));
sock324net/socket.cstruct socket *sock;
sock329net/socket.csock = socki_lookup(inode); 
sock330net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock346net/socket.creturn(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), 0,&msg.msg_namelen));
sock356net/socket.cstruct socket *sock;
sock361net/socket.csock = socki_lookup(inode); 
sock363net/socket.cif (sock->flags & SO_ACCEPTCON) 
sock381net/socket.creturn(sock->ops->sendmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK),0));
sock392net/socket.cstruct socket *sock;
sock393net/socket.csock = socki_lookup(inode); 
sock394net/socket.creturn(sock->ops->ioctl(sock, cmd, arg));
sock400net/socket.cstruct socket *sock;
sock402net/socket.csock = socki_lookup(inode);
sock408net/socket.cif (sock->ops->select)
sock409net/socket.creturn(sock->ops->select(sock, sel_type, wait));
sock433net/socket.cstruct socket *sock;
sock443net/socket.csock = socki_lookup(inode);
sock445net/socket.cprev=&(sock->fasync_list);
sock464net/socket.cfna->fa_next=sock->fasync_list;
sock465net/socket.csock->fasync_list=fna;
sock479net/socket.cint sock_wake_async(struct socket *sock, int how)
sock481net/socket.cif (!sock || !sock->fasync_list)
sock486net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock489net/socket.cif (!(sock->flags & SO_WAITDATA))
sock490net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock493net/socket.cif (sock->flags & SO_NOSPACE)
sock495net/socket.ckill_fasync(sock->fasync_list, SIGIO);
sock496net/socket.csock->flags &= ~SO_NOSPACE;
sock512net/socket.cstruct socket *sock;
sock547net/socket.cif (!(sock = sock_alloc())) 
sock554net/socket.csock->type = type;
sock555net/socket.csock->ops = ops;
sock556net/socket.cif ((i = sock->ops->create(sock, protocol)) < 0) 
sock558net/socket.csock_release(sock);
sock562net/socket.cif ((fd = get_fd(SOCK_INODE(sock))) < 0) 
sock564net/socket.csock_release(sock);
sock642net/socket.cstruct socket *sock;
sock650net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock656net/socket.cif ((i = sock->ops->bind(sock, (struct sockaddr *)address, addrlen)) < 0) 
sock672net/socket.cstruct socket *sock;
sock677net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock680net/socket.cif (sock->state != SS_UNCONNECTED) 
sock683net/socket.cif (sock->ops && sock->ops->listen)
sock685net/socket.cerr=sock->ops->listen(sock, backlog);
sock687net/socket.csock->flags |= SO_ACCEPTCON;
sock704net/socket.cstruct socket *sock, *newsock;
sock711net/socket.cif (!(sock = sockfd_lookup(fd, &file))) 
sock713net/socket.cif (sock->state != SS_UNCONNECTED) 
sock717net/socket.cif (!(sock->flags & SO_ACCEPTCON)) 
sock728net/socket.cnewsock->type = sock->type;
sock729net/socket.cnewsock->ops = sock->ops;
sock730net/socket.cif ((i = sock->ops->dup(newsock, sock)) < 0) 
sock736net/socket.ci = newsock->ops->accept(sock, newsock, file->f_flags);
sock765net/socket.cstruct socket *sock;
sock773net/socket.cif (!(sock = sockfd_lookup(fd, &file)))
sock779net/socket.cswitch(sock->state) 
sock786net/socket.cif(sock->type == SOCK_DGRAM) /* Hack for now - move this all into the protocol */
sock801net/socket.ci = sock->ops->connect(sock, (struct sockaddr *)address, addrlen, file->f_flags);
sock816net/socket.cstruct socket *sock;
sock823net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock826net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 0);
sock841net/socket.cstruct socket *sock;
sock848net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock851net/socket.cerr=sock->ops->getname(sock, (struct sockaddr *)address, &len, 1);
sock866net/socket.cstruct socket *sock;
sock874net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock889net/socket.creturn(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK), flags));
sock901net/socket.cstruct socket *sock;
sock910net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock929net/socket.creturn(sock->ops->sendmsg(sock, &msg, len, (file->f_flags & O_NONBLOCK),
sock942net/socket.cstruct socket *sock;
sock949net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock967net/socket.creturn(sock->ops->recvmsg(sock, &msg, size,(file->f_flags & O_NONBLOCK), flags,&msg.msg_namelen));
sock979net/socket.cstruct socket *sock;
sock988net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1006net/socket.csize=sock->ops->recvmsg(sock, &msg, size, (file->f_flags & O_NONBLOCK),
sock1024net/socket.cstruct socket *sock;
sock1029net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1032net/socket.creturn(sock->ops->setsockopt(sock, level, optname, optval, optlen));
sock1042net/socket.cstruct socket *sock;
sock1047net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1050net/socket.cif (!sock->ops->getsockopt) 
sock1052net/socket.creturn(sock->ops->getsockopt(sock, level, optname, optval, optlen));
sock1062net/socket.cstruct socket *sock;
sock1067net/socket.cif (!(sock = sockfd_lookup(fd, NULL))) 
sock1070net/socket.creturn(sock->ops->shutdown(sock, how));
sock1079net/socket.cstruct socket *sock;
sock1089net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1103net/socket.cif(sock->ops->sendmsg==NULL)
sock1105net/socket.creturn sock->ops->sendmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags);
sock1114net/socket.cstruct socket *sock;
sock1126net/socket.cif (!(sock = sockfd_lookup(fd, NULL)))
sock1140net/socket.cif(sock->ops->recvmsg==NULL)
sock1142net/socket.clen=sock->ops->recvmsg(sock, &msg_sys, total_len, (file->f_flags&O_NONBLOCK), flags, &addr_len);
sock1160net/socket.cstruct socket *sock;
sock1162net/socket.csock = socki_lookup (filp->f_inode);
sock1163net/socket.cif (sock != NULL && sock->ops != NULL && sock->ops->fcntl != NULL)
sock1164net/socket.creturn(sock->ops->fcntl(sock, cmd, arg));
sock210net/unix/af_unix.cstatic int unix_fcntl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock219net/unix/af_unix.cstatic int unix_setsockopt(struct socket *sock, int level, int optname, char *optval, int optlen)
sock221net/unix/af_unix.cunix_socket *sk=sock->data;
sock227net/unix/af_unix.cstatic int unix_getsockopt(struct socket *sock, int level, int optname, char *optval, int *optlen)
sock229net/unix/af_unix.cunix_socket *sk=sock->data;
sock235net/unix/af_unix.cstatic int unix_listen(struct socket *sock, int backlog)
sock237net/unix/af_unix.cunix_socket *sk=sock->data;
sock247net/unix/af_unix.cstatic void def_callback1(struct sock *sk)
sock253net/unix/af_unix.cstatic void def_callback2(struct sock *sk, int len)
sock262net/unix/af_unix.cstatic void def_callback3(struct sock *sk)
sock271net/unix/af_unix.cstatic int unix_create(struct socket *sock, int protocol)
sock280net/unix/af_unix.cswitch(sock->type)
sock289net/unix/af_unix.csock->type=SOCK_DGRAM;
sock296net/unix/af_unix.csk->type=sock->type;
sock332net/unix/af_unix.csk->socket=sock;
sock333net/unix/af_unix.csock->data=(void *)sk;
sock334net/unix/af_unix.csk->sleep=sock->wait;
sock345net/unix/af_unix.cstatic int unix_release(struct socket *sock, struct socket *peer)
sock347net/unix/af_unix.cunix_socket *sk=sock->data;
sock404net/unix/af_unix.cstatic int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len)
sock407net/unix/af_unix.cunix_socket *sk=sock->data;
sock451net/unix/af_unix.cstatic int unix_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags)
sock453net/unix/af_unix.cunix_socket *sk=sock->data;
sock461net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state==TCP_ESTABLISHED)
sock463net/unix/af_unix.csock->state=SS_CONNECTED;
sock466net/unix/af_unix.cif(sock->state==SS_CONNECTING && sk->state == TCP_CLOSE)
sock468net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock471net/unix/af_unix.cif(sock->state==SS_CONNECTING)
sock485net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock488net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock497net/unix/af_unix.csock->state=SS_CONNECTED;
sock503net/unix/af_unix.cif(sock->state==SS_UNCONNECTED)
sock532net/unix/af_unix.csock->state=SS_CONNECTING;
sock564net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock573net/unix/af_unix.csock->state=SS_CONNECTED;
sock596net/unix/af_unix.cstatic int unix_accept(struct socket *sock, struct socket *newsock, int flags)
sock598net/unix/af_unix.cunix_socket *sk=sock->data;
sock657net/unix/af_unix.cstatic int unix_getname(struct socket *sock, struct sockaddr *uaddr, int *uaddr_len, int peer)
sock659net/unix/af_unix.cunix_socket *sk=sock->data;
sock680net/unix/af_unix.cstatic int unix_sendmsg(struct socket *sock, struct msghdr *msg, int len, int nonblock, int flags)
sock682net/unix/af_unix.cunix_socket *sk=sock->data;
sock701net/unix/af_unix.cif(sock->type==SOCK_STREAM)
sock727net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock737net/unix/af_unix.cif(size > 4000 && sock->type!=SOCK_DGRAM)
sock768net/unix/af_unix.cif(sock->type==SOCK_DGRAM && other->dead)
sock772net/unix/af_unix.csock->state=SS_UNCONNECTED;
sock817net/unix/af_unix.cstatic int unix_recvmsg(struct socket *sock, struct msghdr *msg, int size, int noblock, int flags, int *addr_len)
sock819net/unix/af_unix.cunix_socket *sk=sock->data;
sock894net/unix/af_unix.cif(sock->type==SOCK_DGRAM)
sock903net/unix/af_unix.cstatic int unix_shutdown(struct socket *sock, int mode)
sock905net/unix/af_unix.cunix_socket *sk=(unix_socket *)sock->data;
sock932net/unix/af_unix.cstatic int unix_select(struct socket *sock,  int sel_type, select_table *wait)
sock934net/unix/af_unix.creturn datagram_select(sock->data,sel_type,wait);
sock937net/unix/af_unix.cstatic int unix_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
sock939net/unix/af_unix.cunix_socket *sk=sock->data;