Home
last modified time | relevance | path

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

12

/net/tipc/
Dserver.c278 struct socket *newsock; in tipc_accept_from_sock() local
282 ret = tipc_sock_accept_local(sock, &newsock, O_NONBLOCK); in tipc_accept_from_sock()
289 sock_release(newsock); in tipc_accept_from_sock()
294 tipc_register_callbacks(newsock, newcon); in tipc_accept_from_sock()
300 newsock->sk->sk_data_ready(newsock->sk); in tipc_accept_from_sock()
Dcore.h100 int tipc_sock_accept_local(struct socket *sock, struct socket **newsock,
Dsocket.c417 int tipc_sock_accept_local(struct socket *sock, struct socket **newsock, in tipc_sock_accept_local() argument
424 sk->sk_protocol, newsock); in tipc_sock_accept_local()
428 ret = tipc_accept(sock, *newsock, flags); in tipc_sock_accept_local()
430 sock_release(*newsock); in tipc_sock_accept_local()
433 (*newsock)->ops = sock->ops; in tipc_sock_accept_local()
/net/nfc/
Dllcp_sock.c404 struct socket *newsock) in nfc_llcp_accept_dequeue() argument
422 if (sk->sk_state == LLCP_CONNECTED || !newsock) { in nfc_llcp_accept_dequeue()
426 if (newsock) in nfc_llcp_accept_dequeue()
427 sock_graft(sk, newsock); in nfc_llcp_accept_dequeue()
444 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, in llcp_sock_accept() argument
465 while (!(new_sk = nfc_llcp_accept_dequeue(sk, newsock))) { in llcp_sock_accept()
488 newsock->state = SS_CONNECTED; in llcp_sock_accept()
Dllcp.h232 struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
/net/
Dsocket.c1603 struct socket *sock, *newsock; in SYSCALL_DEFINE4() local
1619 newsock = sock_alloc(); in SYSCALL_DEFINE4()
1620 if (!newsock) in SYSCALL_DEFINE4()
1623 newsock->type = sock->type; in SYSCALL_DEFINE4()
1624 newsock->ops = sock->ops; in SYSCALL_DEFINE4()
1630 __module_get(newsock->ops->owner); in SYSCALL_DEFINE4()
1635 sock_release(newsock); in SYSCALL_DEFINE4()
1638 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in SYSCALL_DEFINE4()
1642 sock_release(newsock); in SYSCALL_DEFINE4()
1646 err = security_socket_accept(sock, newsock); in SYSCALL_DEFINE4()
[all …]
/net/atm/
Dsvc.c321 static int svc_accept(struct socket *sock, struct socket *newsock, int flags) in svc_accept() argument
332 error = svc_create(sock_net(sk), newsock, 0, 0); in svc_accept()
336 new_vcc = ATM_SD(newsock); in svc_accept()
378 error = vcc_connect(newsock, msg->pvc.sap_addr.itf, in svc_accept()
413 newsock->state = SS_CONNECTED; in svc_accept()
/net/bluetooth/
Daf_bluetooth.c204 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) in bt_accept_dequeue() argument
223 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
226 if (newsock) in bt_accept_dequeue()
227 sock_graft(sk, newsock); in bt_accept_dequeue()
Dsco.c622 static int sco_sock_accept(struct socket *sock, struct socket *newsock, int flags) in sco_sock_accept() argument
645 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
669 newsock->state = SS_CONNECTED; in sco_sock_accept()
Dl2cap_sock.c296 static int l2cap_sock_accept(struct socket *sock, struct socket *newsock, in l2cap_sock_accept() argument
320 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept()
344 newsock->state = SS_CONNECTED; in l2cap_sock_accept()
/net/sunrpc/
Dsvcsock.c840 struct socket *newsock; in svc_tcp_accept() local
850 err = kernel_accept(sock, &newsock, O_NONBLOCK); in svc_tcp_accept()
862 err = kernel_getpeername(newsock, sin, &slen); in svc_tcp_accept()
884 newsock->sk->sk_sndtimeo = HZ*30; in svc_tcp_accept()
886 newsvsk = svc_setup_socket(serv, newsock, in svc_tcp_accept()
891 err = kernel_getsockname(newsock, sin, &slen); in svc_tcp_accept()
898 if (sock_is_loopback(newsock->sk)) in svc_tcp_accept()
908 sock_release(newsock); in svc_tcp_accept()
/net/phonet/
Dsocket.c303 static int pn_socket_accept(struct socket *sock, struct socket *newsock, in pn_socket_accept() argument
318 sock_graft(newsk, newsock); in pn_socket_accept()
319 newsock->state = SS_CONNECTED; in pn_socket_accept()
/net/iucv/
Daf_iucv.c654 struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock) in iucv_accept_dequeue() argument
671 !newsock) { in iucv_accept_dequeue()
673 if (newsock) in iucv_accept_dequeue()
674 sock_graft(sk, newsock); in iucv_accept_dequeue()
927 static int iucv_sock_accept(struct socket *sock, struct socket *newsock, in iucv_sock_accept() argument
946 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept()
974 newsock->state = SS_CONNECTED; in iucv_sock_accept()
/net/bluetooth/rfcomm/
Dsock.c473 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags) in rfcomm_sock_accept() argument
501 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept()
525 newsock->state = SS_CONNECTED; in rfcomm_sock_accept()
/net/llc/
Daf_llc.c646 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) in llc_ui_accept() argument
677 llc_ui_sk_init(newsock, newsk); in llc_ui_accept()
680 newsock->state = SS_CONNECTED; in llc_ui_accept()
/net/irda/
Daf_irda.c840 static int irda_accept(struct socket *sock, struct socket *newsock, int flags) in irda_accept() argument
850 err = irda_create(sock_net(sk), newsock, sk->sk_protocol, 0); in irda_accept()
901 newsk = newsock->sk; in irda_accept()
937 newsock->state = SS_CONNECTED; in irda_accept()
/net/vmw_vsock/
Daf_vsock.c1240 static int vsock_accept(struct socket *sock, struct socket *newsock, int flags) in vsock_accept() argument
1310 newsock->state = SS_CONNECTED; in vsock_accept()
1311 sock_graft(connected, newsock); in vsock_accept()
/net/x25/
Daf_x25.c855 static int x25_accept(struct socket *sock, struct socket *newsock, int flags) in x25_accept() argument
882 sock_graft(newsk, newsock); in x25_accept()
888 newsock->state = SS_CONNECTED; in x25_accept()
/net/ipv4/
Daf_inet.c687 int inet_accept(struct socket *sock, struct socket *newsock, int flags) in inet_accept() argument
703 sock_graft(sk2, newsock); in inet_accept()
705 newsock->state = SS_CONNECTED; in inet_accept()
/net/ax25/
Daf_ax25.c1323 static int ax25_accept(struct socket *sock, struct socket *newsock, int flags) in ax25_accept() argument
1377 sock_graft(newsk, newsock); in ax25_accept()
1382 newsock->state = SS_CONNECTED; in ax25_accept()
/net/unix/
Daf_unix.c1384 static int unix_accept(struct socket *sock, struct socket *newsock, int flags) in unix_accept() argument
1417 newsock->state = SS_CONNECTED; in unix_accept()
1418 unix_sock_inherit_flags(sock, newsock); in unix_accept()
1419 sock_graft(tsk, newsock); in unix_accept()
/net/netrom/
Daf_netrom.c768 static int nr_accept(struct socket *sock, struct socket *newsock, int flags) in nr_accept() argument
818 sock_graft(newsk, newsock); in nr_accept()
/net/rose/
Daf_rose.c874 static int rose_accept(struct socket *sock, struct socket *newsock, int flags) in rose_accept() argument
925 sock_graft(newsk, newsock); in rose_accept()
/net/sctp/
Dsocket.c4513 struct socket *newsock; in sctp_getsockopt_peeloff() local
4523 retval = sctp_do_peeloff(sk, peeloff.associd, &newsock); in sctp_getsockopt_peeloff()
4530 sock_release(newsock); in sctp_getsockopt_peeloff()
4534 newfile = sock_alloc_file(newsock, 0, NULL); in sctp_getsockopt_peeloff()
4537 sock_release(newsock); in sctp_getsockopt_peeloff()
4541 pr_debug("%s: sk:%p, newsk:%p, sd:%d\n", __func__, sk, newsock->sk, in sctp_getsockopt_peeloff()
/net/decnet/
Daf_decnet.c1073 static int dn_accept(struct socket *sock, struct socket *newsock, int flags) in dn_accept() argument
1102 newsk = dn_alloc_sock(sock_net(sk), newsock, sk->sk_allocation); in dn_accept()

12