Searched refs:tvlv_new (Results 1 – 1 of 1) sorted by relevance
776 struct batadv_tvlv_container *tvlv_old, *tvlv_new; in batadv_tvlv_container_register() local781 tvlv_new = kzalloc(sizeof(*tvlv_new) + tvlv_value_len, GFP_ATOMIC); in batadv_tvlv_container_register()782 if (!tvlv_new) in batadv_tvlv_container_register()785 tvlv_new->tvlv_hdr.version = version; in batadv_tvlv_container_register()786 tvlv_new->tvlv_hdr.type = type; in batadv_tvlv_container_register()787 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len); in batadv_tvlv_container_register()789 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); in batadv_tvlv_container_register()790 INIT_HLIST_NODE(&tvlv_new->list); in batadv_tvlv_container_register()791 atomic_set(&tvlv_new->refcount, 1); in batadv_tvlv_container_register()796 hlist_add_head(&tvlv_new->list, &bat_priv->tvlv.container_list); in batadv_tvlv_container_register()