/* * Dumps part of the cache */ char *item_cachedump(unsigned int slabs_clsid, unsigned int limit, unsigned int *bytes) { char *ret; mutex_lock(&cache_lock); ret = do_item_cachedump(slabs_clsid, limit, bytes); pthread_mutex_unlock(&cache_lock); return ret; }
/* * Dumps part of the cache */ char *item_cachedump(struct default_engine *engine, unsigned int slabs_clsid, unsigned int limit, unsigned int *bytes) { char *ret; pthread_mutex_lock(&engine->cache_lock); ret = do_item_cachedump(slabs_clsid, limit, bytes); pthread_mutex_unlock(&engine->cache_lock); return ret; }