Signed-off-by: Thomas Graf <tgraf@suug.ch>
cache->c_iarg2 = arg;
}
-/**
- * Set cache ops flags
- * @arg ops Cache ops
- * @arg arg flags
- */
-void nl_cache_ops_set_flags(struct nl_cache_ops *ops, unsigned int flags)
-{
- ops->co_flags |= flags;
-}
-
/**
* Set cache flags
* @arg cache Cache
cb(ops, arg);
}
+/**
+ * Set default flags for caches of this type
+ * @arg ops Cache ops
+ * @arg flags Flags to set
+ *
+ * The cache operation flags will be derived to all caches allocates
+ * based on this set of cache operations.
+ */
+void nl_cache_ops_set_flags(struct nl_cache_ops *ops, unsigned int flags)
+{
+ ops->co_flags |= flags;
+}
+
/**
* Register a set of cache operations
* @arg ops cache operations