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

void nl_cache_mngt_provide ( struct nl_cache *  cache  ) 

Provide a cache for global use

  • cache cache to provide
Offers the specified cache to be used by other modules. Only one cache per type may be shared at a time, a previsouly provided caches will be overwritten.

Definition at line 190 of file cache_mngt.c.

References nl_cache_ops::co_major_cache.

Referenced by nl_cache_mngr_add().

{
      struct nl_cache_ops *ops;

      ops = cache_ops_lookup_for_obj(cache->c_ops->co_obj_ops);
      if (!ops)
            BUG();
      else
            ops->co_major_cache = cache;
}


Generated by  Doxygen 1.6.0   Back to index