Home
last modified time | relevance | path

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

/linux-4.4.14/net/ipv4/
Dinet_hashtables.c410 bool inet_ehash_insert(struct sock *sk, struct sock *osk) in inet_ehash_insert() argument
426 if (osk) { in inet_ehash_insert()
427 WARN_ON_ONCE(sk->sk_hash != osk->sk_hash); in inet_ehash_insert()
428 ret = sk_nulls_del_node_init_rcu(osk); in inet_ehash_insert()
436 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk) in inet_ehash_nolisten() argument
438 bool ok = inet_ehash_insert(sk, osk); in inet_ehash_nolisten()
452 void __inet_hash(struct sock *sk, struct sock *osk) in __inet_hash() argument
458 inet_ehash_nolisten(sk, osk); in __inet_hash()
/linux-4.4.14/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-4.4.14/include/net/
Dinet_hashtables.h208 bool inet_ehash_insert(struct sock *sk, struct sock *osk);
209 bool inet_ehash_nolisten(struct sock *sk, struct sock *osk);
210 void __inet_hash(struct sock *sk, struct sock *osk);
Dxfrm.h1145 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk);
1147 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in xfrm_sk_clone_policy() argument
1151 if (unlikely(osk->sk_policy[0] || osk->sk_policy[1])) in xfrm_sk_clone_policy()
1152 return __xfrm_sk_clone_policy(sk, osk); in xfrm_sk_clone_policy()
1179 static inline int xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) { return 0; } in xfrm_sk_clone_policy() argument
Dsock.h746 static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) in sock_copy_flags() argument
748 nsk->sk_flags = osk->sk_flags; in sock_copy_flags()
/linux-4.4.14/net/rose/
Daf_rose.c555 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()
/linux-4.4.14/net/x25/
Daf_x25.c597 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 …]
/linux-4.4.14/net/ax25/
Daf_ax25.c881 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument
886 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot, 0); in ax25_make_new()
895 switch (osk->sk_type) { in ax25_make_new()
908 sk->sk_type = osk->sk_type; in ax25_make_new()
909 sk->sk_priority = osk->sk_priority; in ax25_make_new()
910 sk->sk_protocol = osk->sk_protocol; in ax25_make_new()
911 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new()
912 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new()
914 sock_copy_flags(sk, osk); in ax25_make_new()
916 oax25 = sk_to_ax25(osk); in ax25_make_new()
/linux-4.4.14/arch/arm/mach-omap1/
DMakefile37 obj-$(CONFIG_MACH_OMAP_OSK) += board-osk.o
/linux-4.4.14/net/core/
Dsock.c1302 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument
1307 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy()
1309 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy()
1310 osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); in sock_copy()
1314 security_sk_clone(osk, nsk); in sock_copy()
/linux-4.4.14/net/unix/
Daf_unix.c184 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() argument
186 return unix_peer(osk) == sk; in unix_our_peer()
189 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() argument
191 return unix_peer(osk) == NULL || unix_our_peer(sk, osk); in unix_may_send()
/linux-4.4.14/net/xfrm/
Dxfrm_policy.c1375 int __xfrm_sk_clone_policy(struct sock *sk, const struct sock *osk) in __xfrm_sk_clone_policy() argument
1383 p = rcu_dereference(osk->sk_policy[i]); in __xfrm_sk_clone_policy()