Lines Matching defs:tvlv_new
235 struct batadv_tvlv_container *tvlv_old, *tvlv_new;
240 tvlv_new = kzalloc(sizeof(*tvlv_new) + tvlv_value_len, GFP_ATOMIC);
241 if (!tvlv_new)
244 tvlv_new->tvlv_hdr.version = version;
245 tvlv_new->tvlv_hdr.type = type;
246 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len);
248 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len));
249 INIT_HLIST_NODE(&tvlv_new->list);
250 kref_init(&tvlv_new->refcount);
256 kref_get(&tvlv_new->refcount);
257 hlist_add_head(&tvlv_new->list, &bat_priv->tvlv.container_list);
261 batadv_tvlv_container_put(tvlv_new);