Lines Matching refs:newsock
1901 struct socket *sock, *newsock;
1911 newsock = sock_alloc();
1912 if (!newsock)
1916 newsock->type = sock->type;
1917 newsock->ops = ops;
1925 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
1929 err = security_socket_accept(sock, newsock);
1933 err = ops->accept(sock, newsock, sock->file->f_flags | file_flags,
1939 len = ops->getname(newsock, (struct sockaddr *)&address, 2);
3547 * @newsock: new connected socket
3551 * If it fails, @newsock is guaranteed to be %NULL.
3555 int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3562 newsock);
3566 err = ops->accept(sock, *newsock, flags, true);
3568 sock_release(*newsock);
3569 *newsock = NULL;
3573 (*newsock)->ops = ops;