Searched refs:osk (Results 1 - 6 of 6) sorted by relevance
/net/netrom/ |
H A D | af_netrom.c | 471 static struct sock *nr_make_new(struct sock *osk) argument 476 if (osk->sk_type != SOCK_SEQPACKET) 479 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot); 487 sk->sk_type = osk->sk_type; 488 sk->sk_priority = osk->sk_priority; 489 sk->sk_protocol = osk->sk_protocol; 490 sk->sk_rcvbuf = osk->sk_rcvbuf; 491 sk->sk_sndbuf = osk->sk_sndbuf; 493 sock_copy_flags(sk, osk); [all...] |
/net/ax25/ |
H A D | af_ax25.c | 879 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) argument 884 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot); 893 switch (osk->sk_type) { 906 sk->sk_type = osk->sk_type; 907 sk->sk_priority = osk->sk_priority; 908 sk->sk_protocol = osk->sk_protocol; 909 sk->sk_rcvbuf = osk->sk_rcvbuf; 910 sk->sk_sndbuf = osk->sk_sndbuf; 912 sock_copy_flags(sk, osk); [all...] |
/net/x25/ |
H A D | af_x25.c | 597 static struct sock *x25_make_new(struct sock *osk) argument 602 if (osk->sk_type != SOCK_SEQPACKET) 605 if ((sk = x25_alloc_socket(sock_net(osk))) == NULL) 610 sk->sk_type = osk->sk_type; 611 sk->sk_priority = osk->sk_priority; 612 sk->sk_protocol = osk->sk_protocol; 613 sk->sk_rcvbuf = osk->sk_rcvbuf; 614 sk->sk_sndbuf = osk->sk_sndbuf; 616 sk->sk_backlog_rcv = osk->sk_backlog_rcv; 617 sock_copy_flags(sk, osk); [all...] |
/net/rose/ |
H A D | af_rose.c | 554 static struct sock *rose_make_new(struct sock *osk) argument 559 if (osk->sk_type != SOCK_SEQPACKET) 562 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto); 576 sk->sk_type = osk->sk_type; 577 sk->sk_priority = osk->sk_priority; 578 sk->sk_protocol = osk->sk_protocol; 579 sk->sk_rcvbuf = osk->sk_rcvbuf; 580 sk->sk_sndbuf = osk->sk_sndbuf; 582 sock_copy_flags(sk, osk); 587 orose = rose_sk(osk); [all...] |
/net/core/ |
H A D | sock.c | 1245 * Copy all fields from osk to nsk but nsk->sk_refcnt must not change yet, 1249 static void sock_copy(struct sock *nsk, const struct sock *osk) argument 1254 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); 1256 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, 1257 osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); 1261 security_sk_clone(osk, nsk);
|
/net/unix/ |
H A D | af_unix.c | 174 static inline int unix_our_peer(struct sock *sk, struct sock *osk) argument 176 return unix_peer(osk) == sk; 179 static inline int unix_may_send(struct sock *sk, struct sock *osk) argument 181 return unix_peer(osk) == NULL || unix_our_peer(sk, osk);
|
Completed in 158 milliseconds