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

struct nl_cache_ops* nl_cache_ops_lookup ( const char *  name  )  [read]

Lookup the set cache operations of a certain cache type

  • name name of the cache type
The cache operations or NULL if no operations have been registered under the specified name.

Definition at line 37 of file cache_mngt.c.

References nl_cache_ops::co_name, and nl_cache_ops::co_next.

Referenced by nl_cache_alloc_name(), nl_cache_mngr_add(), nl_cache_mngt_register(), nl_cache_mngt_require(), and nl_object_alloc_name().

      struct nl_cache_ops *ops;

      for (ops = cache_ops; ops; ops = ops->co_next)
            if (!strcmp(ops->co_name, name))
                  return ops;

      return NULL;

Generated by  Doxygen 1.6.0   Back to index