/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | reuseport_array.c | 207 const struct sock *osk, in reuseport_array_update_check() 211 if (osk && map_flags == BPF_NOEXIST) in reuseport_array_update_check() 214 if (!osk && map_flags == BPF_EXIST) in reuseport_array_update_check() 247 * The "osk" and "reuse" are protected by reuseport_lock. 253 struct sock *free_osk = NULL, *osk, *nsk; in bpf_fd_reuseport_array_update_elem() local 302 osk = rcu_dereference_protected(array->ptrs[index], in bpf_fd_reuseport_array_update_elem() 306 err = reuseport_array_update_check(array, nsk, osk, reuse, map_flags); in bpf_fd_reuseport_array_update_elem() 314 free_osk = osk; in bpf_fd_reuseport_array_update_elem() 205 reuseport_array_update_check(const struct reuseport_array *array, const struct sock *nsk, const struct sock *osk, const struct sock_reuseport *nsk_reuse, u32 map_flags) reuseport_array_update_check() argument
|
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | reuseport_array.c | 190 const struct sock *osk, in reuseport_array_update_check() 194 if (osk && map_flags == BPF_NOEXIST) in reuseport_array_update_check() 197 if (!osk && map_flags == BPF_EXIST) in reuseport_array_update_check() 230 * The "osk" and "reuse" are protected by reuseport_lock. 236 struct sock *free_osk = NULL, *osk, *nsk; in bpf_fd_reuseport_array_update_elem() local 285 osk = rcu_dereference_protected(array->ptrs[index], in bpf_fd_reuseport_array_update_elem() 289 err = reuseport_array_update_check(array, nsk, osk, reuse, map_flags); in bpf_fd_reuseport_array_update_elem() 297 free_osk = osk; in bpf_fd_reuseport_array_update_elem() 188 reuseport_array_update_check(const struct reuseport_array *array, const struct sock *nsk, const struct sock *osk, const struct sock_reuseport *nsk_reuse, u32 map_flags) reuseport_array_update_check() argument
|
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | inet_hashtables.c | 565 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk) in inet_ehash_insert() argument 581 if (osk) { in inet_ehash_insert() 582 WARN_ON_ONCE(sk->sk_hash != osk->sk_hash); in inet_ehash_insert() 583 ret = sk_nulls_del_node_init_rcu(osk); in inet_ehash_insert() 598 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, bool *found_dup_sk) in inet_ehash_nolisten() argument 600 bool ok = inet_ehash_insert(sk, osk, found_dup_sk); in inet_ehash_nolisten() 637 int __inet_hash(struct sock *sk, struct sock *osk) in __inet_hash() argument 645 inet_ehash_nolisten(sk, osk, NULL); in __inet_hash()
|
/kernel/linux/linux-5.10/net/netrom/ |
H A D | af_netrom.c | 473 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() [all...] |
/kernel/linux/linux-6.6/net/netrom/ |
H A D | af_netrom.c | 473 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() [all...] |
/kernel/linux/linux-5.10/include/net/ |
H A D | inet_hashtables.h | 239 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk); 240 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, 242 int __inet_hash(struct sock *sk, struct sock *osk);
|
H A D | xfrm.h | 1198 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk); 1200 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in xfrm_sk_clone_policy() argument 1202 if (!sk_fullsock(osk)) in xfrm_sk_clone_policy() 1206 if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) in xfrm_sk_clone_policy() 1207 return __xfrm_sk_clone_policy(sk, osk); in xfrm_sk_clone_policy() 1232 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { return 0; } in xfrm_sk_clone_policy() argument
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | inet_hashtables.c | 661 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk) in inet_ehash_insert() argument 677 if (osk) { in inet_ehash_insert() 678 WARN_ON_ONCE(sk->sk_hash != osk->sk_hash); in inet_ehash_insert() 679 ret = sk_nulls_del_node_init_rcu(osk); in inet_ehash_insert() 694 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, bool *found_dup_sk) in inet_ehash_nolisten() argument 696 bool ok = inet_ehash_insert(sk, osk, found_dup_sk); in inet_ehash_nolisten() 733 int __inet_hash(struct sock *sk, struct sock *osk) in __inet_hash() argument 741 inet_ehash_nolisten(sk, osk, NULL); in __inet_hash()
|
/kernel/linux/linux-5.10/net/x25/ |
H A D | af_x25.c | 597 static struct sock *x25_make_new(struct sock *osk) in x25_make_new() argument 602 if (osk->sk_type != SOCK_SEQPACKET) in x25_make_new() 605 if ((sk = x25_alloc_socket(sock_net(osk), 0)) == NULL) in x25_make_new() 610 sk->sk_type = osk->sk_type; in x25_make_new() 611 sk->sk_priority = osk->sk_priority; in x25_make_new() 612 sk->sk_protocol = osk->sk_protocol; in x25_make_new() 613 sk->sk_rcvbuf = osk->sk_rcvbuf; in x25_make_new() 614 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new() 616 sk->sk_backlog_rcv = osk->sk_backlog_rcv; in x25_make_new() 617 sock_copy_flags(sk, osk); in x25_make_new() [all...] |
/kernel/linux/linux-5.10/net/ax25/ |
H A D | af_ax25.c | 909 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument 914 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); in ax25_make_new() 923 switch (osk->sk_type) { in ax25_make_new() 936 sk->sk_type = osk->sk_type; in ax25_make_new() 937 sk->sk_priority = osk->sk_priority; in ax25_make_new() 938 sk->sk_protocol = osk->sk_protocol; in ax25_make_new() 939 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new() 940 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new() 942 sock_copy_flags(sk, osk); in ax25_make_new() [all...] |
/kernel/linux/linux-6.6/net/x25/ |
H A D | af_x25.c | 587 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...] |
/kernel/linux/linux-6.6/net/ax25/ |
H A D | af_ax25.c | 914 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument 919 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); in ax25_make_new() 928 switch (osk->sk_type) { in ax25_make_new() 941 sk->sk_type = osk->sk_type; in ax25_make_new() 942 sk->sk_priority = osk->sk_priority; in ax25_make_new() 943 sk->sk_protocol = osk->sk_protocol; in ax25_make_new() 944 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new() 945 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new() 947 sock_copy_flags(sk, osk); in ax25_make_new() [all...] |
/kernel/linux/linux-6.6/arch/arm/mach-omap1/ |
H A D | Makefile | 32 obj-$(CONFIG_MACH_OMAP_OSK) += board-osk.o
|
/kernel/linux/linux-6.6/include/net/ |
H A D | inet_hashtables.h | 305 bool inet_ehash_insert(struct sock *sk, struct sock *osk, bool *found_dup_sk); 306 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk, 308 int __inet_hash(struct sock *sk, struct sock *osk);
|
H A D | xfrm.h | 1250 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk); 1252 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in xfrm_sk_clone_policy() argument 1254 if (!sk_fullsock(osk)) in xfrm_sk_clone_policy() 1258 if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) in xfrm_sk_clone_policy() 1259 return __xfrm_sk_clone_policy(sk, osk); in xfrm_sk_clone_policy() 1284 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { return 0; } in xfrm_sk_clone_policy() argument
|
/kernel/linux/linux-5.10/net/rose/ |
H A D | af_rose.c | 588 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() [all...] |
/kernel/linux/linux-6.6/net/rose/ |
H A D | af_rose.c | 589 static struct sock *rose_make_new(struct sock *osk) in rose_make_new() argument 594 if (osk->sk_type != SOCK_SEQPACKET) in rose_make_new() 597 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto, 0); in rose_make_new() 611 sk->sk_type = osk->sk_type; in rose_make_new() 612 sk->sk_priority = osk->sk_priority; in rose_make_new() 613 sk->sk_protocol = osk->sk_protocol; in rose_make_new() 614 sk->sk_rcvbuf = osk->sk_rcvbuf; in rose_make_new() 615 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new() 617 sock_copy_flags(sk, osk); in rose_make_new() 622 orose = rose_sk(osk); in rose_make_new() [all...] |
/kernel/linux/linux-6.6/net/smc/ |
H A D | af_smc.c | 460 static void smc_adjust_sock_bufsizes(struct sock *nsk, struct sock *osk, in smc_adjust_sock_bufsizes() argument 465 nsk->sk_userlocks = osk->sk_userlocks; in smc_adjust_sock_bufsizes() 466 if (osk->sk_userlocks & SOCK_SNDBUF_LOCK) { in smc_adjust_sock_bufsizes() 467 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_adjust_sock_bufsizes() 476 if (osk->sk_userlocks & SOCK_RCVBUF_LOCK) { in smc_adjust_sock_bufsizes() 477 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_adjust_sock_bufsizes() 488 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument 492 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings() 493 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings() 494 nsk->sk_rcvtimeo = osk in smc_copy_sock_settings() [all...] |
/kernel/linux/linux-5.10/net/smc/ |
H A D | af_smc.c | 306 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument 310 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings() 311 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_copy_sock_settings() 312 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_copy_sock_settings() 313 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings() 314 nsk->sk_rcvtimeo = osk->sk_rcvtimeo; in smc_copy_sock_settings() 315 nsk->sk_mark = osk->sk_mark; in smc_copy_sock_settings() 316 nsk->sk_priority = osk->sk_priority; in smc_copy_sock_settings() 317 nsk->sk_rcvlowat = osk->sk_rcvlowat; in smc_copy_sock_settings() 318 nsk->sk_bound_dev_if = osk in smc_copy_sock_settings() [all...] |
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
H A D | Makefile | 38 obj-$(CONFIG_MACH_OMAP_OSK) += board-osk.o
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/include/net/ |
H A D | ninet_hashtables.h | 31 int __ninet_hash(struct sock *sk, struct sock *osk);
|
/kernel/linux/common_modules/newip/third_party/linux-5.10/net/newip/ |
H A D | ninet_hashtables.c | 188 * osk: old socket 190 int __ninet_hash(struct sock *sk, struct sock *osk) in __ninet_hash() argument 198 inet_ehash_nolisten(sk, osk, NULL); in __ninet_hash()
|
/kernel/linux/linux-5.10/net/core/ |
H A D | sock_map.c | 483 struct sock *osk; in sock_map_update_common() local 511 osk = stab->sks[idx]; in sock_map_update_common() 512 if (osk && flags == BPF_NOEXIST) { in sock_map_update_common() 515 } else if (!osk && flags == BPF_EXIST) { in sock_map_update_common() 522 if (osk) in sock_map_update_common() 523 sock_map_unref(osk, &stab->sks[idx]); in sock_map_update_common()
|
/kernel/linux/linux-6.6/net/core/ |
H A D | sock_map.c | 470 struct sock *osk; in sock_map_update_common() local 491 osk = stab->sks[idx]; in sock_map_update_common() 492 if (osk && flags == BPF_NOEXIST) { in sock_map_update_common() 495 } else if (!osk && flags == BPF_EXIST) { in sock_map_update_common() 502 if (osk) in sock_map_update_common() 503 sock_map_unref(osk, &stab->sks[idx]); in sock_map_update_common()
|
/kernel/linux/linux-5.10/net/unix/ |
H A D | af_unix.c | 182 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() argument 184 return unix_peer(osk) == sk; in unix_our_peer() 187 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() argument 189 return unix_peer(osk) == NULL || unix_our_peer(sk, osk); in unix_may_send()
|