Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

void nl_cache_clear ( struct nl_cache *  cache  ) 

Clear a cache.

  • cache cache to clear
Removes all elements of a cache.

Definition at line 266 of file cache.c.

References nl_cache_remove().

Referenced by nl_cache_free(), and nl_cache_refill().

      struct nl_object *obj, *tmp;

      NL_DBG(1, "Clearing cache %p <%s>...\n", cache, nl_cache_name(cache));

      nl_list_for_each_entry_safe(obj, tmp, &cache->c_items, ce_list)

Generated by  Doxygen 1.6.0   Back to index