Go to the documentation of this file.
13 #ifndef _LINUX_SUNRPC_CACHE_H_
14 #define _LINUX_SUNRPC_CACHE_H_
17 #include <linux/slab.h>
58 #define CACHE_NEGATIVE 1
59 #define CACHE_PENDING 2
61 #define CACHE_NEW_EXPIRY 120
184 static inline int cache_valid(
struct cache_head *h)
199 #define NEVER (0x7FFFFFFF)
217 static inline int get_int(
char **
bpp,
int *anint)
233 static inline int get_uint(
char **bpp,
unsigned int *anint)
236 int len =
qword_get(bpp, buf,
sizeof(buf));
254 static inline time_t seconds_since_boot(
void)
261 static inline time_t convert_to_wallclock(
time_t sinceboot)
265 return boot.tv_sec + sinceboot;
268 static inline time_t get_expiry(
char **bpp)
273 if (get_int(bpp, &rv))
278 return rv - boot.tv_sec;