Searched refs:osk (Results 1 – 7 of 7) sorted by relevance
/net/netrom/ |
D | af_netrom.c | 475 static struct sock *nr_make_new(struct sock *osk) in nr_make_new() argument 480 if (osk->sk_type != SOCK_SEQPACKET) in nr_make_new() 483 sk = sk_alloc(sock_net(osk), PF_NETROM, GFP_ATOMIC, osk->sk_prot); in nr_make_new() 491 sk->sk_type = osk->sk_type; in nr_make_new() 492 sk->sk_priority = osk->sk_priority; in nr_make_new() 493 sk->sk_protocol = osk->sk_protocol; in nr_make_new() 494 sk->sk_rcvbuf = osk->sk_rcvbuf; in nr_make_new() 495 sk->sk_sndbuf = osk->sk_sndbuf; in nr_make_new() 497 sock_copy_flags(sk, osk); in nr_make_new() 505 onr = nr_sk(osk); in nr_make_new()
|
/net/x25/ |
D | af_x25.c | 544 static struct sock *x25_make_new(struct sock *osk) in x25_make_new() argument 549 if (osk->sk_type != SOCK_SEQPACKET) in x25_make_new() 552 if ((sk = x25_alloc_socket(sock_net(osk))) == NULL) in x25_make_new() 557 sk->sk_type = osk->sk_type; in x25_make_new() 558 sk->sk_priority = osk->sk_priority; in x25_make_new() 559 sk->sk_protocol = osk->sk_protocol; in x25_make_new() 560 sk->sk_rcvbuf = osk->sk_rcvbuf; in x25_make_new() 561 sk->sk_sndbuf = osk->sk_sndbuf; in x25_make_new() 563 sk->sk_backlog_rcv = osk->sk_backlog_rcv; in x25_make_new() 564 sock_copy_flags(sk, osk); in x25_make_new() [all …]
|
/net/ax25/ |
D | af_ax25.c | 870 struct sock *ax25_make_new(struct sock *osk, struct ax25_dev *ax25_dev) in ax25_make_new() argument 875 sk = sk_alloc(sock_net(osk), PF_AX25, GFP_ATOMIC, osk->sk_prot); in ax25_make_new() 884 switch (osk->sk_type) { in ax25_make_new() 898 sk->sk_type = osk->sk_type; in ax25_make_new() 899 sk->sk_priority = osk->sk_priority; in ax25_make_new() 900 sk->sk_protocol = osk->sk_protocol; in ax25_make_new() 901 sk->sk_rcvbuf = osk->sk_rcvbuf; in ax25_make_new() 902 sk->sk_sndbuf = osk->sk_sndbuf; in ax25_make_new() 904 sock_copy_flags(sk, osk); in ax25_make_new() 906 oax25 = ax25_sk(osk); in ax25_make_new()
|
/net/rose/ |
D | af_rose.c | 560 static struct sock *rose_make_new(struct sock *osk) in rose_make_new() argument 565 if (osk->sk_type != SOCK_SEQPACKET) in rose_make_new() 568 sk = sk_alloc(sock_net(osk), PF_ROSE, GFP_ATOMIC, &rose_proto); in rose_make_new() 582 sk->sk_type = osk->sk_type; in rose_make_new() 583 sk->sk_priority = osk->sk_priority; in rose_make_new() 584 sk->sk_protocol = osk->sk_protocol; in rose_make_new() 585 sk->sk_rcvbuf = osk->sk_rcvbuf; in rose_make_new() 586 sk->sk_sndbuf = osk->sk_sndbuf; in rose_make_new() 588 sock_copy_flags(sk, osk); in rose_make_new() 593 orose = rose_sk(osk); in rose_make_new()
|
/net/netlink/ |
D | af_netlink.c | 343 struct sock *osk; in netlink_insert() local 350 sk_for_each(osk, node, head) { in netlink_insert() 351 if (net_eq(sock_net(osk), net) && (nlk_sk(osk)->pid == pid)) in netlink_insert() 531 struct sock *osk; in netlink_autobind() local 541 sk_for_each(osk, node, head) { in netlink_autobind() 542 if (!net_eq(sock_net(osk), net)) in netlink_autobind() 544 if (nlk_sk(osk)->pid == pid) { in netlink_autobind()
|
/net/unix/ |
D | af_unix.c | 160 static inline int unix_our_peer(struct sock *sk, struct sock *osk) in unix_our_peer() argument 162 return unix_peer(osk) == sk; in unix_our_peer() 165 static inline int unix_may_send(struct sock *sk, struct sock *osk) in unix_may_send() argument 167 return unix_peer(osk) == NULL || unix_our_peer(sk, osk); in unix_may_send()
|
/net/core/ |
D | sock.c | 871 static void sock_copy(struct sock *nsk, const struct sock *osk) in sock_copy() argument 877 memcpy(nsk, osk, osk->sk_prot->obj_size); in sock_copy() 880 security_sk_clone(osk, nsk); in sock_copy()
|