Home
last modified time | relevance | path

Searched refs:osk (Results 1 – 10 of 10) sorted by relevance

/net/netrom/
Daf_netrom.c473 static struct sock *nr_make_new(struct sock *osk) in nr_make_new() argument
478 if (osk->sk_type != SOCK_SEQPACKET) in nr_make_new()
481 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot, 0); in nr_make_new()
489 sk->sk_type = osk->sk_type; in nr_make_new()
490 sk->sk_priority = osk->sk_priority; in nr_make_new()
491 sk->sk_protocol = osk->sk_protocol; in nr_make_new()
492 sk->sk_rcvbuf = osk->sk_rcvbuf; in nr_make_new()
493 sk->sk_sndbuf = osk->sk_sndbuf; in nr_make_new()
495 sock_copy_flags(sk, osk); in nr_make_new()
503 onr = nr_sk(osk); in nr_make_new()
/net/ipv4/
Dinet_hashtables.c556 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk) in inet_ehash_insert() argument
572 if (osk) { in inet_ehash_insert()
573 WARN_ON_ONCE(sk->sk_hash != osk->sk_hash); in inet_ehash_insert()
574 ret = sk_nulls_del_node_init_rcu(osk); in inet_ehash_insert()
589 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, bool *found_dup_sk) in inet_ehash_nolisten() argument
591 bool ok = inet_ehash_insert(sk, osk, found_dup_sk); in inet_ehash_nolisten()
628 int __inet_hash(struct sock *sk, struct sock *osk) in __inet_hash() argument
636 inet_ehash_nolisten(sk, osk, NULL); in __inet_hash()
/net/x25/
Daf_x25.c587 static struct sock *x25_make_new(struct sock *osk) in x25_make_new() argument
592 if (osk->sk_type != SOCK_SEQPACKET) in x25_make_new()
595 if ((sk = x25_alloc_socket(sock_net(osk), 0)) == NULL) in x25_make_new()
600 sk->sk_type = osk->sk_type; in x25_make_new()
601 sk->sk_priority = osk->sk_priority; in x25_make_new()
602 sk->sk_protocol = osk->sk_protocol; in x25_make_new()
603 sk->sk_rcvbuf = osk->sk_rcvbuf; in x25_make_new()
604 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new()
606 sk->sk_backlog_rcv = osk->sk_backlog_rcv; in x25_make_new()
607 sock_copy_flags(sk, osk); in x25_make_new()
[all …]
/net/rose/
Daf_rose.c588 static struct sock *rose_make_new(struct sock *osk) in rose_make_new() argument
593 if (osk->sk_type != SOCK_SEQPACKET) in rose_make_new()
596 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto, 0); in rose_make_new()
610 sk->sk_type = osk->sk_type; in rose_make_new()
611 sk->sk_priority = osk->sk_priority; in rose_make_new()
612 sk->sk_protocol = osk->sk_protocol; in rose_make_new()
613 sk->sk_rcvbuf = osk->sk_rcvbuf; in rose_make_new()
614 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new()
616 sock_copy_flags(sk, osk); in rose_make_new()
621 orose = rose_sk(osk); in rose_make_new()
/net/ax25/
Daf_ax25.c910 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument
915 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); in ax25_make_new()
924 switch (osk->sk_type) { in ax25_make_new()
937 sk->sk_type = osk->sk_type; in ax25_make_new()
938 sk->sk_priority = osk->sk_priority; in ax25_make_new()
939 sk->sk_protocol = osk->sk_protocol; in ax25_make_new()
940 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new()
941 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new()
943 sock_copy_flags(sk, osk); in ax25_make_new()
945 oax25 = sk_to_ax25(osk); in ax25_make_new()
/net/smc/
Daf_smc.c308 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument
312 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings()
313 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_copy_sock_settings()
314 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_copy_sock_settings()
315 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings()
316 nsk->sk_rcvtimeo = osk->sk_rcvtimeo; in smc_copy_sock_settings()
317 nsk->sk_mark = osk->sk_mark; in smc_copy_sock_settings()
318 nsk->sk_priority = osk->sk_priority; in smc_copy_sock_settings()
319 nsk->sk_rcvlowat = osk->sk_rcvlowat; in smc_copy_sock_settings()
320 nsk->sk_bound_dev_if = osk->sk_bound_dev_if; in smc_copy_sock_settings()
[all …]
/net/core/
Dsock_map.c473 struct sock *osk; in sock_map_update_common() local
494 osk = stab->sks[idx]; in sock_map_update_common()
495 if (osk && flags == BPF_NOEXIST) { in sock_map_update_common()
498 } else if (!osk && flags == BPF_EXIST) { in sock_map_update_common()
505 if (osk) in sock_map_update_common()
506 sock_map_unref(osk, &stab->sks[idx]); in sock_map_update_common()
Dsock.c1820 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument
1822 const struct proto *prot = READ_ONCE(osk->sk_prot); in sock_copy()
1836 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy()
1838 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy()
1843 security_sk_clone(osk, nsk); in sock_copy()
/net/unix/
Daf_unix.c183 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() argument
185 return unix_peer(osk) == sk; in unix_our_peer()
188 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() argument
190 return unix_peer(osk) == NULL || unix_our_peer(sk, osk); in unix_may_send()
/net/xfrm/
Dxfrm_policy.c2324 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in __xfrm_sk_clone_policy() argument
2332 p = rcu_dereference(osk->sk_policy[i]); in __xfrm_sk_clone_policy()