osk 250 include/net/inet_hashtables.h bool inet_ehash_insert(struct sock *sk, struct sock *osk); osk 251 include/net/inet_hashtables.h bool inet_ehash_nolisten(struct sock *sk, struct sock *osk); osk 252 include/net/inet_hashtables.h int __inet_hash(struct sock *sk, struct sock *osk); osk 826 include/net/sock.h static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) osk 828 include/net/sock.h nsk->sk_flags = osk->sk_flags; osk 1168 include/net/xfrm.h int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk); osk 1170 include/net/xfrm.h static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) osk 1174 include/net/xfrm.h if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) osk 1175 include/net/xfrm.h return __xfrm_sk_clone_policy(sk, osk); osk 1200 include/net/xfrm.h static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { return 0; } osk 206 kernel/bpf/reuseport_array.c const struct sock *osk, osk 210 kernel/bpf/reuseport_array.c if (osk && map_flags == BPF_NOEXIST) osk 213 kernel/bpf/reuseport_array.c if (!osk && map_flags == BPF_EXIST) osk 252 kernel/bpf/reuseport_array.c struct sock *free_osk = NULL, *osk, *nsk; osk 300 kernel/bpf/reuseport_array.c osk = rcu_dereference_protected(array->ptrs[index], osk 304 kernel/bpf/reuseport_array.c err = reuseport_array_update_check(array, nsk, osk, reuse, map_flags); osk 315 kernel/bpf/reuseport_array.c free_osk = osk; osk 888 net/ax25/af_ax25.c struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) osk 893 net/ax25/af_ax25.c sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); osk 902 net/ax25/af_ax25.c switch (osk->sk_type) { osk 915 net/ax25/af_ax25.c sk->sk_type = osk->sk_type; osk 916 net/ax25/af_ax25.c sk->sk_priority = osk->sk_priority; osk 917 net/ax25/af_ax25.c sk->sk_protocol = osk->sk_protocol; osk 918 net/ax25/af_ax25.c sk->sk_rcvbuf = osk->sk_rcvbuf; osk 919 net/ax25/af_ax25.c sk->sk_sndbuf = osk->sk_sndbuf; osk 921 net/ax25/af_ax25.c sock_copy_flags(sk, osk); osk 923 net/ax25/af_ax25.c oax25 = sk_to_ax25(osk); osk 1575 net/core/sock.c static void sock_copy(struct sock *nsk, const struct sock *osk) osk 1580 net/core/sock.c memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); osk 1582 net/core/sock.c memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, osk 1583 net/core/sock.c osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); osk 1587 net/core/sock.c security_sk_clone(osk, nsk); osk 346 net/core/sock_map.c struct sock *osk; osk 369 net/core/sock_map.c osk = stab->sks[idx]; osk 370 net/core/sock_map.c if (osk && flags == BPF_NOEXIST) { osk 373 net/core/sock_map.c } else if (!osk && flags == BPF_EXIST) { osk 380 net/core/sock_map.c if (osk) osk 381 net/core/sock_map.c sock_map_unref(osk, &stab->sks[idx]); osk 473 net/ipv4/inet_hashtables.c bool inet_ehash_insert(struct sock *sk, struct sock *osk) osk 489 net/ipv4/inet_hashtables.c if (osk) { osk 490 net/ipv4/inet_hashtables.c WARN_ON_ONCE(sk->sk_hash != osk->sk_hash); osk 491 net/ipv4/inet_hashtables.c ret = sk_nulls_del_node_init_rcu(osk); osk 499 net/ipv4/inet_hashtables.c bool inet_ehash_nolisten(struct sock *sk, struct sock *osk) osk 501 net/ipv4/inet_hashtables.c bool ok = inet_ehash_insert(sk, osk); osk 538 net/ipv4/inet_hashtables.c int __inet_hash(struct sock *sk, struct sock *osk) osk 545 net/ipv4/inet_hashtables.c inet_ehash_nolisten(sk, osk); osk 446 net/netrom/af_netrom.c static struct sock *nr_make_new(struct sock *osk) osk 451 net/netrom/af_netrom.c if (osk->sk_type != SOCK_SEQPACKET) osk 454 net/netrom/af_netrom.c sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot, 0); osk 462 net/netrom/af_netrom.c sk->sk_type = osk->sk_type; osk 463 net/netrom/af_netrom.c sk->sk_priority = osk->sk_priority; osk 464 net/netrom/af_netrom.c sk->sk_protocol = osk->sk_protocol; osk 465 net/netrom/af_netrom.c sk->sk_rcvbuf = osk->sk_rcvbuf; osk 466 net/netrom/af_netrom.c sk->sk_sndbuf = osk->sk_sndbuf; osk 468 net/netrom/af_netrom.c sock_copy_flags(sk, osk); osk 476 net/netrom/af_netrom.c onr = nr_sk(osk); osk 531 net/rose/af_rose.c static struct sock *rose_make_new(struct sock *osk) osk 536 net/rose/af_rose.c if (osk->sk_type != SOCK_SEQPACKET) osk 539 net/rose/af_rose.c sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto, 0); osk 553 net/rose/af_rose.c sk->sk_type = osk->sk_type; osk 554 net/rose/af_rose.c sk->sk_priority = osk->sk_priority; osk 555 net/rose/af_rose.c sk->sk_protocol = osk->sk_protocol; osk 556 net/rose/af_rose.c sk->sk_rcvbuf = osk->sk_rcvbuf; osk 557 net/rose/af_rose.c sk->sk_sndbuf = osk->sk_sndbuf; osk 559 net/rose/af_rose.c sock_copy_flags(sk, osk); osk 564 net/rose/af_rose.c orose = rose_sk(osk); osk 285 net/smc/af_smc.c static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, osk 289 net/smc/af_smc.c nsk->sk_type = osk->sk_type; osk 290 net/smc/af_smc.c nsk->sk_sndbuf = osk->sk_sndbuf; osk 291 net/smc/af_smc.c nsk->sk_rcvbuf = osk->sk_rcvbuf; osk 292 net/smc/af_smc.c nsk->sk_sndtimeo = osk->sk_sndtimeo; osk 293 net/smc/af_smc.c nsk->sk_rcvtimeo = osk->sk_rcvtimeo; osk 294 net/smc/af_smc.c nsk->sk_mark = osk->sk_mark; osk 295 net/smc/af_smc.c nsk->sk_priority = osk->sk_priority; osk 296 net/smc/af_smc.c nsk->sk_rcvlowat = osk->sk_rcvlowat; osk 297 net/smc/af_smc.c nsk->sk_bound_dev_if = osk->sk_bound_dev_if; osk 298 net/smc/af_smc.c nsk->sk_err = osk->sk_err; osk 301 net/smc/af_smc.c nsk->sk_flags |= osk->sk_flags & mask; osk 182 net/unix/af_unix.c static inline int unix_our_peer(struct sock *sk, struct sock *osk) osk 184 net/unix/af_unix.c return unix_peer(osk) == sk; osk 187 net/unix/af_unix.c static inline int unix_may_send(struct sock *sk, struct sock *osk) osk 189 net/unix/af_unix.c return unix_peer(osk) == NULL || unix_our_peer(sk, osk); osk 591 net/x25/af_x25.c static struct sock *x25_make_new(struct sock *osk) osk 596 net/x25/af_x25.c if (osk->sk_type != SOCK_SEQPACKET) osk 599 net/x25/af_x25.c if ((sk = x25_alloc_socket(sock_net(osk), 0)) == NULL) osk 604 net/x25/af_x25.c sk->sk_type = osk->sk_type; osk 605 net/x25/af_x25.c sk->sk_priority = osk->sk_priority; osk 606 net/x25/af_x25.c sk->sk_protocol = osk->sk_protocol; osk 607 net/x25/af_x25.c sk->sk_rcvbuf = osk->sk_rcvbuf; osk 608 net/x25/af_x25.c sk->sk_sndbuf = osk->sk_sndbuf; osk 610 net/x25/af_x25.c sk->sk_backlog_rcv = osk->sk_backlog_rcv; osk 611 net/x25/af_x25.c sock_copy_flags(sk, osk); osk 613 net/x25/af_x25.c ox25 = x25_sk(osk); osk 2319 net/xfrm/xfrm_policy.c int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) osk 2327 net/xfrm/xfrm_policy.c p = rcu_dereference(osk->sk_policy[i]);