Lines Matching refs:newsock
1919 struct socket *sock, *newsock; in do_accept() local
1929 newsock = sock_alloc(); in do_accept()
1930 if (!newsock) in do_accept()
1934 newsock->type = sock->type; in do_accept()
1935 newsock->ops = ops; in do_accept()
1943 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in do_accept()
1947 err = security_socket_accept(sock, newsock); in do_accept()
1952 err = ops->accept(sock, newsock, arg); in do_accept()
1957 len = ops->getname(newsock, (struct sockaddr *)&address, 2); in do_accept()
3602 int kernel_accept(struct socket *sock, struct socket **newsock, int flags) in kernel_accept() argument
3613 newsock); in kernel_accept()
3617 err = ops->accept(sock, *newsock, &arg); in kernel_accept()
3619 sock_release(*newsock); in kernel_accept()
3620 *newsock = NULL; in kernel_accept()
3624 (*newsock)->ops = ops; in kernel_accept()