/linux-6.12.1/crypto/ |
D | algif_hash.c | 226 static int hash_accept(struct socket *sock, struct socket *newsock, in hash_accept() argument 255 err = af_alg_accept(ask->parent, newsock, arg); 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, arg); in hash_accept_nokey()
|
D | af_alg.c | 410 int af_alg_accept(struct sock *sk, struct socket *newsock, in af_alg_accept() argument 431 sock_init_data(newsock, sk2); in af_alg_accept() 432 security_sock_graft(sk2, newsock); in af_alg_accept() 439 newsock->ops = type->ops; in af_alg_accept() 458 newsock->state = SS_CONNECTED; in af_alg_accept() 461 newsock->ops = type->ops_nokey; in af_alg_accept() 472 static int alg_accept(struct socket *sock, struct socket *newsock, in alg_accept() argument 475 return af_alg_accept(sock->sk, newsock, arg); in alg_accept()
|
/linux-6.12.1/include/net/ |
D | inet_common.h | 32 int inet_accept(struct socket *sock, struct socket *newsock, 34 void __inet_accept(struct socket *sock, struct socket *newsock,
|
/linux-6.12.1/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.12.1/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.12.1/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.12.1/fs/dlm/ |
D | lowcomms.c | 985 struct socket *newsock; in accept_from_sock() local 988 result = kernel_accept(listen_con.sock, &newsock, O_NONBLOCK); in accept_from_sock() 996 len = newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, 2); in accept_from_sock() 1027 sock_release(newsock); in accept_from_sock() 1046 sock_set_mark(newsock->sk, mark); in accept_from_sock() 1072 add_sock(newsock, othercon); in accept_from_sock() 1084 add_sock(newsock, newcon); in accept_from_sock() 1097 if (newsock) in accept_from_sock() 1098 sock_release(newsock); in accept_from_sock()
|
/linux-6.12.1/net/atm/ |
D | svc.c | 327 static int svc_accept(struct socket *sock, struct socket *newsock, in svc_accept() argument 339 error = svc_create(sock_net(sk), newsock, 0, arg->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.12.1/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.12.1/net/kcm/ |
D | kcmsock.c | 1507 struct socket *newsock; in kcm_clone() local 1510 newsock = sock_alloc(); in kcm_clone() 1511 if (!newsock) in kcm_clone() 1514 newsock->type = osock->type; in kcm_clone() 1515 newsock->ops = osock->ops; in kcm_clone() 1517 __module_get(newsock->ops->owner); in kcm_clone() 1522 sock_release(newsock); in kcm_clone() 1525 sock_init_data(newsock, newsk); in kcm_clone() 1528 return sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name); in kcm_clone()
|
/linux-6.12.1/net/bluetooth/ |
D | af_bluetooth.c | 263 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) in bt_accept_dequeue() argument 303 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue() 306 if (newsock) in bt_accept_dequeue() 307 sock_graft(sk, newsock); in bt_accept_dequeue()
|
D | sco.c | 655 static int sco_sock_accept(struct socket *sock, struct socket *newsock, in sco_sock_accept() argument 677 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept() 701 newsock->state = SS_CONNECTED; in sco_sock_accept()
|
/linux-6.12.1/net/ |
D | socket.c | 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 [all …]
|
/linux-6.12.1/include/linux/ |
D | net.h | 175 struct socket *newsock, 353 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
|
/linux-6.12.1/net/phonet/ |
D | socket.c | 294 static int pn_socket_accept(struct socket *sock, struct socket *newsock, in pn_socket_accept() argument 308 sock_graft(newsk, newsock); in pn_socket_accept() 309 newsock->state = SS_CONNECTED; in pn_socket_accept()
|
/linux-6.12.1/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.12.1/include/crypto/ |
D | if_alg.h | 169 int af_alg_accept(struct sock *sk, struct socket *newsock,
|
/linux-6.12.1/net/ipv4/ |
D | af_inet.c | 756 void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk) in __inet_accept() argument 766 set_bit(SOCK_SUPPORT_ZC, &newsock->flags); in __inet_accept() 767 sock_graft(newsk, newsock); in __inet_accept() 769 newsock->state = SS_CONNECTED; in __inet_accept() 776 int inet_accept(struct socket *sock, struct socket *newsock, in inet_accept() argument 788 __inet_accept(sock, newsock, sk2); in inet_accept()
|
/linux-6.12.1/net/bluetooth/rfcomm/ |
D | sock.c | 471 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, 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.12.1/net/rds/ |
D | tcp.c | 144 goto newsock; in rds_tcp_reset_callbacks() 181 newsock: in rds_tcp_reset_callbacks()
|
/linux-6.12.1/drivers/nvme/target/ |
D | tcp.c | 1873 struct socket *newsock) in nvmet_tcp_alloc_queue() argument 1888 queue->sock = newsock; in nvmet_tcp_alloc_queue() 1970 sock_release(newsock); in nvmet_tcp_alloc_queue() 1977 struct socket *newsock; in nvmet_tcp_accept_work() local 1981 ret = kernel_accept(port->sock, &newsock, O_NONBLOCK); in nvmet_tcp_accept_work() 1987 nvmet_tcp_alloc_queue(port, newsock); in nvmet_tcp_accept_work()
|
/linux-6.12.1/net/llc/ |
D | af_llc.c | 696 static int llc_ui_accept(struct socket *sock, struct socket *newsock, in llc_ui_accept() argument 728 llc_ui_sk_init(newsock, newsk); in llc_ui_accept() 731 newsock->state = SS_CONNECTED; in llc_ui_accept()
|
/linux-6.12.1/net/x25/ |
D | af_x25.c | 874 static int x25_accept(struct socket *sock, struct socket *newsock, in x25_accept() argument 902 sock_graft(newsk, newsock); in x25_accept() 908 newsock->state = SS_CONNECTED; in x25_accept()
|