newsock 271 crypto/af_alg.c int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern) newsock 291 crypto/af_alg.c sock_init_data(newsock, sk2); newsock 292 crypto/af_alg.c security_sock_graft(sk2, newsock); newsock 311 crypto/af_alg.c newsock->ops = type->ops; newsock 312 crypto/af_alg.c newsock->state = SS_CONNECTED; newsock 315 crypto/af_alg.c newsock->ops = type->ops_nokey; newsock 326 crypto/af_alg.c static int alg_accept(struct socket *sock, struct socket *newsock, int flags, newsock 329 crypto/af_alg.c return af_alg_accept(sock->sk, newsock, kern); newsock 230 crypto/algif_hash.c static int hash_accept(struct socket *sock, struct socket *newsock, int flags, newsock 252 crypto/algif_hash.c err = af_alg_accept(ask->parent, newsock, kern); newsock 256 crypto/algif_hash.c sk2 = newsock->sk; newsock 368 crypto/algif_hash.c static int hash_accept_nokey(struct socket *sock, struct socket *newsock, newsock 377 crypto/algif_hash.c return hash_accept(sock, newsock, flags, kern); newsock 1468 drivers/nvme/target/tcp.c struct socket *newsock) newsock 1479 drivers/nvme/target/tcp.c queue->sock = newsock; newsock 1536 drivers/nvme/target/tcp.c struct socket *newsock; newsock 1540 drivers/nvme/target/tcp.c ret = kernel_accept(port->sock, &newsock, O_NONBLOCK); newsock 1546 drivers/nvme/target/tcp.c ret = nvmet_tcp_alloc_queue(port, newsock); newsock 1549 drivers/nvme/target/tcp.c sock_release(newsock); newsock 762 drivers/xen/pvcalls-front.c int pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags) newsock 874 drivers/xen/pvcalls-front.c map2->sock = newsock; newsock 875 drivers/xen/pvcalls-front.c newsock->sk = sk_alloc(sock_net(sock->sk), PF_INET, GFP_KERNEL, &pvcalls_proto, false); newsock 876 drivers/xen/pvcalls-front.c if (!newsock->sk) { newsock 885 drivers/xen/pvcalls-front.c newsock->sk->sk_send_head = (void *)map2; newsock 14 drivers/xen/pvcalls-front.h struct socket *newsock, newsock 731 fs/dlm/lowcomms.c struct socket *newsock; newsock 751 fs/dlm/lowcomms.c result = kernel_accept(con->sock, &newsock, O_NONBLOCK); newsock 757 fs/dlm/lowcomms.c len = newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, 2); newsock 770 fs/dlm/lowcomms.c sock_release(newsock); newsock 811 fs/dlm/lowcomms.c add_sock(newsock, othercon); newsock 828 fs/dlm/lowcomms.c add_sock(newsock, newcon); newsock 847 fs/dlm/lowcomms.c if (newsock) newsock 848 fs/dlm/lowcomms.c sock_release(newsock); newsock 864 fs/dlm/lowcomms.c struct socket *newsock; newsock 875 fs/dlm/lowcomms.c ret = kernel_accept(con->sock, &newsock, O_NONBLOCK); newsock 882 fs/dlm/lowcomms.c ret = kernel_getsockopt(newsock, IPPROTO_SCTP, SCTP_PRIMARY_ADDR, newsock 931 fs/dlm/lowcomms.c add_sock(newsock, othercon); newsock 943 fs/dlm/lowcomms.c add_sock(newsock, newcon); newsock 964 fs/dlm/lowcomms.c if (newsock) newsock 965 fs/dlm/lowcomms.c sock_release(newsock); newsock 163 include/crypto/if_alg.h int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern); newsock 1716 include/linux/lsm_hooks.h int (*socket_accept)(struct socket *sock, struct socket *newsock); newsock 148 include/linux/net.h struct socket *newsock, int flags, bool kern); newsock 300 include/linux/net.h int kernel_accept(struct socket *sock, struct socket **newsock, int flags); newsock 1288 include/linux/security.h int security_socket_accept(struct socket *sock, struct socket *newsock); newsock 1382 include/linux/security.h struct socket *newsock) newsock 281 include/net/bluetooth/bluetooth.h struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock); newsock 26 include/net/inet_common.h int inet_accept(struct socket *sock, struct socket *newsock, int flags, newsock 167 include/net/iucv/af_iucv.h struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock); newsock 322 net/atm/svc.c static int svc_accept(struct socket *sock, struct socket *newsock, int flags, newsock 334 net/atm/svc.c error = svc_create(sock_net(sk), newsock, 0, kern); newsock 338 net/atm/svc.c new_vcc = ATM_SD(newsock); newsock 380 net/atm/svc.c error = vcc_connect(newsock, msg->pvc.sap_addr.itf, newsock 415 net/atm/svc.c newsock->state = SS_CONNECTED; newsock 1330 net/ax25/af_ax25.c static int ax25_accept(struct socket *sock, struct socket *newsock, int flags, newsock 1385 net/ax25/af_ax25.c sock_graft(newsk, newsock); newsock 1390 net/ax25/af_ax25.c newsock->state = SS_CONNECTED; newsock 194 net/bluetooth/af_bluetooth.c struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) newsock 234 net/bluetooth/af_bluetooth.c if (sk->sk_state == BT_CONNECTED || !newsock || newsock 237 net/bluetooth/af_bluetooth.c if (newsock) newsock 238 net/bluetooth/af_bluetooth.c sock_graft(sk, newsock); newsock 304 net/bluetooth/l2cap_sock.c static int l2cap_sock_accept(struct socket *sock, struct socket *newsock, newsock 326 net/bluetooth/l2cap_sock.c nsk = bt_accept_dequeue(sk, newsock); newsock 351 net/bluetooth/l2cap_sock.c newsock->state = SS_CONNECTED; newsock 476 net/bluetooth/rfcomm/sock.c static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags, newsock 503 net/bluetooth/rfcomm/sock.c nsk = bt_accept_dequeue(sk, newsock); newsock 528 net/bluetooth/rfcomm/sock.c newsock->state = SS_CONNECTED; newsock 628 net/bluetooth/sco.c static int sco_sock_accept(struct socket *sock, struct socket *newsock, newsock 650 net/bluetooth/sco.c ch = bt_accept_dequeue(sk, newsock); newsock 674 net/bluetooth/sco.c newsock->state = SS_CONNECTED; newsock 2665 net/core/sock.c int sock_no_accept(struct socket *sock, struct socket *newsock, int flags, newsock 1065 net/decnet/af_decnet.c static int dn_accept(struct socket *sock, struct socket *newsock, int flags, newsock 1095 net/decnet/af_decnet.c newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation, kern); newsock 729 net/ipv4/af_inet.c int inet_accept(struct socket *sock, struct socket *newsock, int flags, newsock 746 net/ipv4/af_inet.c sock_graft(sk2, newsock); newsock 748 net/ipv4/af_inet.c newsock->state = SS_CONNECTED; newsock 682 net/iucv/af_iucv.c struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock) newsock 699 net/iucv/af_iucv.c !newsock) { newsock 701 net/iucv/af_iucv.c if (newsock) newsock 702 net/iucv/af_iucv.c sock_graft(sk, newsock); newsock 959 net/iucv/af_iucv.c static int iucv_sock_accept(struct socket *sock, struct socket *newsock, newsock 978 net/iucv/af_iucv.c while (!(nsk = iucv_accept_dequeue(sk, newsock))) { newsock 1006 net/iucv/af_iucv.c newsock->state = SS_CONNECTED; newsock 1662 net/kcm/kcmsock.c struct socket *newsock; newsock 1665 net/kcm/kcmsock.c newsock = sock_alloc(); newsock 1666 net/kcm/kcmsock.c if (!newsock) newsock 1669 net/kcm/kcmsock.c newsock->type = osock->type; newsock 1670 net/kcm/kcmsock.c newsock->ops = osock->ops; newsock 1672 net/kcm/kcmsock.c __module_get(newsock->ops->owner); newsock 1677 net/kcm/kcmsock.c sock_release(newsock); newsock 1680 net/kcm/kcmsock.c sock_init_data(newsock, newsk); newsock 1683 net/kcm/kcmsock.c return sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name); newsock 665 net/llc/af_llc.c static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags, newsock 697 net/llc/af_llc.c llc_ui_sk_init(newsock, newsk); newsock 700 net/llc/af_llc.c newsock->state = SS_CONNECTED; newsock 743 net/netrom/af_netrom.c static int nr_accept(struct socket *sock, struct socket *newsock, int flags, newsock 794 net/netrom/af_netrom.c sock_graft(newsk, newsock); newsock 220 net/nfc/llcp.h struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock); newsock 398 net/nfc/llcp_sock.c struct socket *newsock) newsock 416 net/nfc/llcp_sock.c if (sk->sk_state == LLCP_CONNECTED || !newsock) { newsock 420 net/nfc/llcp_sock.c if (newsock) newsock 421 net/nfc/llcp_sock.c sock_graft(sk, newsock); newsock 438 net/nfc/llcp_sock.c static int llcp_sock_accept(struct socket *sock, struct socket *newsock, newsock 459 net/nfc/llcp_sock.c while (!(new_sk = nfc_llcp_accept_dequeue(sk, newsock))) { newsock 482 net/nfc/llcp_sock.c newsock->state = SS_CONNECTED; newsock 294 net/phonet/socket.c static int pn_socket_accept(struct socket *sock, struct socket *newsock, newsock 309 net/phonet/socket.c sock_graft(newsk, newsock); newsock 310 net/phonet/socket.c newsock->state = SS_CONNECTED; newsock 155 net/rds/tcp.c goto newsock; newsock 192 net/rds/tcp.c newsock: newsock 852 net/rose/af_rose.c static int rose_accept(struct socket *sock, struct socket *newsock, int flags, newsock 904 net/rose/af_rose.c sock_graft(newsk, newsock); newsock 5699 net/sctp/socket.c struct socket *newsock; newsock 5702 net/sctp/socket.c retval = sctp_do_peeloff(sk, peeloff->associd, &newsock); newsock 5709 net/sctp/socket.c sock_release(newsock); newsock 5713 net/sctp/socket.c *newfile = sock_alloc_file(newsock, 0, NULL); newsock 5721 net/sctp/socket.c pr_debug("%s: sk:%p, newsk:%p, sd:%d\n", __func__, sk, newsock->sk, newsock 1708 net/socket.c struct socket *sock, *newsock; newsock 1724 net/socket.c newsock = sock_alloc(); newsock 1725 net/socket.c if (!newsock) newsock 1728 net/socket.c newsock->type = sock->type; newsock 1729 net/socket.c newsock->ops = sock->ops; newsock 1735 net/socket.c __module_get(newsock->ops->owner); newsock 1740 net/socket.c sock_release(newsock); newsock 1743 net/socket.c newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); newsock 1750 net/socket.c err = security_socket_accept(sock, newsock); newsock 1754 net/socket.c err = sock->ops->accept(sock, newsock, sock->file->f_flags, false); newsock 1759 net/socket.c len = newsock->ops->getname(newsock, newsock 3608 net/socket.c int kernel_accept(struct socket *sock, struct socket **newsock, int flags) newsock 3614 net/socket.c newsock); newsock 3618 net/socket.c err = sock->ops->accept(sock, *newsock, flags, true); newsock 3620 net/socket.c sock_release(*newsock); newsock 3621 net/socket.c *newsock = NULL; newsock 3625 net/socket.c (*newsock)->ops = sock->ops; newsock 3626 net/socket.c __module_get((*newsock)->ops->owner); newsock 782 net/sunrpc/svcsock.c struct socket *newsock; newsock 792 net/sunrpc/svcsock.c err = kernel_accept(sock, &newsock, O_NONBLOCK); newsock 804 net/sunrpc/svcsock.c err = kernel_getpeername(newsock, sin); newsock 825 net/sunrpc/svcsock.c newsock->sk->sk_state_change = svsk->sk_ostate; newsock 826 net/sunrpc/svcsock.c newsock->sk->sk_data_ready = svsk->sk_odata; newsock 827 net/sunrpc/svcsock.c newsock->sk->sk_write_space = svsk->sk_owspace; newsock 832 net/sunrpc/svcsock.c newsock->sk->sk_sndtimeo = HZ*30; newsock 834 net/sunrpc/svcsock.c newsvsk = svc_setup_socket(serv, newsock, newsock 839 net/sunrpc/svcsock.c err = kernel_getsockname(newsock, sin); newsock 847 net/sunrpc/svcsock.c if (sock_is_loopback(newsock->sk)) newsock 857 net/sunrpc/svcsock.c sock_release(newsock); newsock 452 net/tipc/topsrv.c struct socket *newsock; newsock 458 net/tipc/topsrv.c ret = kernel_accept(lsock, &newsock, O_NONBLOCK); newsock 464 net/tipc/topsrv.c sock_release(newsock); newsock 468 net/tipc/topsrv.c newsk = newsock->sk; newsock 473 net/tipc/topsrv.c con->sock = newsock; newsock 1431 net/unix/af_unix.c static int unix_accept(struct socket *sock, struct socket *newsock, int flags, newsock 1465 net/unix/af_unix.c newsock->state = SS_CONNECTED; newsock 1466 net/unix/af_unix.c unix_sock_inherit_flags(sock, newsock); newsock 1467 net/unix/af_unix.c sock_graft(tsk, newsock); newsock 1250 net/vmw_vsock/af_vsock.c static int vsock_accept(struct socket *sock, struct socket *newsock, int flags, newsock 1319 net/vmw_vsock/af_vsock.c newsock->state = SS_CONNECTED; newsock 1320 net/vmw_vsock/af_vsock.c sock_graft(connected, newsock); newsock 865 net/x25/af_x25.c static int x25_accept(struct socket *sock, struct socket *newsock, int flags, newsock 893 net/x25/af_x25.c sock_graft(newsk, newsock); newsock 899 net/x25/af_x25.c newsock->state = SS_CONNECTED; newsock 905 security/apparmor/lsm.c static int apparmor_socket_accept(struct socket *sock, struct socket *newsock) newsock 909 security/apparmor/lsm.c AA_BUG(!newsock); newsock 913 security/apparmor/lsm.c accept_perm(sock, newsock), newsock 2006 security/security.c int security_socket_accept(struct socket *sock, struct socket *newsock) newsock 2008 security/security.c return call_int_hook(socket_accept, 0, sock, newsock); newsock 4811 security/selinux/hooks.c static int selinux_socket_accept(struct socket *sock, struct socket *newsock) newsock 4829 security/selinux/hooks.c newisec = inode_security_novalidate(SOCK_INODE(newsock));