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()
351 static struct publication *tipc_nameseq_remove_publ(struct net *net, in tipc_nameseq_remove_publ() argument
382 if (in_own_cluster(net, node)) { in tipc_nameseq_remove_publ()
388 if (in_own_node(net, node)) { in tipc_nameseq_remove_publ()
445 static struct name_seq *nametbl_find_seq(struct net *net, u32 type) in nametbl_find_seq() argument
447 struct tipc_net *tn = net_generic(net, tipc_net_id); in nametbl_find_seq()
460 struct publication *tipc_nametbl_insert_publ(struct net *net, u32 type, in tipc_nametbl_insert_publ() argument
464 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_insert_publ()
466 struct name_seq *seq = nametbl_find_seq(net, type); in tipc_nametbl_insert_publ()
482 publ = tipc_nameseq_insert_publ(net, seq, type, lower, upper, in tipc_nametbl_insert_publ()
488 struct publication *tipc_nametbl_remove_publ(struct net *net, u32 type, in tipc_nametbl_remove_publ() argument
493 struct name_seq *seq = nametbl_find_seq(net, type); in tipc_nametbl_remove_publ()
499 publ = tipc_nameseq_remove_publ(net, seq, lower, node, ref, key); in tipc_nametbl_remove_publ()
524 u32 tipc_nametbl_translate(struct net *net, u32 type, u32 instance, in tipc_nametbl_translate() argument
527 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_translate()
539 seq = nametbl_find_seq(net, type); in tipc_nametbl_translate()
578 } else if (in_own_cluster_exact(net, *destnode)) { in tipc_nametbl_translate()
612 int tipc_nametbl_mc_translate(struct net *net, u32 type, u32 lower, u32 upper, in tipc_nametbl_mc_translate() argument
622 seq = nametbl_find_seq(net, type); in tipc_nametbl_mc_translate()
653 struct publication *tipc_nametbl_publish(struct net *net, u32 type, u32 lower, in tipc_nametbl_publish() argument
659 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_publish()
669 publ = tipc_nametbl_insert_publ(net, type, lower, upper, scope, in tipc_nametbl_publish()
673 buf = tipc_named_publish(net, publ); in tipc_nametbl_publish()
675 tipc_named_process_backlog(net); in tipc_nametbl_publish()
680 named_cluster_distribute(net, buf); in tipc_nametbl_publish()
687 int tipc_nametbl_withdraw(struct net *net, u32 type, u32 lower, u32 ref, in tipc_nametbl_withdraw() argument
692 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_withdraw()
695 publ = tipc_nametbl_remove_publ(net, type, lower, tn->own_addr, in tipc_nametbl_withdraw()
699 skb = tipc_named_withdraw(net, publ); in tipc_nametbl_withdraw()
701 tipc_named_process_backlog(net); in tipc_nametbl_withdraw()
712 named_cluster_distribute(net, skb); in tipc_nametbl_withdraw()
723 struct tipc_net *tn = net_generic(s->net, tipc_net_id); in tipc_nametbl_subscribe()
729 seq = nametbl_find_seq(s->net, type); in tipc_nametbl_subscribe()
748 struct tipc_net *tn = net_generic(s->net, tipc_net_id); in tipc_nametbl_unsubscribe()
752 seq = nametbl_find_seq(s->net, s->seq.type); in tipc_nametbl_unsubscribe()
768 int tipc_nametbl_init(struct net *net) in tipc_nametbl_init() argument
770 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_init()
794 static void tipc_purge_publications(struct net *net, struct name_seq *seq) in tipc_purge_publications() argument
804 tipc_nameseq_remove_publ(net, seq, publ->lower, publ->node, in tipc_purge_publications()
815 void tipc_nametbl_stop(struct net *net) in tipc_nametbl_stop() argument
820 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nametbl_stop()
832 tipc_purge_publications(net, seq); in tipc_nametbl_stop()
939 static int tipc_nl_seq_list(struct net *net, struct tipc_nl_msg *msg, in tipc_nl_seq_list() argument
942 struct tipc_net *tn = net_generic(net, tipc_net_id); in tipc_nl_seq_list()
957 seq = nametbl_find_seq(net, *last_type); in tipc_nl_seq_list()
991 struct net *net = sock_net(skb->sk); in tipc_nl_name_table_dump() local
1002 err = tipc_nl_seq_list(net, &msg, &last_type, &last_lower, &last_publ); in tipc_nl_name_table_dump()