Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
client.c File Reference
#include <linux/module.h>
#include <linux/init.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/string.h>
#include <linux/stat.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/metrics.h>
#include <linux/sunrpc/xprtsock.h>
#include <linux/sunrpc/xprtrdma.h>
#include <linux/nfs_fs.h>
#include <linux/nfs_mount.h>
#include <linux/nfs4_mount.h>
#include <linux/lockd/bind.h>
#include <linux/seq_file.h>
#include <linux/mount.h>
#include <linux/nfs_idmap.h>
#include <linux/vfs.h>
#include <linux/inet.h>
#include <linux/in6.h>
#include <linux/slab.h>
#include <linux/idr.h>
#include <net/ipv6.h>
#include <linux/nfs_xdr.h>
#include <linux/sunrpc/bc_xprt.h>
#include <linux/nsproxy.h>
#include <linux/pid_namespace.h>
#include "nfs4_fs.h"
#include "callback.h"
#include "delegation.h"
#include "iostat.h"
#include "internal.h"
#include "fscache.h"
#include "pnfs.h"
#include "nfs.h"
#include "netns.h"

Go to the source code of this file.

Macros

#define NFSDBG_FACILITY   NFSDBG_CLIENT
 

Functions

struct nfs_subversionget_nfs_version (unsigned int version)
 
void put_nfs_version (struct nfs_subversion *nfs)
 
void register_nfs_version (struct nfs_subversion *nfs)
 
 EXPORT_SYMBOL_GPL (register_nfs_version)
 
void unregister_nfs_version (struct nfs_subversion *nfs)
 
 EXPORT_SYMBOL_GPL (unregister_nfs_version)
 
struct nfs_clientnfs_alloc_client (const struct nfs_client_initdata *cl_init)
 
 EXPORT_SYMBOL_GPL (nfs_alloc_client)
 
void nfs_cleanup_cb_ident_idr (struct net *net)
 
void nfs_free_client (struct nfs_client *clp)
 
 EXPORT_SYMBOL_GPL (nfs_free_client)
 
void nfs_put_client (struct nfs_client *clp)
 
 EXPORT_SYMBOL_GPL (nfs_put_client)
 
int nfs_wait_client_init_complete (const struct nfs_client *clp)
 
 EXPORT_SYMBOL_GPL (nfs_wait_client_init_complete)
 
struct nfs_clientnfs_get_client (const struct nfs_client_initdata *cl_init, const struct rpc_timeout *timeparms, const char *ip_addr, rpc_authflavor_t authflavour)
 
 EXPORT_SYMBOL_GPL (nfs_get_client)
 
void nfs_mark_client_ready (struct nfs_client *clp, int state)
 
 EXPORT_SYMBOL_GPL (nfs_mark_client_ready)
 
void nfs_init_timeout_values (struct rpc_timeout *to, int proto, unsigned int timeo, unsigned int retrans)
 
 EXPORT_SYMBOL_GPL (nfs_init_timeout_values)
 
int nfs_create_rpc_client (struct nfs_client *clp, const struct rpc_timeout *timeparms, rpc_authflavor_t flavor)
 
 EXPORT_SYMBOL_GPL (nfs_create_rpc_client)
 
int nfs_init_server_rpcclient (struct nfs_server *server, const struct rpc_timeout *timeo, rpc_authflavor_t pseudoflavour)
 
 EXPORT_SYMBOL_GPL (nfs_init_server_rpcclient)
 
struct nfs_clientnfs_init_client (struct nfs_client *clp, const struct rpc_timeout *timeparms, const char *ip_addr, rpc_authflavor_t authflavour)
 
 EXPORT_SYMBOL_GPL (nfs_init_client)
 
int nfs_probe_fsinfo (struct nfs_server *server, struct nfs_fh *mntfh, struct nfs_fattr *fattr)
 
 EXPORT_SYMBOL_GPL (nfs_probe_fsinfo)
 
void nfs_server_copy_userdata (struct nfs_server *target, struct nfs_server *source)
 
 EXPORT_SYMBOL_GPL (nfs_server_copy_userdata)
 
void nfs_server_insert_lists (struct nfs_server *server)
 
 EXPORT_SYMBOL_GPL (nfs_server_insert_lists)
 
struct nfs_servernfs_alloc_server (void)
 
 EXPORT_SYMBOL_GPL (nfs_alloc_server)
 
void nfs_free_server (struct nfs_server *server)
 
 EXPORT_SYMBOL_GPL (nfs_free_server)
 
struct nfs_servernfs_create_server (struct nfs_mount_info *mount_info, struct nfs_subversion *nfs_mod)
 
 EXPORT_SYMBOL_GPL (nfs_create_server)
 
struct nfs_servernfs_clone_server (struct nfs_server *source, struct nfs_fh *fh, struct nfs_fattr *fattr, rpc_authflavor_t flavor)
 
 EXPORT_SYMBOL_GPL (nfs_clone_server)
 
void nfs_clients_init (struct net *net)
 

Variables

struct rpc_program nfs_program
 
struct rpc_stat nfs_rpcstat
 

Macro Definition Documentation

#define NFSDBG_FACILITY   NFSDBG_CLIENT

Definition at line 57 of file client.c.

Function Documentation

EXPORT_SYMBOL_GPL ( register_nfs_version  )
EXPORT_SYMBOL_GPL ( unregister_nfs_version  )
EXPORT_SYMBOL_GPL ( nfs_alloc_client  )
EXPORT_SYMBOL_GPL ( nfs_free_client  )
EXPORT_SYMBOL_GPL ( nfs_put_client  )
EXPORT_SYMBOL_GPL ( nfs_wait_client_init_complete  )
EXPORT_SYMBOL_GPL ( nfs_get_client  )
EXPORT_SYMBOL_GPL ( nfs_mark_client_ready  )
EXPORT_SYMBOL_GPL ( nfs_init_timeout_values  )
EXPORT_SYMBOL_GPL ( nfs_create_rpc_client  )
EXPORT_SYMBOL_GPL ( nfs_init_server_rpcclient  )
EXPORT_SYMBOL_GPL ( nfs_init_client  )
EXPORT_SYMBOL_GPL ( nfs_probe_fsinfo  )
EXPORT_SYMBOL_GPL ( nfs_server_copy_userdata  )
EXPORT_SYMBOL_GPL ( nfs_server_insert_lists  )
EXPORT_SYMBOL_GPL ( nfs_alloc_server  )
EXPORT_SYMBOL_GPL ( nfs_free_server  )
EXPORT_SYMBOL_GPL ( nfs_create_server  )
EXPORT_SYMBOL_GPL ( nfs_clone_server  )
struct nfs_subversion* get_nfs_version ( unsigned int  version)
read

Definition at line 102 of file client.c.

struct nfs_client* nfs_alloc_client ( const struct nfs_client_initdata cl_init)
read

Definition at line 151 of file client.c.

struct nfs_server* nfs_alloc_server ( void  )
read

Definition at line 971 of file client.c.

void nfs_cleanup_cb_ident_idr ( struct net net)

Definition at line 223 of file client.c.

void nfs_clients_init ( struct net net)

Definition at line 1177 of file client.c.

struct nfs_server* nfs_clone_server ( struct nfs_server source,
struct nfs_fh fh,
struct nfs_fattr fattr,
rpc_authflavor_t  flavor 
)
read

Definition at line 1110 of file client.c.

int nfs_create_rpc_client ( struct nfs_client clp,
const struct rpc_timeout *  timeparms,
rpc_authflavor_t  flavor 
)

Definition at line 576 of file client.c.

struct nfs_server* nfs_create_server ( struct nfs_mount_info mount_info,
struct nfs_subversion nfs_mod 
)
read

Definition at line 1043 of file client.c.

void nfs_free_client ( struct nfs_client clp)

Definition at line 240 of file client.c.

void nfs_free_server ( struct nfs_server server)

Definition at line 1013 of file client.c.

struct nfs_client* nfs_get_client ( const struct nfs_client_initdata cl_init,
const struct rpc_timeout *  timeparms,
const char ip_addr,
rpc_authflavor_t  authflavour 
)
read

Definition at line 477 of file client.c.

struct nfs_client* nfs_init_client ( struct nfs_client clp,
const struct rpc_timeout *  timeparms,
const char ip_addr,
rpc_authflavor_t  authflavour 
)
read

nfs_init_client - Initialise an NFS2 or NFS3 client

: nfs_client to initialise : timeout parameters for underlying RPC transport : IP presentation address (not used) : authentication flavor for underlying RPC transport

Returns pointer to an NFS client, or an ERR_PTR value.

Definition at line 701 of file client.c.

int nfs_init_server_rpcclient ( struct nfs_server server,
const struct rpc_timeout *  timeo,
rpc_authflavor_t  pseudoflavour 
)

Definition at line 666 of file client.c.

void nfs_init_timeout_values ( struct rpc_timeout *  to,
int  proto,
unsigned int  timeo,
unsigned int  retrans 
)

Definition at line 534 of file client.c.

void nfs_mark_client_ready ( struct nfs_client clp,
int  state 
)

Definition at line 523 of file client.c.

int nfs_probe_fsinfo ( struct nfs_server server,
struct nfs_fh mntfh,
struct nfs_fattr fattr 
)

Definition at line 877 of file client.c.

void nfs_put_client ( struct nfs_client clp)

Definition at line 265 of file client.c.

void nfs_server_copy_userdata ( struct nfs_server target,
struct nfs_server source 
)

Definition at line 922 of file client.c.

void nfs_server_insert_lists ( struct nfs_server server)

Definition at line 936 of file client.c.

int nfs_wait_client_init_complete ( const struct nfs_client clp)

Definition at line 437 of file client.c.

void put_nfs_version ( struct nfs_subversion nfs)

Definition at line 118 of file client.c.

void register_nfs_version ( struct nfs_subversion nfs)

Definition at line 123 of file client.c.

void unregister_nfs_version ( struct nfs_subversion nfs)

Definition at line 134 of file client.c.

Variable Documentation

struct rpc_program nfs_program
Initial value:
= {
.name = "nfs",
.number = NFS_PROGRAM,
.nrvers = ARRAY_SIZE(nfs_version),
.version = nfs_version,
.stats = &nfs_rpcstat,
.pipe_dir_name = NFS_PIPE_DIRNAME,
}

Definition at line 73 of file client.c.

struct rpc_stat nfs_rpcstat
Initial value:
= {
.program = &nfs_program
}

Definition at line 82 of file client.c.