Lines Matching refs:cache
24 - general cache lookup with correct locking
26 - allowing an EXPIRED time on cache items, and removing
28 - making requests to user-space to fill in cache entries
29 - allowing user-space to directly set entries in the cache
31 cache entries, and replaying those requests when the cache entry
38 1/ A cache needs a datum to store. This is in the form of a
43 Each cache element is reference counted and contains
44 expiry and update times for use in cache management.
45 2/ A cache needs a "cache_detail" structure that
46 describes the cache. This stores the hash table, some
47 parameters for cache management, and some operations detailing how
48 to work with particular cache items.
73 contents of a cache. This should show one item,
85 cache entry. It is in 'buf' of length 'len'.
87 cache with sunrpc_cache_lookup, and update the item
91 3/ A cache needs to be registered using cache_register(). This
95 Using a cache
98 To find a value in a cache, call sunrpc_cache_lookup passing a pointer
101 entry is found, a new entry will be create, added to the cache, and
113 done when the found cache item is not uptodate, but the is reason to
114 believe that userspace might provide information soon. When the cache
127 Populating a cache
130 Each cache has a name, and when the cache is registered, a directory
134 for communicating between kernel and user for populating the cache.
136 with the cache.
139 passed as a whole to the cache for parsing and interpretation.
140 Each cache can treat the write requests differently, but it is
145 with the intention that an item in the cache with the give key
149 Reading from a channel is a bit more interesting. When a cache
151 expire, a request is lodged for that cache item to be updated by
170 Each cache should define a "cache_parse" method which takes a message
174 Each cache should also define a "cache_request" method which
175 takes a cache item and encodes a request into the buffer
178 Note: If a cache has no active readers on the channel, and has had not
188 While each cache is free to use its own format for requests