Searched refs:osock (Results 1 – 2 of 2) sorted by relevance
142 struct socket *osock = tc->t_sock; in rds_tcp_reset_callbacks() local144 if (!osock) in rds_tcp_reset_callbacks()172 lock_sock(osock->sk); in rds_tcp_reset_callbacks()179 rds_tcp_restore_callbacks(osock, tc); in rds_tcp_reset_callbacks()180 release_sock(osock->sk); in rds_tcp_reset_callbacks()181 sock_release(osock); in rds_tcp_reset_callbacks()
1622 static struct file *kcm_clone(struct socket *osock) in kcm_clone() argument1631 newsock->type = osock->type; in kcm_clone()1632 newsock->ops = osock->ops; in kcm_clone()1636 newsk = sk_alloc(sock_net(osock->sk), PF_KCM, GFP_KERNEL, in kcm_clone()1643 init_kcm_sock(kcm_sk(newsk), kcm_sk(osock->sk)->mux); in kcm_clone()1645 return sock_alloc_file(newsock, 0, osock->sk->sk_prot_creator->name); in kcm_clone()