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

12

/linux-master/drivers/xen/
H A Dpvcalls-front.h14 struct socket *newsock,
H A Dpvcalls-front.c772 int pvcalls_front_accept(struct socket *sock, struct socket *newsock, int flags) argument
884 map2->sock = newsock;
885 newsock->sk = sk_alloc(sock_net(sock->sk), PF_INET, GFP_KERNEL, &pvcalls_proto, false);
886 if (!newsock->sk) {
895 newsock->sk->sk_send_head = (void *)map2;
/linux-master/include/net/
H A 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-master/crypto/
H A Dalgif_hash.c226 static int hash_accept(struct socket *sock, struct socket *newsock, int flags, argument
255 err = af_alg_accept(ask->parent, newsock, kern);
259 sk2 = newsock->sk;
357 static int hash_accept_nokey(struct socket *sock, struct socket *newsock, argument
366 return hash_accept(sock, newsock, flags, kern);
H A Daf_alg.c410 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern) argument
430 sock_init_data(newsock, sk2);
431 security_sock_graft(sk2, newsock);
435 * newsock->ops assigned here to allow type->accept call to override
438 newsock->ops = type->ops;
457 newsock->state = SS_CONNECTED;
460 newsock->ops = type->ops_nokey;
471 static int alg_accept(struct socket *sock, struct socket *newsock, int flags, argument
474 return af_alg_accept(sock->sk, newsock, kern);
/linux-master/net/tipc/
H A Dtopsrv.c458 struct socket *newsock, *lsock; local
472 ret = kernel_accept(lsock, &newsock, O_NONBLOCK);
475 con = tipc_conn_alloc(srv, newsock);
478 sock_release(newsock);
482 newsk = newsock->sk;
/linux-master/net/atm/
H A Dsvc.c327 static int svc_accept(struct socket *sock, struct socket *newsock, int flags, argument
339 error = svc_create(sock_net(sk), newsock, 0, kern);
343 new_vcc = ATM_SD(newsock);
385 error = vcc_connect(newsock, msg->pvc.sap_addr.itf,
420 newsock->state = SS_CONNECTED;
/linux-master/net/nfc/
H A Dllcp_sock.c409 struct socket *newsock)
427 if (sk->sk_state == LLCP_CONNECTED || !newsock) {
431 if (newsock)
432 sock_graft(sk, newsock);
449 static int llcp_sock_accept(struct socket *sock, struct socket *newsock, argument
470 while (!(new_sk = nfc_llcp_accept_dequeue(sk, newsock))) {
493 newsock->state = SS_CONNECTED;
408 nfc_llcp_accept_dequeue(struct sock *parent, struct socket *newsock) argument
H A Dllcp.h218 struct sock *nfc_llcp_accept_dequeue(struct sock *sk, struct socket *newsock);
/linux-master/net/sunrpc/
H A Dsvcsock.c887 struct socket *newsock; local
895 err = kernel_accept(sock, &newsock, O_NONBLOCK);
901 if (IS_ERR(sock_alloc_file(newsock, O_NONBLOCK, NULL)))
906 err = kernel_getpeername(newsock, sin);
914 newsock->sk->sk_state_change = svsk->sk_ostate;
915 newsock->sk->sk_data_ready = svsk->sk_odata;
916 newsock->sk->sk_write_space = svsk->sk_owspace;
921 newsock->sk->sk_sndtimeo = HZ*30;
923 newsvsk = svc_setup_socket(serv, newsock,
928 err = kernel_getsockname(newsock, si
[all...]
/linux-master/include/crypto/
H A Dif_alg.h169 int af_alg_accept(struct sock *sk, struct socket *newsock, bool kern);
/linux-master/net/bluetooth/
H A Daf_bluetooth.c241 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock) argument
281 if (sk->sk_state == BT_CONNECTED || !newsock ||
284 if (newsock)
285 sock_graft(sk, newsock);
H A Dsco.c645 static int sco_sock_accept(struct socket *sock, struct socket *newsock, argument
667 ch = bt_accept_dequeue(sk, newsock);
691 newsock->state = SS_CONNECTED;
/linux-master/include/linux/
H A Dnet.h174 struct socket *newsock, int flags, bool kern);
332 int kernel_accept(struct socket *sock, struct socket **newsock, int flags);
/linux-master/fs/dlm/
H A Dlowcomms.c990 struct socket *newsock; local
993 result = kernel_accept(listen_con.sock, &newsock, O_NONBLOCK);
1001 len = newsock->ops->getname(newsock, (struct sockaddr *)&peeraddr, 2);
1032 sock_release(newsock);
1051 sock_set_mark(newsock->sk, mark);
1077 add_sock(newsock, othercon);
1089 add_sock(newsock, newcon);
1102 if (newsock)
1103 sock_release(newsock);
[all...]
/linux-master/net/kcm/
H A Dkcmsock.c1503 struct socket *newsock; local
1506 newsock = sock_alloc();
1507 if (!newsock)
1510 newsock->type = osock->type;
1511 newsock->ops = osock->ops;
1513 __module_get(newsock->ops->owner);
1518 sock_release(newsock);
1521 sock_init_data(newsock, newsk);
1524 return sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name);
/linux-master/net/phonet/
H A Dsocket.c294 static int pn_socket_accept(struct socket *sock, struct socket *newsock, argument
309 sock_graft(newsk, newsock);
310 newsock->state = SS_CONNECTED;
/linux-master/net/
H A Dsocket.c1897 struct socket *sock, *newsock; local
1907 newsock = sock_alloc();
1908 if (!newsock)
1912 newsock->type = sock->type;
1913 newsock->ops = ops;
1921 newfile = sock_alloc_file(newsock, flags, sock->sk->sk_prot_creator->name);
1925 err = security_socket_accept(sock, newsock);
1929 err = ops->accept(sock, newsock, sock->file->f_flags | file_flags,
1935 len = ops->getname(newsock, (struct sockaddr *)&address, 2);
3571 * @newsock
3579 kernel_accept(struct socket *sock, struct socket **newsock, int flags) argument
[all...]
/linux-master/net/ipv4/
H A Daf_inet.c756 void __inet_accept(struct socket *sock, struct socket *newsock, struct sock *newsk) argument
764 set_bit(SOCK_SUPPORT_ZC, &newsock->flags);
765 sock_graft(newsk, newsock);
767 newsock->state = SS_CONNECTED;
774 int inet_accept(struct socket *sock, struct socket *newsock, int flags, argument
786 __inet_accept(sock, newsock, sk2);
/linux-master/net/rds/
H A Dtcp.c145 goto newsock;
182 newsock:
/linux-master/net/iucv/
H A Daf_iucv.c90 struct socket *newsock);
520 struct socket *newsock)
537 !newsock) {
539 if (newsock)
540 sock_graft(sk, newsock);
797 static int iucv_sock_accept(struct socket *sock, struct socket *newsock, argument
816 while (!(nsk = iucv_accept_dequeue(sk, newsock))) {
844 newsock->state = SS_CONNECTED;
519 iucv_accept_dequeue(struct sock *parent, struct socket *newsock) argument
/linux-master/net/llc/
H A Daf_llc.c690 * @newsock: Socket to move incoming connection to.
697 static int llc_ui_accept(struct socket *sock, struct socket *newsock, int flags, argument
729 llc_ui_sk_init(newsock, newsk);
732 newsock->state = SS_CONNECTED;
/linux-master/net/bluetooth/rfcomm/
H A Dsock.c471 static int rfcomm_sock_accept(struct socket *sock, struct socket *newsock, int flags, argument
498 nsk = bt_accept_dequeue(sk, newsock);
523 newsock->state = SS_CONNECTED;
/linux-master/drivers/nvme/target/
H A Dtcp.c1876 struct socket *newsock)
1891 queue->sock = newsock;
1973 sock_release(newsock);
1980 struct socket *newsock; local
1984 ret = kernel_accept(port->sock, &newsock, O_NONBLOCK);
1990 nvmet_tcp_alloc_queue(port, newsock);
1875 nvmet_tcp_alloc_queue(struct nvmet_tcp_port *port, struct socket *newsock) argument
/linux-master/include/net/bluetooth/
H A Dbluetooth.h419 struct sock *bt_accept_dequeue(struct sock *parent, struct socket *newsock);

Completed in 258 milliseconds

12