Lines Matching defs:cache
344 * @name Cache Management
349 * Build a rule cache including all rules currently configured in the kernel.
352 * @arg result Pointer to store resulting cache.
354 * Allocates a new rule cache, initializes it properly and updates it
362 struct nl_cache * cache;
365 if (!(cache = nl_cache_alloc(&rtnl_rule_ops)))
368 cache->c_iarg1 = family;
370 if (sock && (err = nl_cache_refill(sock, cache)) < 0) {
371 free(cache);
375 *result = cache;