/** * tipc_core_stop - switch TIPC from SINGLE NODE to NOT RUNNING mode */ static void tipc_core_stop(void) { tipc_netlink_stop(); tipc_cfg_stop(); tipc_subscr_stop(); tipc_nametbl_stop(); tipc_ref_table_stop(); tipc_socket_stop(); tipc_unregister_sysctl(); }
static void __exit tipc_exit(void) { tipc_bearer_cleanup(); unregister_pernet_subsys(&tipc_net_ops); tipc_netlink_stop(); tipc_netlink_compat_stop(); tipc_socket_stop(); tipc_unregister_sysctl(); pr_info("Deactivated\n"); }
static void tipc_core_stop(void) { tipc_netlink_stop(); tipc_handler_stop(); tipc_cfg_stop(); tipc_subscr_stop(); tipc_nametbl_stop(); tipc_ref_table_stop(); tipc_socket_stop(); tipc_log_resize(0); }
static int __init tipc_init(void) { int err; pr_info("Activated (version " TIPC_MOD_VER ")\n"); sysctl_tipc_rmem[0] = TIPC_CONN_OVERLOAD_LIMIT >> 4 << TIPC_LOW_IMPORTANCE; sysctl_tipc_rmem[1] = TIPC_CONN_OVERLOAD_LIMIT >> 4 << TIPC_CRITICAL_IMPORTANCE; sysctl_tipc_rmem[2] = TIPC_CONN_OVERLOAD_LIMIT; err = tipc_netlink_start(); if (err) goto out_netlink; err = tipc_netlink_compat_start(); if (err) goto out_netlink_compat; err = tipc_socket_init(); if (err) goto out_socket; err = tipc_register_sysctl(); if (err) goto out_sysctl; err = register_pernet_subsys(&tipc_net_ops); if (err) goto out_pernet; err = tipc_bearer_setup(); if (err) goto out_bearer; pr_info("Started in single node mode\n"); return 0; out_bearer: unregister_pernet_subsys(&tipc_net_ops); out_pernet: tipc_unregister_sysctl(); out_sysctl: tipc_socket_stop(); out_socket: tipc_netlink_compat_stop(); out_netlink_compat: tipc_netlink_stop(); out_netlink: pr_err("Unable to start in single node mode\n"); return err; }
static int __init tipc_init(void) { int err; pr_info("Activated (version " TIPC_MOD_VER ")\n"); sysctl_tipc_rmem[0] = RCVBUF_MIN; sysctl_tipc_rmem[1] = RCVBUF_DEF; sysctl_tipc_rmem[2] = RCVBUF_MAX; err = tipc_netlink_start(); if (err) goto out_netlink; err = tipc_netlink_compat_start(); if (err) goto out_netlink_compat; err = tipc_socket_init(); if (err) goto out_socket; err = tipc_register_sysctl(); if (err) goto out_sysctl; err = register_pernet_subsys(&tipc_net_ops); if (err) goto out_pernet; err = tipc_bearer_setup(); if (err) goto out_bearer; pr_info("Started in single node mode\n"); return 0; out_bearer: unregister_pernet_subsys(&tipc_net_ops); out_pernet: tipc_unregister_sysctl(); out_sysctl: tipc_socket_stop(); out_socket: tipc_netlink_compat_stop(); out_netlink_compat: tipc_netlink_stop(); out_netlink: pr_err("Unable to start in single node mode\n"); return err; }
void tipc_core_stop(void) { if (tipc_mode != TIPC_NODE_MODE) return; tipc_mode = TIPC_NOT_RUNNING; tipc_netlink_stop(); tipc_handler_stop(); tipc_cfg_stop(); tipc_subscr_stop(); tipc_reg_stop(); tipc_nametbl_stop(); tipc_ref_table_stop(); tipc_socket_stop(); }