Lines Matching defs:cache
21 #include <netlink/cache.h>
58 * @name Cache Management
63 * Build a route cache holding all routes currently configured in the kernel
68 * Allocates a new cache, initializes it properly and updates it to
72 * cache after using it.
73 * @return The cache or NULL if an error has occured.
78 struct nl_cache *cache;
81 if (!(cache = nl_cache_alloc(&rtnl_route_ops)))
84 cache->c_iarg1 = family;
85 cache->c_iarg2 = flags;
87 if (sk && (err = nl_cache_refill(sk, cache)) < 0) {
88 free(cache);
92 *result = cache;