Exemplo n.º 1
0
void link_destroy(struct rtnl_link *link)
{
	if (link)
		nl_object_free(OBJ_CAST(link));
}
Exemplo n.º 2
0
void nl_object_put(struct nl_object *obj)
{
    obj->ce_refcnt--;
    if (!obj->ce_refcnt)
        nl_object_free(obj);
}
Exemplo 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);
}