Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/bpf/
Dreuseport_array.c209 const struct sock *osk, in reuseport_array_update_check() argument
213 if (osk && map_flags == BPF_NOEXIST) in reuseport_array_update_check()
216 if (!osk && map_flags == BPF_EXIST) in reuseport_array_update_check()
255 struct sock *free_osk = NULL, *osk, *nsk; in bpf_fd_reuseport_array_update_elem() local
303 osk = rcu_dereference_protected(array->ptrs[index], in bpf_fd_reuseport_array_update_elem()
307 err = reuseport_array_update_check(array, nsk, osk, reuse, map_flags); in bpf_fd_reuseport_array_update_elem()
318 free_osk = osk; in bpf_fd_reuseport_array_update_elem()
Dsockmap.c316 struct sock *osk; in bpf_tcp_remove() local
336 osk = *e->entry; in bpf_tcp_remove()
337 if (osk == sk) { in bpf_tcp_remove()
/Linux-v4.19/net/netrom/
Daf_netrom.c471 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()
/Linux-v4.19/net/ipv4/
Dinet_hashtables.c517 bool inet_ehash_insert(struct sock *sk, struct sock *osk) in inet_ehash_insert() argument
533 if (osk) { in inet_ehash_insert()
534 WARN_ON_ONCE(sk->sk_hash != osk->sk_hash); in inet_ehash_insert()
535 ret = sk_nulls_del_node_init_rcu(osk); in inet_ehash_insert()
543 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk) in inet_ehash_nolisten() argument
545 bool ok = inet_ehash_insert(sk, osk); in inet_ehash_nolisten()
581 int __inet_hash(struct sock *sk, struct sock *osk) in __inet_hash() argument
588 inet_ehash_nolisten(sk, osk); in __inet_hash()
/Linux-v4.19/net/rose/
Daf_rose.c556 static struct sock *rose_make_new(struct sock *osk) in rose_make_new() argument
561 if (osk->sk_type != SOCK_SEQPACKET) in rose_make_new()
564 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto, 0); in rose_make_new()
578 sk->sk_type = osk->sk_type; in rose_make_new()
579 sk->sk_priority = osk->sk_priority; in rose_make_new()
580 sk->sk_protocol = osk->sk_protocol; in rose_make_new()
581 sk->sk_rcvbuf = osk->sk_rcvbuf; in rose_make_new()
582 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new()
584 sock_copy_flags(sk, osk); in rose_make_new()
589 orose = rose_sk(osk); in rose_make_new()
/Linux-v4.19/net/x25/
Daf_x25.c598 static struct sock *x25_make_new(struct sock *osk) in x25_make_new() argument
603 if (osk->sk_type != SOCK_SEQPACKET) in x25_make_new()
606 if ((sk = x25_alloc_socket(sock_net(osk), 0)) == NULL) in x25_make_new()
611 sk->sk_type = osk->sk_type; in x25_make_new()
612 sk->sk_priority = osk->sk_priority; in x25_make_new()
613 sk->sk_protocol = osk->sk_protocol; in x25_make_new()
614 sk->sk_rcvbuf = osk->sk_rcvbuf; in x25_make_new()
615 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new()
617 sk->sk_backlog_rcv = osk->sk_backlog_rcv; in x25_make_new()
618 sock_copy_flags(sk, osk); in x25_make_new()
[all …]
/Linux-v4.19/include/net/
Dinet_hashtables.h229 bool inet_ehash_insert(struct sock *sk, struct sock *osk);
230 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk);
231 int __inet_hash(struct sock *sk, struct sock *osk);
Dxfrm.h1263 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk);
1265 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in xfrm_sk_clone_policy() argument
1269 if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) in xfrm_sk_clone_policy()
1270 return __xfrm_sk_clone_policy(sk, osk); in xfrm_sk_clone_policy()
1295 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { return 0; } in xfrm_sk_clone_policy() argument
Dsock.h807 static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) in sock_copy_flags() argument
809 nsk->sk_flags = osk->sk_flags; in sock_copy_flags()
/Linux-v4.19/net/ax25/
Daf_ax25.c880 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument
885 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); in ax25_make_new()
894 switch (osk->sk_type) { in ax25_make_new()
907 sk->sk_type = osk->sk_type; in ax25_make_new()
908 sk->sk_priority = osk->sk_priority; in ax25_make_new()
909 sk->sk_protocol = osk->sk_protocol; in ax25_make_new()
910 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new()
911 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new()
913 sock_copy_flags(sk, osk); in ax25_make_new()
915 oax25 = sk_to_ax25(osk); in ax25_make_new()
/Linux-v4.19/net/smc/
Daf_smc.c251 static void smc_copy_sock_settings(struct sock *nsk, struct sock *osk, in smc_copy_sock_settings() argument
255 nsk->sk_type = osk->sk_type; in smc_copy_sock_settings()
256 nsk->sk_sndbuf = osk->sk_sndbuf; in smc_copy_sock_settings()
257 nsk->sk_rcvbuf = osk->sk_rcvbuf; in smc_copy_sock_settings()
258 nsk->sk_sndtimeo = osk->sk_sndtimeo; in smc_copy_sock_settings()
259 nsk->sk_rcvtimeo = osk->sk_rcvtimeo; in smc_copy_sock_settings()
260 nsk->sk_mark = osk->sk_mark; in smc_copy_sock_settings()
261 nsk->sk_priority = osk->sk_priority; in smc_copy_sock_settings()
262 nsk->sk_rcvlowat = osk->sk_rcvlowat; in smc_copy_sock_settings()
263 nsk->sk_bound_dev_if = osk->sk_bound_dev_if; in smc_copy_sock_settings()
[all …]
/Linux-v4.19/arch/arm/mach-omap1/
DMakefile38 obj-$(CONFIG_MACH_OMAP_OSK) += board-osk.o
/Linux-v4.19/net/unix/
Daf_unix.c185 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() argument
187 return unix_peer(osk) == sk; in unix_our_peer()
190 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() argument
192 return unix_peer(osk) == NULL || unix_our_peer(sk, osk); in unix_may_send()
/Linux-v4.19/net/core/
Dsock.c1438 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument
1443 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy()
1445 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy()
1446 osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); in sock_copy()
1450 security_sk_clone(osk, nsk); in sock_copy()
/Linux-v4.19/net/xfrm/
Dxfrm_policy.c1344 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in __xfrm_sk_clone_policy() argument
1352 p = rcu_dereference(osk->sk_policy[i]); in __xfrm_sk_clone_policy()