Home
last modified time | relevance | path

Searched refs:tvlv_new (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/net/batman-adv/
Dtvlv.c229 struct batadv_tvlv_container *tvlv_old, *tvlv_new; in batadv_tvlv_container_register() local
234 tvlv_new = kzalloc(sizeof(*tvlv_new) + tvlv_value_len, GFP_ATOMIC); in batadv_tvlv_container_register()
235 if (!tvlv_new) in batadv_tvlv_container_register()
238 tvlv_new->tvlv_hdr.version = version; in batadv_tvlv_container_register()
239 tvlv_new->tvlv_hdr.type = type; in batadv_tvlv_container_register()
240 tvlv_new->tvlv_hdr.len = htons(tvlv_value_len); in batadv_tvlv_container_register()
242 memcpy(tvlv_new + 1, tvlv_value, ntohs(tvlv_new->tvlv_hdr.len)); in batadv_tvlv_container_register()
243 INIT_HLIST_NODE(&tvlv_new->list); in batadv_tvlv_container_register()
244 kref_init(&tvlv_new->refcount); in batadv_tvlv_container_register()
250 kref_get(&tvlv_new->refcount); in batadv_tvlv_container_register()
[all …]