Lines Matching refs:my_vis_info
49 static struct vis_info *my_vis_info;
517 struct vis_info *info = (struct vis_info *)my_vis_info;
597 if (info == my_vis_info) /* never purge own data. */
711 send_list_add(my_vis_info);
746 my_vis_info = kmalloc(1000, GFP_ATOMIC);
747 if (!my_vis_info) {
753 my_vis_info->first_seen = jiffies - msecs_to_jiffies(VIS_INTERVAL);
754 INIT_LIST_HEAD(&my_vis_info->recv_list);
755 INIT_LIST_HEAD(&my_vis_info->send_list);
756 kref_init(&my_vis_info->refcount);
757 my_vis_info->packet.version = COMPAT_VERSION;
758 my_vis_info->packet.packet_type = BAT_VIS;
759 my_vis_info->packet.ttl = TTL;
760 my_vis_info->packet.seqno = 0;
761 my_vis_info->packet.entries = 0;
765 memcpy(my_vis_info->packet.vis_orig, main_if_addr, ETH_ALEN);
766 memcpy(my_vis_info->packet.sender_orig, main_if_addr, ETH_ALEN);
768 if (hash_add(vis_hash, my_vis_info) < 0) {
771 kref_put(&my_vis_info->refcount, free_info);
807 my_vis_info = NULL;