Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
nfssvc.c File Reference
#include <linux/sched.h>
#include <linux/freezer.h>
#include <linux/module.h>
#include <linux/fs_struct.h>
#include <linux/swap.h>
#include <linux/nsproxy.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/svcsock.h>
#include <linux/lockd/bind.h>
#include <linux/nfsacl.h>
#include <linux/seq_file.h>
#include <net/net_namespace.h>
#include "nfsd.h"
#include "cache.h"
#include "vfs.h"

Go to the source code of this file.

Macros

#define NFSDDBG_FACILITY   NFSDDBG_SVC
 
#define NFSD_MINVERS   2
 
#define NFSD_NRVERS   ARRAY_SIZE(nfsd_version)
 
#define NFSD_MAXSERVS   8192
 
#define NFSD_DRC_SIZE_SHIFT   10
 

Functions

 DEFINE_MUTEX (nfsd_mutex)
 
int nfsd_vers (int vers, enum vers_op change)
 
int nfsd_minorversion (u32 minorversion, enum vers_op change)
 
int nfsd_nrthreads (void)
 
void nfsd_reset_versions (void)
 
int nfsd_create_serv (void)
 
int nfsd_nrpools (void)
 
int nfsd_get_nrthreads (int n, int *nthreads)
 
int nfsd_set_nrthreads (int n, int *nthreads)
 
int nfsd_svc (int nrservs)
 
int nfsd_dispatch (struct svc_rqst *rqstp, __be32 *statp)
 
int nfsd_pool_stats_open (struct inode *inode, struct file *file)
 
int nfsd_pool_stats_release (struct inode *inode, struct file *file)
 

Variables

struct svc_program nfsd_program
 
struct timeval nfssvc_boot
 
struct svc_servnfsd_serv
 
spinlock_t nfsd_drc_lock
 
unsigned int nfsd_drc_max_mem
 
unsigned int nfsd_drc_mem_used
 
u32 nfsd_supported_minorversion
 

Macro Definition Documentation

#define NFSD_DRC_SIZE_SHIFT   10
#define NFSD_MAXSERVS   8192

Definition at line 174 of file nfssvc.c.

#define NFSD_MINVERS   2

Definition at line 103 of file nfssvc.c.

#define NFSD_NRVERS   ARRAY_SIZE(nfsd_version)

Definition at line 104 of file nfssvc.c.

#define NFSDDBG_FACILITY   NFSDDBG_SVC

Definition at line 26 of file nfssvc.c.

Function Documentation

DEFINE_MUTEX ( nfsd_mutex  )
int nfsd_create_serv ( void  )

Definition at line 330 of file nfssvc.c.

int nfsd_dispatch ( struct svc_rqst rqstp,
__be32 statp 
)

Definition at line 572 of file nfssvc.c.

int nfsd_get_nrthreads ( int  n,
int nthreads 
)

Definition at line 367 of file nfssvc.c.

int nfsd_minorversion ( u32  minorversion,
enum vers_op  change 
)

Definition at line 150 of file nfssvc.c.

int nfsd_nrpools ( void  )

Definition at line 359 of file nfssvc.c.

int nfsd_nrthreads ( void  )

Definition at line 176 of file nfssvc.c.

int nfsd_pool_stats_open ( struct inode inode,
struct file file 
)

Definition at line 647 of file nfssvc.c.

int nfsd_pool_stats_release ( struct inode inode,
struct file file 
)

Definition at line 662 of file nfssvc.c.

void nfsd_reset_versions ( void  )

Definition at line 266 of file nfssvc.c.

int nfsd_set_nrthreads ( int  n,
int nthreads 
)

Definition at line 379 of file nfssvc.c.

int nfsd_svc ( int  nrservs)

Definition at line 439 of file nfssvc.c.

int nfsd_vers ( int  vers,
enum vers_op  change 
)

Definition at line 123 of file nfssvc.c.

Variable Documentation

spinlock_t nfsd_drc_lock

Definition at line 63 of file nfssvc.c.

unsigned int nfsd_drc_max_mem

Definition at line 64 of file nfssvc.c.

unsigned int nfsd_drc_mem_used

Definition at line 65 of file nfssvc.c.

struct svc_program nfsd_program
Initial value:
= {
.pg_prog = NFS_PROGRAM,
.pg_nvers = NFSD_NRVERS,
.pg_vers = nfsd_versions,
.pg_name = "nfsd",
.pg_class = "nfsd",
.pg_stats = &nfsd_svcstats,
.pg_authenticate = &svc_set_client,
}

Definition at line 107 of file nfssvc.c.

struct svc_serv* nfsd_serv

Definition at line 55 of file nfssvc.c.

u32 nfsd_supported_minorversion

Definition at line 121 of file nfssvc.c.

struct timeval nfssvc_boot

Definition at line 30 of file nfssvc.c.