Lines Matching refs:net

232 static struct publication *tipc_nameseq_insert_publ(struct net *net,  in tipc_nameseq_insert_publ()  argument
321 if (in_own_cluster(net, node)) { in tipc_nameseq_insert_publ()
326 if (in_own_node(net, node)) { in tipc_nameseq_insert_publ()
355 static struct publication *tipc_nameseq_remove_publ(struct net *net, in tipc_nameseq_remove_publ() argument
386 if (in_own_cluster(net, node)) { in tipc_nameseq_remove_publ()
392 if (in_own_node(net, node)) { in tipc_nameseq_remove_publ()
455 static struct name_seq *nametbl_find_seq(struct net *net, u32 type) in nametbl_find_seq() argument
457 struct tipc_net *tn = net_generic(net, tipc_net_id); in nametbl_find_seq()
470 struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type, in tipc_nametbl_insert_publ() argument
474 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_insert_publ()
476 struct name_seq *seq = nametbl_find_seq(net, type); in tipc_nametbl_insert_publ()
492 publ = tipc_nameseq_insert_publ(net, seq, type, lower, upper, in tipc_nametbl_insert_publ()
498 struct publication *tipc_nametbl_remove_publ(struct net *net, u32 type, in tipc_nametbl_remove_publ() argument
503 struct name_seq *seq = nametbl_find_seq(net, type); in tipc_nametbl_remove_publ()
509 publ = tipc_nameseq_remove_publ(net, seq, lower, node, ref, key); in tipc_nametbl_remove_publ()
534 u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, in tipc_nametbl_translate() argument
537 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_translate()
549 seq = nametbl_find_seq(net, type); in tipc_nametbl_translate()
588 } else if (in_own_cluster_exact(net, *destnode)) { in tipc_nametbl_translate()
622 int tipc_nametbl_mc_translate(struct net *net, u32 type, u32 lower, u32 upper, in tipc_nametbl_mc_translate() argument
632 seq = nametbl_find_seq(net, type); in tipc_nametbl_mc_translate()
663 struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower, in tipc_nametbl_publish() argument
669 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_publish()
679 publ = tipc_nametbl_insert_publ(net, type, lower, upper, scope, in tipc_nametbl_publish()
683 buf = tipc_named_publish(net, publ); in tipc_nametbl_publish()
685 tipc_named_process_backlog(net); in tipc_nametbl_publish()
690 named_cluster_distribute(net, buf); in tipc_nametbl_publish()
697 int tipc_nametbl_withdraw(struct net *net, u32 type, u32 lower, u32 ref, in tipc_nametbl_withdraw() argument
702 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_withdraw()
705 publ = tipc_nametbl_remove_publ(net, type, lower, tn->own_addr, in tipc_nametbl_withdraw()
709 skb = tipc_named_withdraw(net, publ); in tipc_nametbl_withdraw()
711 tipc_named_process_backlog(net); in tipc_nametbl_withdraw()
722 named_cluster_distribute(net, skb); in tipc_nametbl_withdraw()
733 struct tipc_net *tn = net_generic(s->net, tipc_net_id); in tipc_nametbl_subscribe()
739 seq = nametbl_find_seq(s->net, type); in tipc_nametbl_subscribe()
758 struct tipc_net *tn = net_generic(s->net, tipc_net_id); in tipc_nametbl_unsubscribe()
762 seq = nametbl_find_seq(s->net, s->seq.type); in tipc_nametbl_unsubscribe()
778 int tipc_nametbl_init(struct net *net) in tipc_nametbl_init() argument
780 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_init()
804 static void tipc_purge_publications(struct net *net, struct name_seq *seq) in tipc_purge_publications() argument
814 tipc_nameseq_remove_publ(net, seq, publ->lower, publ->node, in tipc_purge_publications()
825 void tipc_nametbl_stop(struct net *net) in tipc_nametbl_stop() argument
830 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_stop()
842 tipc_purge_publications(net, seq); in tipc_nametbl_stop()
949 static int tipc_nl_seq_list(struct net *net, struct tipc_nl_msg *msg, in tipc_nl_seq_list() argument
952 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_seq_list()
967 seq = nametbl_find_seq(net, *last_type); in tipc_nl_seq_list()
1001 struct net *net = sock_net(skb->sk); in tipc_nl_name_table_dump() local
1012 err = tipc_nl_seq_list(net, &msg, &last_type, &last_lower, &last_publ); in tipc_nl_name_table_dump()