tag | line | file | source code |
af_unix | 210 | include/net/sock.h | struct unix_opt af_unix; |
af_unix | 121 | net/unix/af_unix.c | if(s->protinfo.af_unix.inode==i) |
af_unix | 139 | net/unix/af_unix.c | if(sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0) |
af_unix | 141 | net/unix/af_unix.c | if(sk->protinfo.af_unix.name) |
af_unix | 142 | net/unix/af_unix.c | kfree(sk->protinfo.af_unix.name); |
af_unix | 186 | net/unix/af_unix.c | if(sk->protinfo.af_unix.inode!=NULL) |
af_unix | 188 | net/unix/af_unix.c | iput(sk->protinfo.af_unix.inode); |
af_unix | 189 | net/unix/af_unix.c | sk->protinfo.af_unix.inode=NULL; |
af_unix | 192 | net/unix/af_unix.c | if(--sk->protinfo.af_unix.locks==0 && sk->wmem_alloc==0) |
af_unix | 194 | net/unix/af_unix.c | if(sk->protinfo.af_unix.name) |
af_unix | 195 | net/unix/af_unix.c | kfree(sk->protinfo.af_unix.name); |
af_unix | 239 | net/unix/af_unix.c | if(sk->protinfo.af_unix.name==NULL) |
af_unix | 300 | net/unix/af_unix.c | sk->protinfo.af_unix.family=AF_UNIX; |
af_unix | 301 | net/unix/af_unix.c | sk->protinfo.af_unix.inode=NULL; |
af_unix | 302 | net/unix/af_unix.c | sk->protinfo.af_unix.locks=1; /* Us */ |
af_unix | 303 | net/unix/af_unix.c | sk->protinfo.af_unix.readsem=MUTEX; /* single task reading lock */ |
af_unix | 304 | net/unix/af_unix.c | sk->protinfo.af_unix.name=NULL; |
af_unix | 305 | net/unix/af_unix.c | sk->protinfo.af_unix.other=NULL; |
af_unix | 355 | net/unix/af_unix.c | skpair=(unix_socket *)sk->protinfo.af_unix.other; /* Person we send to (default) */ |
af_unix | 362 | net/unix/af_unix.c | skpair->protinfo.af_unix.locks--; /* It may now die */ |
af_unix | 363 | net/unix/af_unix.c | sk->protinfo.af_unix.other=NULL; /* No pair */ |
af_unix | 409 | net/unix/af_unix.c | if(sk->protinfo.af_unix.name) |
af_unix | 418 | net/unix/af_unix.c | if(sk->protinfo.af_unix.inode!=NULL) |
af_unix | 421 | net/unix/af_unix.c | sk->protinfo.af_unix.name=kmalloc(addr_len+1, GFP_KERNEL); |
af_unix | 422 | net/unix/af_unix.c | if(sk->protinfo.af_unix.name==NULL) |
af_unix | 424 | net/unix/af_unix.c | memcpy(sk->protinfo.af_unix.name, sunaddr->sun_path, addr_len+1); |
af_unix | 429 | net/unix/af_unix.c | err=do_mknod(sk->protinfo.af_unix.name,S_IFSOCK|S_IRWXUGO,0); |
af_unix | 431 | net/unix/af_unix.c | err=open_namei(sk->protinfo.af_unix.name, 2, S_IFSOCK, &sk->protinfo.af_unix.inode, NULL); |
af_unix | 437 | net/unix/af_unix.c | kfree_s(sk->protinfo.af_unix.name,addr_len+1); |
af_unix | 438 | net/unix/af_unix.c | sk->protinfo.af_unix.name=NULL; |
af_unix | 457 | net/unix/af_unix.c | if(sk->type==SOCK_STREAM && sk->protinfo.af_unix.other) |
af_unix | 479 | net/unix/af_unix.c | if(sk->type==SOCK_DGRAM && sk->protinfo.af_unix.other) |
af_unix | 481 | net/unix/af_unix.c | sk->protinfo.af_unix.other->protinfo.af_unix.locks--; |
af_unix | 482 | net/unix/af_unix.c | sk->protinfo.af_unix.other=NULL; |
af_unix | 493 | net/unix/af_unix.c | other->protinfo.af_unix.locks++; |
af_unix | 494 | net/unix/af_unix.c | sk->protinfo.af_unix.other=other; |
af_unix | 525 | net/unix/af_unix.c | other->protinfo.af_unix.locks++; /* Lock the other socket so it doesn't run off for a moment */ |
af_unix | 527 | net/unix/af_unix.c | sk->protinfo.af_unix.other=other; |
af_unix | 560 | net/unix/af_unix.c | sk->protinfo.af_unix.other->protinfo.af_unix.locks--; |
af_unix | 561 | net/unix/af_unix.c | sk->protinfo.af_unix.other=NULL; |
af_unix | 585 | net/unix/af_unix.c | ska->protinfo.af_unix.locks++; |
af_unix | 586 | net/unix/af_unix.c | skb->protinfo.af_unix.locks++; |
af_unix | 587 | net/unix/af_unix.c | ska->protinfo.af_unix.other=skb; |
af_unix | 588 | net/unix/af_unix.c | skb->protinfo.af_unix.other=ska; |
af_unix | 610 | net/unix/af_unix.c | if(sk->protinfo.af_unix.name!=NULL) |
af_unix | 612 | net/unix/af_unix.c | newsk->protinfo.af_unix.name=kmalloc(strlen(sk->protinfo.af_unix.name)+1, GFP_KERNEL); |
af_unix | 613 | net/unix/af_unix.c | if(newsk->protinfo.af_unix.name==NULL) |
af_unix | 615 | net/unix/af_unix.c | strcpy(newsk->protinfo.af_unix.name, sk->protinfo.af_unix.name); |
af_unix | 642 | net/unix/af_unix.c | newsk->protinfo.af_unix.other=tsk; |
af_unix | 643 | net/unix/af_unix.c | tsk->protinfo.af_unix.other=newsk; |
af_unix | 646 | net/unix/af_unix.c | newsk->protinfo.af_unix.locks++; /* Swap lock over */ |
af_unix | 647 | net/unix/af_unix.c | sk->protinfo.af_unix.locks--; /* Locked to child socket not master */ |
af_unix | 648 | net/unix/af_unix.c | tsk->protinfo.af_unix.locks++; /* Back lock */ |
af_unix | 662 | net/unix/af_unix.c | if(sk->protinfo.af_unix.other==NULL) |
af_unix | 664 | net/unix/af_unix.c | sk=sk->protinfo.af_unix.other; |
af_unix | 667 | net/unix/af_unix.c | if(sk->protinfo.af_unix.name==NULL) |
af_unix | 673 | net/unix/af_unix.c | *uaddr_len=sizeof(sunaddr->sun_family)+strlen(sk->protinfo.af_unix.name)+1; |
af_unix | 674 | net/unix/af_unix.c | strcpy(sunaddr->sun_path,sk->protinfo.af_unix.name); /* 108 byte limited */ |
af_unix | 709 | net/unix/af_unix.c | if(sk->protinfo.af_unix.other==NULL) |
af_unix | 765 | net/unix/af_unix.c | other=sk->protinfo.af_unix.other; |
af_unix | 768 | net/unix/af_unix.c | other->protinfo.af_unix.locks--; |
af_unix | 769 | net/unix/af_unix.c | sk->protinfo.af_unix.other=NULL; |
af_unix | 835 | net/unix/af_unix.c | down(&sk->protinfo.af_unix.readsem); /* Lock the socket */ |
af_unix | 852 | net/unix/af_unix.c | up(&sk->protinfo.af_unix.readsem); |
af_unix | 862 | net/unix/af_unix.c | down(&sk->protinfo.af_unix.readsem); |
af_unix | 868 | net/unix/af_unix.c | if(skb->sk->protinfo.af_unix.name) |
af_unix | 870 | net/unix/af_unix.c | memcpy(sunaddr->sun_path, skb->sk->protinfo.af_unix.name, 108); |
af_unix | 896 | net/unix/af_unix.c | up(&sk->protinfo.af_unix.readsem); |
af_unix | 903 | net/unix/af_unix.c | unix_socket *other=sk->protinfo.af_unix.other; |
af_unix | 914 | net/unix/af_unix.c | other=sk->protinfo.af_unix.other; |
af_unix | 985 | net/unix/af_unix.c | s->protinfo.af_unix.locks, |
af_unix | 990 | net/unix/af_unix.c | if(s->protinfo.af_unix.name!=NULL) |
af_unix | 991 | net/unix/af_unix.c | len+=sprintf(buffer+len, " %s\n", s->protinfo.af_unix.name); |