Home
last modified time | relevance | path

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

/linux-4.1.27/drivers/staging/lustre/lnet/lnet/
Dacceptor.c335 struct socket *newsock; in lnet_acceptor() local
370 rc = libcfs_sock_accept(&newsock, lnet_acceptor_state.pta_sock); in lnet_acceptor()
382 libcfs_sock_release(newsock); in lnet_acceptor()
386 rc = libcfs_sock_getaddr(newsock, 1, &peer_ip, &peer_port); in lnet_acceptor()
398 rc = libcfs_sock_read(newsock, &magic, sizeof(magic), in lnet_acceptor()
406 rc = lnet_accept(newsock, magic); in lnet_acceptor()
413 libcfs_sock_release(newsock); in lnet_acceptor()
/linux-4.1.27/crypto/
Daf_alg.c266 int af_alg_accept(struct sock *sk, struct socket *newsock) in af_alg_accept() argument
286 sock_init_data(newsock, sk2); in af_alg_accept()
287 sock_graft(sk2, newsock); in af_alg_accept()
308 newsock->ops = type->ops; in af_alg_accept()
309 newsock->state = SS_CONNECTED; in af_alg_accept()
312 newsock->ops = type->ops_nokey; in af_alg_accept()
323 static int alg_accept(struct socket *sock, struct socket *newsock, int flags) in alg_accept() argument
325 return af_alg_accept(sock->sk, newsock); in alg_accept()
Dalgif_hash.c181 static int hash_accept(struct socket *sock, struct socket *newsock, int flags) in hash_accept() argument
197 err = af_alg_accept(ask->parent, newsock); in hash_accept()
201 sk2 = newsock->sk; in hash_accept()
311 static int hash_accept_nokey(struct socket *sock, struct socket *newsock, in hash_accept_nokey() argument
320 return hash_accept(sock, newsock, flags); in hash_accept_nokey()
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/
Dlinux-tcpip.c531 struct socket *newsock; in libcfs_sock_accept() local
538 rc = sock_create_lite(PF_PACKET, sock->type, IPPROTO_TCP, &newsock); in libcfs_sock_accept()
544 newsock->ops = sock->ops; in libcfs_sock_accept()
546 rc = sock->ops->accept(sock, newsock, O_NONBLOCK); in libcfs_sock_accept()
554 rc = sock->ops->accept(sock, newsock, O_NONBLOCK); in libcfs_sock_accept()
560 *newsockp = newsock; in libcfs_sock_accept()
564 sock_release(newsock); in libcfs_sock_accept()
/linux-4.1.27/net/tipc/
Dserver.c292 struct socket *newsock; in tipc_accept_from_sock() local
296 ret = kernel_accept(sock, &newsock, O_NONBLOCK); in tipc_accept_from_sock()
303 sock_release(newsock); in tipc_accept_from_sock()
308 tipc_register_callbacks(newsock, newcon); in tipc_accept_from_sock()
314 newsock->sk->sk_data_ready(newsock->sk); in tipc_accept_from_sock()
/linux-4.1.27/fs/dlm/
Dlowcomms.c910 struct socket *newsock; in tcp_accept_from_sock() local
925 IPPROTO_TCP, &newsock); in tcp_accept_from_sock()
935 newsock->type = con->sock->type; in tcp_accept_from_sock()
936 newsock->ops = con->sock->ops; in tcp_accept_from_sock()
938 result = con->sock->ops->accept(con->sock, newsock, O_NONBLOCK); in tcp_accept_from_sock()
944 if (newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, in tcp_accept_from_sock()
957 sock_release(newsock); in tcp_accept_from_sock()
995 othercon->sock = newsock; in tcp_accept_from_sock()
996 newsock->sk->sk_user_data = othercon; in tcp_accept_from_sock()
997 add_sock(newsock, othercon); in tcp_accept_from_sock()
[all …]
/linux-4.1.27/net/nfc/
Dllcp_sock.c402 struct socket *newsock) in nfc_llcp_accept_dequeue() argument
420 if (sk->sk_state == LLCP_CONNECTED || !newsock) { in nfc_llcp_accept_dequeue()
424 if (newsock) in nfc_llcp_accept_dequeue()
425 sock_graft(sk, newsock); in nfc_llcp_accept_dequeue()
442 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, in llcp_sock_accept() argument
463 while (!(new_sk = nfc_llcp_accept_dequeue(sk, newsock))) { in llcp_sock_accept()
486 newsock->state = SS_CONNECTED; in llcp_sock_accept()
Dllcp.h232 struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
/linux-4.1.27/net/
Dsocket.c1437 struct socket *sock, *newsock; in SYSCALL_DEFINE4() local
1453 newsock = sock_alloc(); in SYSCALL_DEFINE4()
1454 if (!newsock) in SYSCALL_DEFINE4()
1457 newsock->type = sock->type; in SYSCALL_DEFINE4()
1458 newsock->ops = sock->ops; in SYSCALL_DEFINE4()
1464 __module_get(newsock->ops->owner); in SYSCALL_DEFINE4()
1469 sock_release(newsock); in SYSCALL_DEFINE4()
1472 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name); in SYSCALL_DEFINE4()
1476 sock_release(newsock); in SYSCALL_DEFINE4()
1480 err = security_socket_accept(sock, newsock); in SYSCALL_DEFINE4()
[all …]
/linux-4.1.27/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()
/linux-4.1.27/include/net/
Dinet_common.h23 int inet_accept(struct socket *sock, struct socket *newsock, int flags);
/linux-4.1.27/include/crypto/
Dif_alg.h76 int af_alg_accept(struct sock *sk, struct socket *newsock);
/linux-4.1.27/net/bluetooth/
Daf_bluetooth.c177 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) in bt_accept_dequeue() argument
196 if (sk->sk_state == BT_CONNECTED || !newsock || in bt_accept_dequeue()
199 if (newsock) in bt_accept_dequeue()
200 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
643 ch = bt_accept_dequeue(sk, newsock); in sco_sock_accept()
667 newsock->state = SS_CONNECTED; in sco_sock_accept()
Dl2cap_sock.c302 static int l2cap_sock_accept(struct socket *sock, struct socket *newsock, in l2cap_sock_accept() argument
324 nsk = bt_accept_dequeue(sk, newsock); in l2cap_sock_accept()
349 newsock->state = SS_CONNECTED; in l2cap_sock_accept()
/linux-4.1.27/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()
/linux-4.1.27/include/linux/
Dnet.h140 struct socket *newsock, int flags);
270 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
Dsecurity.h1687 int (*socket_accept) (struct socket *sock, struct socket *newsock);
2701 int security_socket_accept(struct socket *sock, struct socket *newsock);
2784 struct socket *newsock) in security_socket_accept() argument
/linux-4.1.27/include/net/iucv/
Daf_iucv.h161 struct sock *iucv_accept_dequeue(struct sock *parent, struct socket *newsock);
/linux-4.1.27/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()
/linux-4.1.27/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()
930 static int iucv_sock_accept(struct socket *sock, struct socket *newsock, in iucv_sock_accept() argument
949 while (!(nsk = iucv_accept_dequeue(sk, newsock))) { in iucv_sock_accept()
977 newsock->state = SS_CONNECTED; in iucv_sock_accept()
/linux-4.1.27/net/bluetooth/rfcomm/
Dsock.c469 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags) in rfcomm_sock_accept() argument
495 nsk = bt_accept_dequeue(sk, newsock); in rfcomm_sock_accept()
520 newsock->state = SS_CONNECTED; in rfcomm_sock_accept()
/linux-4.1.27/include/net/bluetooth/
Dbluetooth.h259 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);
/linux-4.1.27/net/llc/
Daf_llc.c645 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags) in llc_ui_accept() argument
676 llc_ui_sk_init(newsock, newsk); in llc_ui_accept()
679 newsock->state = SS_CONNECTED; in llc_ui_accept()
/linux-4.1.27/net/irda/
Daf_irda.c830 static int irda_accept(struct socket *sock, struct socket *newsock, int flags) in irda_accept() argument
838 err = irda_create(sock_net(sk), newsock, sk->sk_protocol, 0); in irda_accept()
889 newsk = newsock->sk; in irda_accept()
925 newsock->state = SS_CONNECTED; in irda_accept()
/linux-4.1.27/net/ipv4/
Daf_inet.c666 int inet_accept(struct socket *sock, struct socket *newsock, int flags) in inet_accept() argument
682 sock_graft(sk2, newsock); in inet_accept()
684 newsock->state = SS_CONNECTED; in inet_accept()
/linux-4.1.27/net/vmw_vsock/
Daf_vsock.c1239 static int vsock_accept(struct socket *sock, struct socket *newsock, int flags) in vsock_accept() argument
1309 newsock->state = SS_CONNECTED; in vsock_accept()
1310 sock_graft(connected, newsock); in vsock_accept()
/linux-4.1.27/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()
/linux-4.1.27/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()
/linux-4.1.27/net/unix/
Daf_unix.c1379 static int unix_accept(struct socket *sock, struct socket *newsock, int flags) in unix_accept() argument
1412 newsock->state = SS_CONNECTED; in unix_accept()
1413 unix_sock_inherit_flags(sock, newsock); in unix_accept()
1414 sock_graft(tsk, newsock); in unix_accept()
/linux-4.1.27/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()
/linux-4.1.27/security/
Dsecurity.c1196 int security_socket_accept(struct socket *sock, struct socket *newsock) in security_socket_accept() argument
1198 return security_ops->socket_accept(sock, newsock); in security_socket_accept()
Dcapability.c638 static int cap_socket_accept(struct socket *sock, struct socket *newsock) in cap_socket_accept() argument
/linux-4.1.27/net/rose/
Daf_rose.c873 static int rose_accept(struct socket *sock, struct socket *newsock, int flags) in rose_accept() argument
924 sock_graft(newsk, newsock); in rose_accept()
/linux-4.1.27/net/sctp/
Dsocket.c4467 struct socket *newsock; in sctp_getsockopt_peeloff() local
4477 retval = sctp_do_peeloff(sk, peeloff.associd, &newsock); in sctp_getsockopt_peeloff()
4484 sock_release(newsock); in sctp_getsockopt_peeloff()
4488 newfile = sock_alloc_file(newsock, 0, NULL); in sctp_getsockopt_peeloff()
4491 sock_release(newsock); in sctp_getsockopt_peeloff()
4495 pr_debug("%s: sk:%p, newsk:%p, sd:%d\n", __func__, sk, newsock->sk, in sctp_getsockopt_peeloff()
/linux-4.1.27/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()
/linux-4.1.27/net/core/
Dsock.c2122 int sock_no_accept(struct socket *sock, struct socket *newsock, int flags) in sock_no_accept() argument
/linux-4.1.27/security/selinux/
Dhooks.c4242 static int selinux_socket_accept(struct socket *sock, struct socket *newsock) in selinux_socket_accept() argument
4252 newisec = SOCK_INODE(newsock)->i_security; in selinux_socket_accept()