Lines Matching full:cache
2 RPC Cache
31 - general cache lookup with correct locking
33 - allowing an EXPIRED time on cache items, and removing
35 - making requests to user-space to fill in cache entries
36 - allowing user-space to directly set entries in the cache
38 cache entries, and replaying those requests when the cache entry
42 Creating a Cache
45 - A cache needs a datum to store. This is in the form of a
49 Each cache element is reference counted and contains
50 expiry and update times for use in cache management.
51 - A cache needs a "cache_detail" structure that
52 describes the cache. This stores the hash table, some
53 parameters for cache management, and some operations detailing how
54 to work with particular cache items.
85 contents of a cache. This should show one item,
98 cache entry. It is in 'buf' of length 'len'.
100 cache with sunrpc_cache_lookup_rcu, and update the item
104 - A cache needs to be registered using cache_register(). This
108 Using a cache
111 To find a value in a cache, call sunrpc_cache_lookup_rcu passing a pointer
114 entry is found, a new entry will be create, added to the cache, and
126 done when the found cache item is not uptodate, but the is reason to
127 believe that userspace might provide information soon. When the cache
140 Populating a cache
143 Each cache has a name, and when the cache is registered, a directory
147 for communicating between kernel and user for populating the cache.
149 with the cache.
152 passed as a whole to the cache for parsing and interpretation.
153 Each cache can treat the write requests differently, but it is
160 with the intention that an item in the cache with the give key
164 Reading from a channel is a bit more interesting. When a cache
166 expire, a request is lodged for that cache item to be updated by
186 Each cache should define a "cache_parse" method which takes a message
190 Each cache should also define a "cache_request" method which
191 takes a cache item and encodes a request into the buffer
195 If a cache has no active readers on the channel, and has had not
205 While each cache is free to use its own format for requests