Lines Matching defs:cache

49  * Creates an AVL tree and initializes the given cache handle.
50 * Transfers the cache to READY state.
52 * This function does not populate the cache.
58 * memory for the node data stored in the cache when
62 * cache to the caller of smb_cache_iterate or any other
65 * datasz Size of data stored in the cache if it's fixed size.
98 * Destroys the cache.
100 * Transfers the cache to DESTROYING state while it's waiting for
102 * to start. When all entries are removed the cache is transferred to
132 * Removes and frees all the cache entries without destroy
133 * the cache itself.
148 * the cache EEXIST error code is returned.
191 * Uses the given 'data' as key to find a cache entry
220 * Initializes the given cursor for iterating the cache
230 * Iterate the cache using the given cursor.
233 * specified at cache creation time.
235 * If the cache is modified while an iteration is in progress it causes
237 * the whole cache while it is being iterated.
269 * Returns the number of cache entries
285 * Transfers the cache into REFRESHING state. This function needs
286 * to be called when the whole cache is being populated or refereshed
289 * Calling this function will ensure any read access to the cache will
293 * the cache creation time.
295 * If it is okay for the cache to be accessed while it's being populated
298 * If another thread is already updating the cache, other callers will wait
299 * until cache is no longer in REFRESHING state. The return code is decided
300 * based on the new state of the cache.
343 * Transfers the cache from REFRESHING to READY state.
345 * Nothing will happen if the cache is no longer available
373 * Lock the cache with the specified mode.
374 * If the cache is in updating state and a read lock is
378 * Whenever a lock is granted, the number of inflight cache
425 * Lock the cache for reading
434 * Lock the cache for modification
443 * Unlock the cache
459 * Waits for ch_wait seconds if cache is in UPDATING state.
460 * Upon wake up returns true if cache is ready to be used,
485 * Removes and frees all the cache entries
492 avl_tree_t *cache;
494 cache = &chandle->ch_cache;
495 while ((cnode = avl_destroy_nodes(cache, &cookie)) != NULL) {