Lines Matching refs:protinfo

123 #define UNIX_ABSTRACT(sk)	((sk)->protinfo.af_unix.addr->hash!=UNIX_HASH_SIZE)
193 unix_socket **list = sk->protinfo.af_unix.list; in __unix_remove_socket()
201 sk->protinfo.af_unix.list = NULL; in __unix_remove_socket()
210 BUG_TRAP(sk->protinfo.af_unix.list==NULL); in __unix_insert_socket()
212 sk->protinfo.af_unix.list = list; in __unix_insert_socket()
241 if(s->protinfo.af_unix.addr->len==len && in __unix_find_socket_byname()
242 memcmp(s->protinfo.af_unix.addr->name, sunname, len) == 0) in __unix_find_socket_byname()
269 struct dentry *dentry = s->protinfo.af_unix.dentry; in unix_find_socket_byinode()
305 wake_up_interruptible_all(&sk->protinfo.af_unix.peer_wait); in unix_dgram_disconnected()
323 BUG_TRAP(sk->protinfo.af_unix.list==NULL); in unix_sock_destructor()
330 if (sk->protinfo.af_unix.addr) in unix_sock_destructor()
331 unix_release_addr(sk->protinfo.af_unix.addr); in unix_sock_destructor()
354 dentry = sk->protinfo.af_unix.dentry; in unix_release_sock()
355 sk->protinfo.af_unix.dentry=NULL; in unix_release_sock()
356 mnt = sk->protinfo.af_unix.mnt; in unix_release_sock()
357 sk->protinfo.af_unix.mnt=NULL; in unix_release_sock()
362 wake_up_interruptible_all(&sk->protinfo.af_unix.peer_wait); in unix_release_sock()
428 if (!sk->protinfo.af_unix.addr) in unix_listen()
434 wake_up_interruptible_all(&sk->protinfo.af_unix.peer_wait); in unix_listen()
474 sk->protinfo.af_unix.dentry=NULL; in unix_create1()
475 sk->protinfo.af_unix.mnt=NULL; in unix_create1()
476 sk->protinfo.af_unix.lock = RW_LOCK_UNLOCKED; in unix_create1()
477 atomic_set(&sk->protinfo.af_unix.inflight, sock ? 0 : -1); in unix_create1()
478 init_MUTEX(&sk->protinfo.af_unix.readsem);/* single task reading lock */ in unix_create1()
479 init_waitqueue_head(&sk->protinfo.af_unix.peer_wait); in unix_create1()
480 sk->protinfo.af_unix.list=NULL; in unix_create1()
532 down(&sk->protinfo.af_unix.readsem); in unix_autobind()
535 if (sk->protinfo.af_unix.addr) in unix_autobind()
565 sk->protinfo.af_unix.addr = addr; in unix_autobind()
571 up(&sk->protinfo.af_unix.readsem); in unix_autobind()
614 dentry = u->protinfo.af_unix.dentry; in unix_find_other()
655 down(&sk->protinfo.af_unix.readsem); in unix_bind()
658 if (sk->protinfo.af_unix.addr) in unix_bind()
736 sk->protinfo.af_unix.dentry = nd.dentry; in unix_bind()
737 sk->protinfo.af_unix.mnt = nd.mnt; in unix_bind()
742 sk->protinfo.af_unix.addr = addr; in unix_bind()
748 up(&sk->protinfo.af_unix.readsem); in unix_bind()
780 if (sock->passcred && !sk->protinfo.af_unix.addr && in unix_dgram_connect()
831 add_wait_queue_exclusive(&other->protinfo.af_unix.peer_wait, &wait); in unix_wait_for_peer()
843 remove_wait_queue(&other->protinfo.af_unix.peer_wait, &wait); in unix_wait_for_peer()
865 if (sock->passcred && !sk->protinfo.af_unix.addr && in unix_stream_connect()
969 newsk->sleep = &newsk->protinfo.af_unix.peer_wait; in unix_stream_connect()
972 if (other->protinfo.af_unix.addr) in unix_stream_connect()
974 atomic_inc(&other->protinfo.af_unix.addr->refcnt); in unix_stream_connect()
975 newsk->protinfo.af_unix.addr=other->protinfo.af_unix.addr; in unix_stream_connect()
977 if (other->protinfo.af_unix.dentry) { in unix_stream_connect()
978 newsk->protinfo.af_unix.dentry=dget(other->protinfo.af_unix.dentry); in unix_stream_connect()
979 newsk->protinfo.af_unix.mnt=mntget(other->protinfo.af_unix.mnt); in unix_stream_connect()
997 atomic_inc(&newsk->protinfo.af_unix.inflight); in unix_stream_connect()
1070 wake_up_interruptible(&sk->protinfo.af_unix.peer_wait); in unix_accept()
1102 if (!sk->protinfo.af_unix.addr) { in unix_getname()
1107 struct unix_address *addr = sk->protinfo.af_unix.addr; in unix_getname()
1187 if (sock->passcred && !sk->protinfo.af_unix.addr && in unix_dgram_sendmsg()
1392 if (sk->protinfo.af_unix.addr) { in unix_copy_addr()
1393 msg->msg_namelen=sk->protinfo.af_unix.addr->len; in unix_copy_addr()
1395 sk->protinfo.af_unix.addr->name, in unix_copy_addr()
1396 sk->protinfo.af_unix.addr->len); in unix_copy_addr()
1414 down(&sk->protinfo.af_unix.readsem); in unix_dgram_recvmsg()
1420 wake_up_interruptible(&sk->protinfo.af_unix.peer_wait); in unix_dgram_recvmsg()
1463 up(&sk->protinfo.af_unix.readsem); in unix_dgram_recvmsg()
1533 down(&sk->protinfo.af_unix.readsem); in unix_stream_recvmsg()
1557 up(&sk->protinfo.af_unix.readsem); in unix_stream_recvmsg()
1565 down(&sk->protinfo.af_unix.readsem); in unix_stream_recvmsg()
1631 up(&sk->protinfo.af_unix.readsem); in unix_stream_recvmsg()
1778 if (s->protinfo.af_unix.addr) in unix_read_proc()
1781 memcpy(buffer+len, s->protinfo.af_unix.addr->name->sun_path, in unix_read_proc()
1782 s->protinfo.af_unix.addr->len-sizeof(short)); in unix_read_proc()
1787 len += s->protinfo.af_unix.addr->len - sizeof(short); in unix_read_proc()