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

struct nl_cache* nl_cache_alloc_name ( const char *  kind  )  [read]

Allocate an empty cache based on type name

  • kind Name of cache type
    A newly allocated and initialized cache.

Definition at line 205 of file cache.c.

References nl_cache_alloc_from_ops(), and nl_cache_mngt_lookup().

      struct nl_cache_ops *ops;

      ops = nl_cache_mngt_lookup(kind);
      if (!ops) {
            nl_error(ENOENT, "Unable to lookup cache \"%s\"", kind);
            return NULL;

      return nl_cache_alloc_from_ops(ops);

Generated by  Doxygen 1.6.0   Back to index