Lines Matching refs:newsock
1851 struct socket *sock, *newsock; in do_accept() local
1860 newsock = sock_alloc(); in do_accept()
1861 if (!newsock) in do_accept()
1864 newsock->type = sock->type; in do_accept()
1865 newsock->ops = sock->ops; in do_accept()
1871 __module_get(newsock->ops->owner); in do_accept()
1873 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in do_accept()
1877 err = security_socket_accept(sock, newsock); in do_accept()
1881 err = sock->ops->accept(sock, newsock, sock->file->f_flags | file_flags, in do_accept()
1887 len = newsock->ops->getname(newsock, in do_accept()
3488 int kernel_accept(struct socket *sock, struct socket **newsock, int flags) in kernel_accept() argument
3494 newsock); in kernel_accept()
3498 err = sock->ops->accept(sock, *newsock, flags, true); in kernel_accept()
3500 sock_release(*newsock); in kernel_accept()
3501 *newsock = NULL; in kernel_accept()
3505 (*newsock)->ops = sock->ops; in kernel_accept()
3506 __module_get((*newsock)->ops->owner); in kernel_accept()