Lines Matching refs:osk
473 static struct sock *nr_make_new(struct sock *osk)
478 if (osk->sk_type != SOCK_SEQPACKET)
481 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot, 0);
489 sk->sk_type = osk->sk_type;
490 sk->sk_priority = READ_ONCE(osk->sk_priority);
491 sk->sk_protocol = osk->sk_protocol;
492 sk->sk_rcvbuf = osk->sk_rcvbuf;
493 sk->sk_sndbuf = osk->sk_sndbuf;
495 sock_copy_flags(sk, osk);
503 onr = nr_sk(osk);