Home
last modified time | relevance | path

Searched refs:newsock (Results 1 – 25 of 41) sorted by relevance

12

/Linux-v6.6/crypto/
Dalgif_hash.c225 static int hash_accept(struct socket *sock, struct socket *newsock, int flags, in hash_accept() argument
254 err = af_alg_accept(ask->parent, newsock, kern); in hash_accept()
258 sk2 = newsock->sk; in hash_accept()
356 static int hash_accept_nokey(struct socket *sock, struct socket *newsock, in hash_accept_nokey() argument
365 return hash_accept(sock, newsock, flags, kern); in hash_accept_nokey()
Daf_alg.c410 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-v6.6/include/net/
Dinet_common.h32 int inet_accept(struct socket *sock, struct socket *newsock, int flags,
34 void __inet_accept(struct socket *sock, struct socket *newsock,
/Linux-v6.6/net/sunrpc/
Dsvcsock.c887 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-v6.6/net/tipc/
Dtopsrv.c458 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-v6.6/net/nfc/
Dllcp_sock.c409 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()
Dllcp.h218 struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
/Linux-v6.6/net/atm/
Dsvc.c327 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-v6.6/drivers/xen/
Dpvcalls-front.h14 struct socket *newsock,
Dpvcalls-front.c772 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-v6.6/fs/dlm/
Dlowcomms.c981 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-v6.6/net/kcm/
Dkcmsock.c1501 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-v6.6/net/bluetooth/
Daf_bluetooth.c241 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()
Dsco.c644 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-v6.6/net/
Dsocket.c1899 struct socket *sock, *newsock; in do_accept() local
1909 newsock = sock_alloc(); in do_accept()
1910 if (!newsock) in do_accept()
1914 newsock->type = sock->type; in do_accept()
1915 newsock->ops = ops; in do_accept()
1923 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in do_accept()
1927 err = security_socket_accept(sock, newsock); in do_accept()
1931 err = ops->accept(sock, newsock, sock->file->f_flags | file_flags, in do_accept()
1937 len = ops->getname(newsock, (struct sockaddr *)&address, 2); in do_accept()
3553 int kernel_accept(struct socket *sock, struct socket **newsock, int flags) in kernel_accept() argument
[all …]
/Linux-v6.6/include/linux/
Dnet.h174 struct socket *newsock, int flags, bool kern);
335 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
/Linux-v6.6/net/phonet/
Dsocket.c294 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-v6.6/include/crypto/
Dif_alg.h164 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern);
/Linux-v6.6/net/iucv/
Daf_iucv.c90 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-v6.6/net/ipv4/
Daf_inet.c752 void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk) in __inet_accept() argument
760 set_bit(SOCK_SUPPORT_ZC, &newsock->flags); in __inet_accept()
761 sock_graft(newsk, newsock); in __inet_accept()
763 newsock->state = SS_CONNECTED; in __inet_accept()
770 int inet_accept(struct socket *sock, struct socket *newsock, int flags, in inet_accept() argument
782 __inet_accept(sock, newsock, sk2); in inet_accept()
/Linux-v6.6/net/bluetooth/rfcomm/
Dsock.c471 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-v6.6/drivers/nvme/target/
Dtcp.c1622 struct socket *newsock) in nvmet_tcp_alloc_queue() argument
1633 queue->sock = newsock; in nvmet_tcp_alloc_queue()
1685 struct socket *newsock; in nvmet_tcp_accept_work() local
1689 ret = kernel_accept(port->sock, &newsock, O_NONBLOCK); in nvmet_tcp_accept_work()
1695 ret = nvmet_tcp_alloc_queue(port, newsock); in nvmet_tcp_accept_work()
1698 sock_release(newsock); in nvmet_tcp_accept_work()
/Linux-v6.6/net/rds/
Dtcp.c145 goto newsock; in rds_tcp_reset_callbacks()
182 newsock: in rds_tcp_reset_callbacks()
/Linux-v6.6/net/llc/
Daf_llc.c695 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags, in llc_ui_accept() argument
727 llc_ui_sk_init(newsock, newsk); in llc_ui_accept()
730 newsock->state = SS_CONNECTED; in llc_ui_accept()
/Linux-v6.6/net/x25/
Daf_x25.c874 static int x25_accept(struct socket *sock, struct socket *newsock, int flags, in x25_accept() argument
902 sock_graft(newsk, newsock); in x25_accept()
908 newsock->state = SS_CONNECTED; in x25_accept()

12