void tipc_net_stop(void) { if (tipc_mode != TIPC_NET_MODE) return; write_lock_bh(&tipc_net_lock); tipc_bearer_stop(); tipc_mode = TIPC_NODE_MODE; tipc_bclink_stop(); net_stop(); write_unlock_bh(&tipc_net_lock); info("Left network mode\n"); }
void tipc_net_stop(void) { if (!tipc_own_addr) return; tipc_nametbl_withdraw(TIPC_CFG_SRV, tipc_own_addr, 0, tipc_own_addr); rtnl_lock(); tipc_bearer_stop(); tipc_bclink_stop(); tipc_node_stop(); rtnl_unlock(); pr_info("Left network mode\n"); }
void tipc_net_stop(void) { struct tipc_node *node, *t_node; if (!tipc_own_addr) return; write_lock_bh(&tipc_net_lock); tipc_bearer_stop(); tipc_bclink_stop(); list_for_each_entry_safe(node, t_node, &tipc_node_list, list) tipc_node_delete(node); write_unlock_bh(&tipc_net_lock); pr_info("Left network mode\n"); }
void tipc_net_stop(void) { struct tipc_node *node, *t_node; if (tipc_mode != TIPC_NET_MODE) return; write_lock_bh(&tipc_net_lock); tipc_mode = TIPC_NODE_MODE; tipc_bearer_stop(); tipc_bclink_stop(); list_for_each_entry_safe(node, t_node, &tipc_node_list, list) tipc_node_delete(node); write_unlock_bh(&tipc_net_lock); info("Left network mode\n"); }
void tipc_net_stop(struct net *net) { struct tipc_net *tn = net_generic(net, tipc_net_id); if (!tn->own_addr) return; tipc_nametbl_withdraw(net, TIPC_CFG_SRV, tn->own_addr, 0, tn->own_addr); rtnl_lock(); tipc_bearer_stop(net); tipc_node_stop(net); rtnl_unlock(); pr_info("Left network mode\n"); }