Home | History | Annotate | Download | only in linux

Lines Matching defs:cache

78 idr_cache_warning(struct idr_cache *cache)
85 KASSERT(cache->ic_node != NULL);
88 db_find_sym_and_offset((db_addr_t)(uintptr_t)cache->ic_where,
98 cache->ic_where, curlwp->l_name, curlwp);
105 struct idr_cache *cache = cookie;
107 if (cache->ic_node) {
109 idr_cache_warning(cache);
110 kmem_free(cache->ic_node, sizeof(*cache->ic_node));
112 kmem_free(cache, sizeof(*cache));
287 struct idr_cache *cache;
298 * Get the current lwp's private idr cache.
300 cache = lwp_getspecific(idr_cache_key);
301 if (cache == NULL) {
305 cache = kmem_zalloc(sizeof(*cache), kmflag);
306 if (cache == NULL)
308 lwp_setspecific(idr_cache_key, cache);
317 if (cache->ic_node) {
318 idr_cache_warning(cache);
323 * No cached node. Allocate a new one, store it in the cache,
332 cache->ic_node = node;
333 out: cache->ic_where = __builtin_return_address(0);
340 struct idr_cache *cache;
353 * Grab a node allocated by idr_preload, if we have a cache and
356 cache = lwp_getspecific(idr_cache_key);
357 if (cache == NULL || cache->ic_node == NULL)
359 node = cache->ic_node;
360 cache->ic_node = NULL;
381 cache->ic_node = node;
391 struct idr_cache *cache;
395 /* Get the cache, or bail if it's not there. */
396 cache = lwp_getspecific(idr_cache_key);
397 if (cache == NULL)
408 if (cache->ic_node) {
411 node = cache->ic_node;
412 cache->ic_node = NULL;
413 cache->ic_where = NULL;