/linux-6.6.21/crypto/ |
D | algif_hash.c | 226 static int hash_accept(struct socket *sock, struct socket *newsock, int flags, in hash_accept() argument 255 err = af_alg_accept(ask->parent, newsock, kern); in hash_accept() 259 sk2 = newsock->sk; in hash_accept() 357 static int hash_accept_nokey(struct socket *sock, struct socket *newsock, in hash_accept_nokey() argument 366 return hash_accept(sock, newsock, flags, kern); in hash_accept_nokey()
|
D | af_alg.c | 410 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern) in af_alg_accept() argument 430 sock_init_data(newsock, sk2); in af_alg_accept() 431 security_sock_graft(sk2, newsock); in af_alg_accept() 438 newsock->ops = type->ops; in af_alg_accept() 457 newsock->state = SS_CONNECTED; in af_alg_accept() 460 newsock->ops = type->ops_nokey; in af_alg_accept() 471 static int alg_accept(struct socket *sock, struct socket *newsock, int flags, in alg_accept() argument 474 return af_alg_accept(sock->sk, newsock, kern); in alg_accept()
|
/linux-6.6.21/include/net/ |
D | inet_common.h | 32 int inet_accept(struct socket *sock, struct socket *newsock, int flags, 34 void __inet_accept(struct socket *sock, struct socket *newsock,
|
/linux-6.6.21/net/sunrpc/ |
D | svcsock.c | 887 struct socket *newsock; in svc_tcp_accept() local 895 err = kernel_accept(sock, &newsock, O_NONBLOCK); in svc_tcp_accept() 901 if (IS_ERR(sock_alloc_file(newsock, O_NONBLOCK, NULL))) in svc_tcp_accept() 906 err = kernel_getpeername(newsock, sin); in svc_tcp_accept() 914 newsock->sk->sk_state_change = svsk->sk_ostate; in svc_tcp_accept() 915 newsock->sk->sk_data_ready = svsk->sk_odata; in svc_tcp_accept() 916 newsock->sk->sk_write_space = svsk->sk_owspace; in svc_tcp_accept() 921 newsock->sk->sk_sndtimeo = HZ*30; in svc_tcp_accept() 923 newsvsk = svc_setup_socket(serv, newsock, in svc_tcp_accept() 928 err = kernel_getsockname(newsock, sin); in svc_tcp_accept() [all …]
|
/linux-6.6.21/net/tipc/ |
D | topsrv.c | 458 struct socket *newsock, *lsock; in tipc_topsrv_accept() local 472 ret = kernel_accept(lsock, &newsock, O_NONBLOCK); in tipc_topsrv_accept() 475 con = tipc_conn_alloc(srv, newsock); in tipc_topsrv_accept() 478 sock_release(newsock); in tipc_topsrv_accept() 482 newsk = newsock->sk; in tipc_topsrv_accept()
|
/linux-6.6.21/net/nfc/ |
D | llcp_sock.c | 409 struct socket *newsock) in nfc_llcp_accept_dequeue() argument 427 if (sk->sk_state == LLCP_CONNECTED || !newsock) { in nfc_llcp_accept_dequeue() 431 if (newsock) in nfc_llcp_accept_dequeue() 432 sock_graft(sk, newsock); in nfc_llcp_accept_dequeue() 449 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, in llcp_sock_accept() argument 470 while (!(new_sk = nfc_llcp_accept_dequeue(sk, newsock))) { in llcp_sock_accept() 493 newsock->state = SS_CONNECTED; in llcp_sock_accept()
|
D | llcp.h | 218 struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
|
/linux-6.6.21/drivers/xen/ |
D | pvcalls-front.h | 14 struct socket *newsock,
|
D | pvcalls-front.c | 772 int pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags) in pvcalls_front_accept() argument 884 map2->sock = newsock; in pvcalls_front_accept() 885 newsock->sk = sk_alloc(sock_net(sock->sk), PF_INET, GFP_KERNEL, &pvcalls_proto, false); in pvcalls_front_accept() 886 if (!newsock->sk) { in pvcalls_front_accept() 895 newsock->sk->sk_send_head = (void *)map2; in pvcalls_front_accept()
|
/linux-6.6.21/net/atm/ |
D | svc.c | 327 static int svc_accept(struct socket *sock, struct socket *newsock, int flags, in svc_accept() argument 339 error = svc_create(sock_net(sk), newsock, 0, kern); in svc_accept() 343 new_vcc = ATM_SD(newsock); in svc_accept() 385 error = vcc_connect(newsock, msg->pvc.sap_addr.itf, in svc_accept() 420 newsock->state = SS_CONNECTED; in svc_accept()
|
/linux-6.6.21/fs/dlm/ |
D | lowcomms.c | 981 struct socket *newsock; in accept_from_sock() local 984 result = kernel_accept(listen_con.sock, &newsock, O_NONBLOCK); in accept_from_sock() 992 len = newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, 2); in accept_from_sock() 1023 sock_release(newsock); in accept_from_sock() 1042 sock_set_mark(newsock->sk, mark); in accept_from_sock() 1068 add_sock(newsock, othercon); in accept_from_sock() 1080 add_sock(newsock, newcon); in accept_from_sock() 1093 if (newsock) in accept_from_sock() 1094 sock_release(newsock); in accept_from_sock()
|
/linux-6.6.21/net/kcm/ |
D | kcmsock.c | 1501 struct socket *newsock; in kcm_clone() local 1504 newsock = sock_alloc(); in kcm_clone() 1505 if (!newsock) in kcm_clone() 1508 newsock->type = osock->type; in kcm_clone() 1509 newsock->ops = osock->ops; in kcm_clone() 1511 __module_get(newsock->ops->owner); in kcm_clone() 1516 sock_release(newsock); in kcm_clone() 1519 sock_init_data(newsock, newsk); in kcm_clone() 1522 return sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name); in kcm_clone()
|
/linux-6.6.21/net/bluetooth/ |
D | af_bluetooth.c | 241 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) in bt_accept_dequeue() argument 281 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue() 284 if (newsock) in bt_accept_dequeue() 285 sock_graft(sk, newsock); in bt_accept_dequeue()
|
D | sco.c | 644 static int sco_sock_accept(struct socket *sock, struct socket *newsock, in sco_sock_accept() argument 666 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept() 690 newsock->state = SS_CONNECTED; in sco_sock_accept()
|
/linux-6.6.21/net/ |
D | socket.c | 1901 struct socket *sock, *newsock; in do_accept() local 1911 newsock = sock_alloc(); in do_accept() 1912 if (!newsock) in do_accept() 1916 newsock->type = sock->type; in do_accept() 1917 newsock->ops = ops; in do_accept() 1925 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in do_accept() 1929 err = security_socket_accept(sock, newsock); in do_accept() 1933 err = ops->accept(sock, newsock, sock->file->f_flags | file_flags, in do_accept() 1939 len = ops->getname(newsock, (struct sockaddr *)&address, 2); in do_accept() 3555 int kernel_accept(struct socket *sock, struct socket **newsock, int flags) in kernel_accept() argument [all …]
|
/linux-6.6.21/include/linux/ |
D | net.h | 174 struct socket *newsock, int flags, bool kern); 335 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
|
/linux-6.6.21/net/phonet/ |
D | socket.c | 294 static int pn_socket_accept(struct socket *sock, struct socket *newsock, in pn_socket_accept() argument 309 sock_graft(newsk, newsock); in pn_socket_accept() 310 newsock->state = SS_CONNECTED; in pn_socket_accept()
|
/linux-6.6.21/include/crypto/ |
D | if_alg.h | 167 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern);
|
/linux-6.6.21/net/iucv/ |
D | af_iucv.c | 90 struct socket *newsock); 520 struct socket *newsock) in iucv_accept_dequeue() argument 537 !newsock) { in iucv_accept_dequeue() 539 if (newsock) in iucv_accept_dequeue() 540 sock_graft(sk, newsock); in iucv_accept_dequeue() 797 static int iucv_sock_accept(struct socket *sock, struct socket *newsock, in iucv_sock_accept() argument 816 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept() 844 newsock->state = SS_CONNECTED; in iucv_sock_accept()
|
/linux-6.6.21/net/ipv4/ |
D | af_inet.c | 755 void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk) in __inet_accept() argument 763 set_bit(SOCK_SUPPORT_ZC, &newsock->flags); in __inet_accept() 764 sock_graft(newsk, newsock); in __inet_accept() 766 newsock->state = SS_CONNECTED; in __inet_accept() 773 int inet_accept(struct socket *sock, struct socket *newsock, int flags, in inet_accept() argument 785 __inet_accept(sock, newsock, sk2); in inet_accept()
|
/linux-6.6.21/net/bluetooth/rfcomm/ |
D | sock.c | 471 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags, in rfcomm_sock_accept() argument 498 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept() 523 newsock->state = SS_CONNECTED; in rfcomm_sock_accept()
|
/linux-6.6.21/drivers/nvme/target/ |
D | tcp.c | 1636 struct socket *newsock) in nvmet_tcp_alloc_queue() argument 1647 queue->sock = newsock; in nvmet_tcp_alloc_queue() 1699 struct socket *newsock; in nvmet_tcp_accept_work() local 1703 ret = kernel_accept(port->sock, &newsock, O_NONBLOCK); in nvmet_tcp_accept_work() 1709 ret = nvmet_tcp_alloc_queue(port, newsock); in nvmet_tcp_accept_work() 1712 sock_release(newsock); in nvmet_tcp_accept_work()
|
/linux-6.6.21/net/rds/ |
D | tcp.c | 145 goto newsock; in rds_tcp_reset_callbacks() 182 newsock: in rds_tcp_reset_callbacks()
|
/linux-6.6.21/net/llc/ |
D | af_llc.c | 697 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags, in llc_ui_accept() argument 729 llc_ui_sk_init(newsock, newsk); in llc_ui_accept() 732 newsock->state = SS_CONNECTED; in llc_ui_accept()
|
/linux-6.6.21/security/apparmor/ |
D | lsm.c | 1005 static int apparmor_socket_accept(struct socket *sock, struct socket *newsock) in apparmor_socket_accept() argument 1009 AA_BUG(!newsock); in apparmor_socket_accept() 1013 accept_perm(sock, newsock), in apparmor_socket_accept()
|