Searched refs:osk (Results 1 – 8 of 8) sorted by relevance
/linux-4.1.27/net/netrom/ |
D | af_netrom.c | 471 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); 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.1.27/net/rose/ |
D | af_rose.c | 554 static struct sock *rose_make_new(struct sock *osk) in rose_make_new() argument 559 if (osk->sk_type != SOCK_SEQPACKET) in rose_make_new() 562 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto); in rose_make_new() 576 sk->sk_type = osk->sk_type; in rose_make_new() 577 sk->sk_priority = osk->sk_priority; in rose_make_new() 578 sk->sk_protocol = osk->sk_protocol; in rose_make_new() 579 sk->sk_rcvbuf = osk->sk_rcvbuf; in rose_make_new() 580 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new() 582 sock_copy_flags(sk, osk); in rose_make_new() 587 orose = rose_sk(osk); in rose_make_new()
|
/linux-4.1.27/net/x25/ |
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))) == 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.1.27/net/ax25/ |
D | af_ax25.c | 882 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument 887 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot); in ax25_make_new() 896 switch (osk->sk_type) { in ax25_make_new() 909 sk->sk_type = osk->sk_type; in ax25_make_new() 910 sk->sk_priority = osk->sk_priority; in ax25_make_new() 911 sk->sk_protocol = osk->sk_protocol; in ax25_make_new() 912 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new() 913 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new() 915 sock_copy_flags(sk, osk); in ax25_make_new() 917 oax25 = ax25_sk(osk); in ax25_make_new()
|
/linux-4.1.27/arch/arm/mach-omap1/ |
D | Makefile | 37 obj-$(CONFIG_MACH_OMAP_OSK) += board-osk.o
|
/linux-4.1.27/net/unix/ |
D | af_unix.c | 174 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() argument 176 return unix_peer(osk) == sk; in unix_our_peer() 179 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() argument 181 return unix_peer(osk) == NULL || unix_our_peer(sk, osk); in unix_may_send()
|
/linux-4.1.27/net/core/ |
D | sock.c | 1285 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument 1290 memcpy(nsk, osk, offsetof(struct sock, sk_dontcopy_begin)); in sock_copy() 1292 memcpy(&nsk->sk_dontcopy_end, &osk->sk_dontcopy_end, in sock_copy() 1293 osk->sk_prot->obj_size - offsetof(struct sock, sk_dontcopy_end)); in sock_copy() 1297 security_sk_clone(osk, nsk); in sock_copy()
|
/linux-4.1.27/include/net/ |
D | sock.h | 728 static inline void sock_copy_flags(struct sock *nsk, struct sock *osk) in sock_copy_flags() argument 730 nsk->sk_flags = osk->sk_flags; in sock_copy_flags()
|