Lines Matching refs:newsock
1897 struct socket *sock, *newsock;
1907 newsock = sock_alloc();
1908 if (!newsock)
1912 newsock->type = sock->type;
1913 newsock->ops = ops;
1921 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
1925 err = security_socket_accept(sock, newsock);
1929 err = ops->accept(sock, newsock, sock->file->f_flags | file_flags,
1935 len = ops->getname(newsock, (struct sockaddr *)&address, 2);
3571 * @newsock: new connected socket
3575 * If it fails, @newsock is guaranteed to be %NULL.
3579 int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3586 newsock);
3590 err = ops->accept(sock, *newsock, flags, true);
3592 sock_release(*newsock);
3593 *newsock = NULL;
3597 (*newsock)->ops = ops;