/* reg_callback - inform TIPC user about current operating mode  */
static void reg_callback(struct tipc_user *user_ptr)
/* reg_callback - inform TIPC user about current operating mode  */
static void reg_callback(struct tipc_user *user_ptr)
{
	tipc_mode_event cb;
	void *arg;
	spin_lock_bh(&reg_lock);
	cb = user_ptr->callback;
	arg = user_ptr->usr_handle;
	spin_unlock_bh(&reg_lock);
	if (cb)
		cb(arg, tipc_mode, tipc_own_addr);
}