Lines Matching refs:cache
110 * struct netlbl_lsm_cache - NetLabel LSM security attribute cache
112 * @free: LSM supplied function to free the cache data
113 * @data: LSM supplied cache data
118 * cache. If the LSM has to perform a lot of translation from the NetLabel
119 * security attributes into it's own internal representation then the cache
121 * overhead on a cache hit.
164 * @cache: NetLabel LSM specific cache
197 struct netlbl_lsm_cache *cache;
223 * @cache_invalidate: invalidate cache
224 * @cache_add: add cache entry
269 * netlbl_secattr_cache_alloc - Allocate and initialize a secattr cache
279 struct netlbl_lsm_cache *cache;
281 cache = kzalloc_noprof(sizeof(*cache), flags);
282 if (cache)
283 refcount_set(&cache->refcount, 1);
284 return cache;
291 * @cache: the struct to free
297 static inline void netlbl_secattr_cache_free(struct netlbl_lsm_cache *cache)
299 if (!refcount_dec_and_test(&cache->refcount))
302 if (cache->free)
303 cache->free(cache->data);
304 kfree(cache);
368 netlbl_secattr_cache_free(secattr->cache);
498 * LSM label mapping cache operations