Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
cache.h File Reference
#include <linux/kref.h>
#include <linux/slab.h>
#include <linux/atomic.h>
#include <linux/proc_fs.h>

Go to the source code of this file.

Data Structures

struct  cache_head
 
struct  cache_detail_procfs
 
struct  cache_detail_pipefs
 
struct  cache_detail
 
struct  cache_req
 
struct  cache_deferred_req
 

Macros

#define CACHE_VALID   0 /* Entry contains valid data */
 
#define CACHE_NEGATIVE   1 /* Negative entry - there is no match for the key */
 
#define CACHE_PENDING   2 /* An upcall has been sent but no reply received yet*/
 
#define CACHE_NEW_EXPIRY   120 /* keep new things pending confirmation for 120 seconds */
 
#define NEVER   (0x7FFFFFFF)
 

Functions

struct cache_headsunrpc_cache_lookup (struct cache_detail *detail, struct cache_head *key, int hash)
 
struct cache_headsunrpc_cache_update (struct cache_detail *detail, struct cache_head *new, struct cache_head *old, int hash)
 
int sunrpc_cache_pipe_upcall (struct cache_detail *detail, struct cache_head *h, void(*cache_request)(struct cache_detail *, struct cache_head *, char **, int *))
 
void cache_clean_deferred (void *owner)
 
int cache_check (struct cache_detail *detail, struct cache_head *h, struct cache_req *rqstp)
 
void cache_flush (void)
 
void cache_purge (struct cache_detail *detail)
 
void __init cache_initialize (void)
 
int cache_register_net (struct cache_detail *cd, struct net *net)
 
void cache_unregister_net (struct cache_detail *cd, struct net *net)
 
struct cache_detailcache_create_net (struct cache_detail *tmpl, struct net *net)
 
void cache_destroy_net (struct cache_detail *cd, struct net *net)
 
void sunrpc_init_cache_detail (struct cache_detail *cd)
 
void sunrpc_destroy_cache_detail (struct cache_detail *cd)
 
int sunrpc_cache_register_pipefs (struct dentry *parent, const char *, umode_t, struct cache_detail *)
 
void sunrpc_cache_unregister_pipefs (struct cache_detail *)
 
void qword_add (char **bpp, int *lp, char *str)
 
void qword_addhex (char **bpp, int *lp, char *buf, int blen)
 
int qword_get (char **bpp, char *dest, int bufsize)
 

Variables

struct file_operations cache_file_operations_pipefs
 
struct file_operations content_file_operations_pipefs
 
struct file_operations cache_flush_operations_pipefs
 

Macro Definition Documentation

#define CACHE_NEGATIVE   1 /* Negative entry - there is no match for the key */

Definition at line 58 of file cache.h.

#define CACHE_NEW_EXPIRY   120 /* keep new things pending confirmation for 120 seconds */

Definition at line 61 of file cache.h.

#define CACHE_PENDING   2 /* An upcall has been sent but no reply received yet*/

Definition at line 59 of file cache.h.

#define CACHE_VALID   0 /* Entry contains valid data */

Definition at line 57 of file cache.h.

#define NEVER   (0x7FFFFFFF)

Definition at line 199 of file cache.h.

Function Documentation

int cache_check ( struct cache_detail detail,
struct cache_head h,
struct cache_req rqstp 
)

Definition at line 256 of file cache.c.

void cache_clean_deferred ( void owner)

Definition at line 694 of file cache.c.

struct cache_detail* cache_create_net ( struct cache_detail tmpl,
struct net net 
)
read

Definition at line 1660 of file cache.c.

void cache_destroy_net ( struct cache_detail cd,
struct net net 
)

Definition at line 1679 of file cache.c.

void cache_flush ( void  )

Definition at line 493 of file cache.c.

void __init cache_initialize ( void  )

Definition at line 1636 of file cache.c.

void cache_purge ( struct cache_detail detail)

Definition at line 502 of file cache.c.

int cache_register_net ( struct cache_detail cd,
struct net net 
)

Definition at line 1641 of file cache.c.

void cache_unregister_net ( struct cache_detail cd,
struct net net 
)

Definition at line 1653 of file cache.c.

void qword_add ( char **  bpp,
int lp,
char str 
)

Definition at line 1046 of file cache.c.

void qword_addhex ( char **  bpp,
int lp,
char buf,
int  blen 
)

Definition at line 1082 of file cache.c.

int qword_get ( char **  bpp,
char dest,
int  bufsize 
)

Definition at line 1205 of file cache.c.

struct cache_head* sunrpc_cache_lookup ( struct cache_detail detail,
struct cache_head key,
int  hash 
)
read

Definition at line 59 of file cache.c.

int sunrpc_cache_pipe_upcall ( struct cache_detail detail,
struct cache_head h,
void(*)(struct cache_detail *, struct cache_head *, char **, int *)  cache_request 
)

Definition at line 1143 of file cache.c.

int sunrpc_cache_register_pipefs ( struct dentry parent,
const char ,
umode_t  ,
struct cache_detail  
)

Definition at line 1803 of file cache.c.

void sunrpc_cache_unregister_pipefs ( struct cache_detail )

Definition at line 1823 of file cache.c.

struct cache_head* sunrpc_cache_update ( struct cache_detail detail,
struct cache_head new,
struct cache_head old,
int  hash 
)
read

Definition at line 144 of file cache.c.

void sunrpc_destroy_cache_detail ( struct cache_detail cd)

Definition at line 365 of file cache.c.

void sunrpc_init_cache_detail ( struct cache_detail cd)

Definition at line 347 of file cache.c.

Variable Documentation

struct file_operations cache_file_operations_pipefs

Definition at line 1732 of file cache.c.

struct file_operations cache_flush_operations_pipefs

Definition at line 1795 of file cache.c.

struct file_operations content_file_operations_pipefs

Definition at line 1757 of file cache.c.