Searched refs:osk (Results 1 – 8 of 8) sorted by relevance
/net/ipv4/ |
D | inet_hashtables.c | 411 bool inet_ehash_insert(struct sock *sk, struct sock *osk) in inet_ehash_insert() argument 427 if (osk) { in inet_ehash_insert() 428 WARN_ON_ONCE(sk->sk_hash != osk->sk_hash); in inet_ehash_insert() 429 ret = sk_nulls_del_node_init_rcu(osk); in inet_ehash_insert() 437 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk) in inet_ehash_nolisten() argument 439 bool ok = inet_ehash_insert(sk, osk); in inet_ehash_nolisten() 453 void __inet_hash(struct sock *sk, struct sock *osk) in __inet_hash() argument 459 inet_ehash_nolisten(sk, osk); in __inet_hash()
|
/net/netrom/ |
D | af_netrom.c | 471 static struct sock *nr_make_new(struct sock *osk) in nr_make_new() argument 476 if (osk->sk_type != SOCK_SEQPACKET) in nr_make_new() 479 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot, 0); in nr_make_new() 487 sk->sk_type = osk->sk_type; in nr_make_new() 488 sk->sk_priority = osk->sk_priority; in nr_make_new() 489 sk->sk_protocol = osk->sk_protocol; in nr_make_new() 490 sk->sk_rcvbuf = osk->sk_rcvbuf; in nr_make_new() 491 sk->sk_sndbuf = osk->sk_sndbuf; in nr_make_new() 493 sock_copy_flags(sk, osk); in nr_make_new() 501 onr = nr_sk(osk); in nr_make_new()
|
/net/x25/ |
D | af_x25.c | 595 static struct sock *x25_make_new(struct sock *osk) in x25_make_new() argument 600 if (osk->sk_type != SOCK_SEQPACKET) in x25_make_new() 603 if ((sk = x25_alloc_socket(sock_net(osk), 0)) == NULL) in x25_make_new() 608 sk->sk_type = osk->sk_type; in x25_make_new() 609 sk->sk_priority = osk->sk_priority; in x25_make_new() 610 sk->sk_protocol = osk->sk_protocol; in x25_make_new() 611 sk->sk_rcvbuf = osk->sk_rcvbuf; in x25_make_new() 612 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new() 614 sk->sk_backlog_rcv = osk->sk_backlog_rcv; in x25_make_new() 615 sock_copy_flags(sk, osk); in x25_make_new() [all …]
|
/net/rose/ |
D | af_rose.c | 555 static struct sock *rose_make_new(struct sock *osk) in rose_make_new() argument 560 if (osk->sk_type != SOCK_SEQPACKET) in rose_make_new() 563 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto, 0); in rose_make_new() 577 sk->sk_type = osk->sk_type; in rose_make_new() 578 sk->sk_priority = osk->sk_priority; in rose_make_new() 579 sk->sk_protocol = osk->sk_protocol; in rose_make_new() 580 sk->sk_rcvbuf = osk->sk_rcvbuf; in rose_make_new() 581 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new() 583 sock_copy_flags(sk, osk); in rose_make_new() 588 orose = rose_sk(osk); in rose_make_new()
|
/net/ax25/ |
D | af_ax25.c | 894 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument 899 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); in ax25_make_new() 908 switch (osk->sk_type) { in ax25_make_new() 921 sk->sk_type = osk->sk_type; in ax25_make_new() 922 sk->sk_priority = osk->sk_priority; in ax25_make_new() 923 sk->sk_protocol = osk->sk_protocol; in ax25_make_new() 924 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new() 925 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new() 927 sock_copy_flags(sk, osk); in ax25_make_new() 929 oax25 = sk_to_ax25(osk); in ax25_make_new()
|
/net/unix/ |
D | af_unix.c | 186 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() argument 188 return unix_peer(osk) == sk; in unix_our_peer() 191 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() argument 193 return unix_peer(osk) == NULL || unix_our_peer(sk, osk); in unix_may_send()
|
/net/core/ |
D | sock.c | 1307 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument 1312 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy() 1314 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy() 1315 osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); in sock_copy() 1319 security_sk_clone(osk, nsk); in sock_copy()
|
/net/xfrm/ |
D | xfrm_policy.c | 1383 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in __xfrm_sk_clone_policy() argument 1391 p = rcu_dereference(osk->sk_policy[i]); in __xfrm_sk_clone_policy()
|