Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cache_lib.c File Reference
#include <linux/kmod.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/mount.h>
#include <linux/namei.h>
#include <linux/slab.h>
#include <linux/sunrpc/cache.h>
#include <linux/sunrpc/rpc_pipe_fs.h>
#include <net/net_namespace.h>
#include "cache_lib.h"

Go to the source code of this file.

Macros

#define NFS_CACHE_UPCALL_PATHLEN   256
 
#define NFS_CACHE_UPCALL_TIMEOUT   15
 

Functions

 module_param_string (cache_getent, nfs_cache_getent_prog, sizeof(nfs_cache_getent_prog), 0600)
 
 MODULE_PARM_DESC (cache_getent,"Path to the client cache upcall program")
 
 module_param_named (cache_getent_timeout, nfs_cache_getent_timeout, ulong, 0600)
 
 MODULE_PARM_DESC (cache_getent_timeout,"Timeout (in seconds) after which ""the cache upcall is assumed to have failed")
 
int nfs_cache_upcall (struct cache_detail *cd, char *entry_name)
 
void nfs_cache_defer_req_put (struct nfs_cache_defer_req *dreq)
 
struct nfs_cache_defer_reqnfs_cache_defer_req_alloc (void)
 
int nfs_cache_wait_for_upcall (struct nfs_cache_defer_req *dreq)
 
int nfs_cache_register_sb (struct super_block *sb, struct cache_detail *cd)
 
int nfs_cache_register_net (struct net *net, struct cache_detail *cd)
 
void nfs_cache_unregister_sb (struct super_block *sb, struct cache_detail *cd)
 
void nfs_cache_unregister_net (struct net *net, struct cache_detail *cd)
 
void nfs_cache_init (struct cache_detail *cd)
 
void nfs_cache_destroy (struct cache_detail *cd)
 

Macro Definition Documentation

#define NFS_CACHE_UPCALL_PATHLEN   256

Definition at line 20 of file cache_lib.c.

#define NFS_CACHE_UPCALL_TIMEOUT   15

Definition at line 21 of file cache_lib.c.

Function Documentation

module_param_named ( cache_getent_timeout  ,
nfs_cache_getent_timeout  ,
ulong  ,
0600   
)
module_param_string ( cache_getent  ,
nfs_cache_getent_prog  ,
sizeof(nfs_cache_getent_prog)  ,
0600   
)
MODULE_PARM_DESC ( cache_getent  ,
"Path to the client cache upcall program"   
)
MODULE_PARM_DESC ( cache_getent_timeout  ,
"Timeout (in seconds) after which ""the cache upcall is assumed to have failed"   
)
struct nfs_cache_defer_req* nfs_cache_defer_req_alloc ( void  )
read

Definition at line 94 of file cache_lib.c.

void nfs_cache_defer_req_put ( struct nfs_cache_defer_req dreq)

Definition at line 67 of file cache_lib.c.

void nfs_cache_destroy ( struct cache_detail cd)

Definition at line 162 of file cache_lib.c.

void nfs_cache_init ( struct cache_detail cd)

Definition at line 157 of file cache_lib.c.

int nfs_cache_register_net ( struct net net,
struct cache_detail cd 
)

Definition at line 127 of file cache_lib.c.

int nfs_cache_register_sb ( struct super_block sb,
struct cache_detail cd 
)

Definition at line 115 of file cache_lib.c.

void nfs_cache_unregister_net ( struct net net,
struct cache_detail cd 
)

Definition at line 146 of file cache_lib.c.

void nfs_cache_unregister_sb ( struct super_block sb,
struct cache_detail cd 
)

Definition at line 140 of file cache_lib.c.

int nfs_cache_upcall ( struct cache_detail cd,
char entry_name 
)

Definition at line 34 of file cache_lib.c.

int nfs_cache_wait_for_upcall ( struct nfs_cache_defer_req dreq)

Definition at line 107 of file cache_lib.c.