Lines Matching defs:sock
84 #include <net/sock.h>
99 struct sock *unix_get_socket(struct file *filp)
101 struct sock *u_sock = NULL;
108 struct socket *sock = SOCKET_I(inode);
109 struct sock *s = sock->sk;
114 if (s && sock->ops && sock->ops->family == PF_UNIX)
127 struct sock *s = unix_get_socket(fp);
144 struct sock *s = unix_get_socket(fp);
156 static void scan_inflight(struct sock *x, void (*func)(struct unix_sock *),
179 struct sock *sk = unix_get_socket(*fp++);
203 static void scan_children(struct sock *x, void (*func)(struct unix_sock *),