Lines Matching defs:newsock
1955 struct socket *sock, *newsock;
1965 newsock = sock_alloc();
1966 if (!newsock)
1970 newsock->type = sock->type;
1971 newsock->ops = ops;
1979 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
1983 err = security_socket_accept(sock, newsock);
1988 err = ops->accept(sock, newsock, arg);
1993 len = ops->getname(newsock, (struct sockaddr *)&address, 2);
3614 * @newsock: new connected socket
3618 * If it fails, @newsock is guaranteed to be %NULL.
3622 int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3633 newsock);
3637 err = ops->accept(sock, *newsock, &arg);
3639 sock_release(*newsock);
3640 *newsock = NULL;
3644 (*newsock)->ops = ops;