Esempio n. 1
0
void link_destroy(struct rtnl_link *link)
{
	if (link)
		nl_object_free(OBJ_CAST(link));
}
Esempio n. 2
0
void nl_object_put(struct nl_object *obj)
{
    obj->ce_refcnt--;
    if (!obj->ce_refcnt)
        nl_object_free(obj);
}
Esempio n. 3
0
/**
 * Free an address object
 * @arg addr		Address object to be freed.
 *
 * @note Always use rtnl_addr_put() unless you're absolutely sure
 *       that no other user may have a reference on this object.
 */
void rtnl_addr_free(struct rtnl_addr *addr)
{
	nl_object_free((struct nl_object *) addr);
}