Lines Matching refs:rnet
55 struct rdma_dev_net *rnet = rdma_net_to_dev_net(&init_net); in rdma_nl_chk_listeners() local
57 return netlink_has_listeners(rnet->nl_sock, group); in rdma_nl_chk_listeners()
264 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_unicast() local
267 err = netlink_unicast(rnet->nl_sock, skb, pid, MSG_DONTWAIT); in rdma_nl_unicast()
274 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_unicast_wait() local
277 err = netlink_unicast(rnet->nl_sock, skb, pid, 0); in rdma_nl_unicast_wait()
285 struct rdma_dev_net *rnet = rdma_net_to_dev_net(net); in rdma_nl_multicast() local
287 return nlmsg_multicast(rnet->nl_sock, skb, 0, group, flags); in rdma_nl_multicast()
309 int rdma_nl_net_init(struct rdma_dev_net *rnet) in rdma_nl_net_init() argument
311 struct net *net = read_pnet(&rnet->net); in rdma_nl_net_init()
322 rnet->nl_sock = nls; in rdma_nl_net_init()
326 void rdma_nl_net_exit(struct rdma_dev_net *rnet) in rdma_nl_net_exit() argument
328 netlink_kernel_release(rnet->nl_sock); in rdma_nl_net_exit()