Home
last modified time | relevance | path

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

/net/sunrpc/
Dsvcsock.c780 struct socket *newsock; in svc_tcp_accept() local
790 err = kernel_accept(sock, &newsock, O_NONBLOCK); in svc_tcp_accept()
802 err = kernel_getpeername(newsock, sin); in svc_tcp_accept()
823 newsock->sk->sk_state_change = svsk->sk_ostate; in svc_tcp_accept()
824 newsock->sk->sk_data_ready = svsk->sk_odata; in svc_tcp_accept()
825 newsock->sk->sk_write_space = svsk->sk_owspace; in svc_tcp_accept()
830 newsock->sk->sk_sndtimeo = HZ*30; in svc_tcp_accept()
832 newsvsk = svc_setup_socket(serv, newsock, in svc_tcp_accept()
837 err = kernel_getsockname(newsock, sin); in svc_tcp_accept()
845 if (sock_is_loopback(newsock->sk)) in svc_tcp_accept()
[all …]
/net/nfc/
Dllcp_sock.c398 struct socket *newsock) in nfc_llcp_accept_dequeue() argument
416 if (sk->sk_state == LLCP_CONNECTED || !newsock) { in nfc_llcp_accept_dequeue()
420 if (newsock) in nfc_llcp_accept_dequeue()
421 sock_graft(sk, newsock); in nfc_llcp_accept_dequeue()
438 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, in llcp_sock_accept() argument
459 while (!(new_sk = nfc_llcp_accept_dequeue(sk, newsock))) { in llcp_sock_accept()
482 newsock->state = SS_CONNECTED; in llcp_sock_accept()
Dllcp.h220 struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
/net/tipc/
Dtopsrv.c451 struct socket *newsock; in tipc_topsrv_accept() local
457 ret = kernel_accept(lsock, &newsock, O_NONBLOCK); in tipc_topsrv_accept()
463 sock_release(newsock); in tipc_topsrv_accept()
467 newsk = newsock->sk; in tipc_topsrv_accept()
472 con->sock = newsock; in tipc_topsrv_accept()
/net/atm/
Dsvc.c322 static int svc_accept(struct socket *sock, struct socket *newsock, int flags, in svc_accept() argument
334 error = svc_create(sock_net(sk), newsock, 0, kern); in svc_accept()
338 new_vcc = ATM_SD(newsock); in svc_accept()
380 error = vcc_connect(newsock, msg->pvc.sap_addr.itf, in svc_accept()
415 newsock->state = SS_CONNECTED; in svc_accept()
/net/
Dsocket.c1709 struct socket *sock, *newsock; in __sys_accept4() local
1725 newsock = sock_alloc(); in __sys_accept4()
1726 if (!newsock) in __sys_accept4()
1729 newsock->type = sock->type; in __sys_accept4()
1730 newsock->ops = sock->ops; in __sys_accept4()
1736 __module_get(newsock->ops->owner); in __sys_accept4()
1741 sock_release(newsock); in __sys_accept4()
1744 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in __sys_accept4()
1751 err = security_socket_accept(sock, newsock); in __sys_accept4()
1755 err = sock->ops->accept(sock, newsock, sock->file->f_flags, false); in __sys_accept4()
[all …]
/net/bluetooth/
Daf_bluetooth.c194 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) in bt_accept_dequeue() argument
234 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
237 if (newsock) in bt_accept_dequeue()
238 sock_graft(sk, newsock); in bt_accept_dequeue()
Dsco.c628 static int sco_sock_accept(struct socket *sock, struct socket *newsock, in sco_sock_accept() argument
650 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
674 newsock->state = SS_CONNECTED; in sco_sock_accept()
Dl2cap_sock.c304 static int l2cap_sock_accept(struct socket *sock, struct socket *newsock, in l2cap_sock_accept() argument
326 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept()
351 newsock->state = SS_CONNECTED; in l2cap_sock_accept()
/net/kcm/
Dkcmsock.c1662 struct socket *newsock; in kcm_clone() local
1665 newsock = sock_alloc(); in kcm_clone()
1666 if (!newsock) in kcm_clone()
1669 newsock->type = osock->type; in kcm_clone()
1670 newsock->ops = osock->ops; in kcm_clone()
1672 __module_get(newsock->ops->owner); in kcm_clone()
1677 sock_release(newsock); in kcm_clone()
1680 sock_init_data(newsock, newsk); in kcm_clone()
1683 return sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name); in kcm_clone()
/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()
/net/iucv/
Daf_iucv.c682 struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock) in iucv_accept_dequeue() argument
699 !newsock) { in iucv_accept_dequeue()
701 if (newsock) in iucv_accept_dequeue()
702 sock_graft(sk, newsock); in iucv_accept_dequeue()
959 static int iucv_sock_accept(struct socket *sock, struct socket *newsock, in iucv_sock_accept() argument
978 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept()
1006 newsock->state = SS_CONNECTED; in iucv_sock_accept()
/net/bluetooth/rfcomm/
Dsock.c476 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags, in rfcomm_sock_accept() argument
503 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept()
528 newsock->state = SS_CONNECTED; in rfcomm_sock_accept()
/net/rds/
Dtcp.c155 goto newsock; in rds_tcp_reset_callbacks()
192 newsock: in rds_tcp_reset_callbacks()
/net/llc/
Daf_llc.c665 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags, in llc_ui_accept() argument
697 llc_ui_sk_init(newsock, newsk); in llc_ui_accept()
700 newsock->state = SS_CONNECTED; in llc_ui_accept()
/net/x25/
Daf_x25.c865 static int x25_accept(struct socket *sock, struct socket *newsock, int flags, in x25_accept() argument
893 sock_graft(newsk, newsock); in x25_accept()
899 newsock->state = SS_CONNECTED; in x25_accept()
/net/vmw_vsock/
Daf_vsock.c1250 static int vsock_accept(struct socket *sock, struct socket *newsock, int flags, in vsock_accept() argument
1319 newsock->state = SS_CONNECTED; in vsock_accept()
1320 sock_graft(connected, newsock); in vsock_accept()
/net/ax25/
Daf_ax25.c1328 static int ax25_accept(struct socket *sock, struct socket *newsock, int flags, in ax25_accept() argument
1383 sock_graft(newsk, newsock); in ax25_accept()
1388 newsock->state = SS_CONNECTED; in ax25_accept()
/net/ipv4/
Daf_inet.c733 int inet_accept(struct socket *sock, struct socket *newsock, int flags, in inet_accept() argument
750 sock_graft(sk2, newsock); in inet_accept()
752 newsock->state = SS_CONNECTED; in inet_accept()
/net/unix/
Daf_unix.c1431 static int unix_accept(struct socket *sock, struct socket *newsock, int flags, in unix_accept() argument
1465 newsock->state = SS_CONNECTED; in unix_accept()
1466 unix_sock_inherit_flags(sock, newsock); in unix_accept()
1467 sock_graft(tsk, newsock); in unix_accept()
/net/netrom/
Daf_netrom.c743 static int nr_accept(struct socket *sock, struct socket *newsock, int flags, in nr_accept() argument
794 sock_graft(newsk, newsock); in nr_accept()
/net/rose/
Daf_rose.c852 static int rose_accept(struct socket *sock, struct socket *newsock, int flags, in rose_accept() argument
904 sock_graft(newsk, newsock); in rose_accept()
/net/decnet/
Daf_decnet.c1065 static int dn_accept(struct socket *sock, struct socket *newsock, int flags, in dn_accept() argument
1095 newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation, kern); in dn_accept()
/net/sctp/
Dsocket.c5689 struct socket *newsock; in sctp_getsockopt_peeloff_common() local
5692 retval = sctp_do_peeloff(sk, peeloff->associd, &newsock); in sctp_getsockopt_peeloff_common()
5699 sock_release(newsock); in sctp_getsockopt_peeloff_common()
5703 *newfile = sock_alloc_file(newsock, 0, NULL); in sctp_getsockopt_peeloff_common()
5711 pr_debug("%s: sk:%p, newsk:%p, sd:%d\n", __func__, sk, newsock->sk, in sctp_getsockopt_peeloff_common()
/net/core/
Dsock.c2662 int sock_no_accept(struct socket *sock, struct socket *newsock, int flags, in sock_no_accept() argument