Lines Matching refs:newsock
1714 struct socket *sock, *newsock;
1723 newsock = sock_alloc();
1724 if (!newsock)
1727 newsock->type = sock->type;
1728 newsock->ops = sock->ops;
1734 __module_get(newsock->ops->owner);
1736 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
1740 err = security_socket_accept(sock, newsock);
1744 err = sock->ops->accept(sock, newsock, sock->file->f_flags | file_flags,
1750 len = newsock->ops->getname(newsock,
3444 * @newsock: new connected socket
3448 * If it fails, @newsock is guaranteed to be %NULL.
3452 int kernel_accept(struct socket *sock, struct socket **newsock, int flags)
3458 newsock);
3462 err = sock->ops->accept(sock, *newsock, flags, true);
3464 sock_release(*newsock);
3465 *newsock = NULL;
3469 (*newsock)->ops = sock->ops;
3470 __module_get((*newsock)->ops->owner);