示例#1
0
void link_destroy(struct rtnl_link *link)
{
	if (link)
		nl_object_free(OBJ_CAST(link));
}
示例#2
0
void nl_object_put(struct nl_object *obj)
{
    obj->ce_refcnt--;
    if (!obj->ce_refcnt)
        nl_object_free(obj);
}
示例#3
0
文件: addr.c 项目: artisdom/mipv6
/**
 * 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);
}