Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/types.h>
#include <linux/kallsyms.h>
#include <linux/mm.h>
#include <linux/namei.h>
#include <linux/mount.h>
#include <linux/slab.h>
#include <linux/utsname.h>
#include <linux/workqueue.h>
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/un.h>
#include <linux/rcupdate.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/rpc_pipe_fs.h>
#include <linux/sunrpc/metrics.h>
#include <linux/sunrpc/bc_xprt.h>
#include <trace/events/sunrpc.h>
#include "sunrpc.h"
#include "netns.h"
Go to the source code of this file.
Macros | |
#define | dprint_status(t) |
#define dprint_status | ( | t | ) |
EXPORT_SYMBOL_GPL | ( | rpc_create | ) |
EXPORT_SYMBOL_GPL | ( | rpc_clone_client | ) |
EXPORT_SYMBOL_GPL | ( | rpc_clone_client_set_auth | ) |
EXPORT_SYMBOL_GPL | ( | rpc_killall_tasks | ) |
EXPORT_SYMBOL_GPL | ( | rpc_shutdown_client | ) |
EXPORT_SYMBOL_GPL | ( | rpc_bind_new_program | ) |
EXPORT_SYMBOL_GPL | ( | rpc_task_reset_client | ) |
EXPORT_SYMBOL_GPL | ( | rpc_run_task | ) |
EXPORT_SYMBOL_GPL | ( | rpc_call_sync | ) |
EXPORT_SYMBOL_GPL | ( | rpc_call_async | ) |
EXPORT_SYMBOL_GPL | ( | rpc_call_start | ) |
EXPORT_SYMBOL_GPL | ( | rpc_peeraddr | ) |
EXPORT_SYMBOL_GPL | ( | rpc_peeraddr2str | ) |
EXPORT_SYMBOL_GPL | ( | rpc_localaddr | ) |
EXPORT_SYMBOL_GPL | ( | rpc_setbufsize | ) |
EXPORT_SYMBOL_GPL | ( | rpc_protocol | ) |
EXPORT_SYMBOL_GPL | ( | rpc_net_ns | ) |
EXPORT_SYMBOL_GPL | ( | rpc_max_payload | ) |
EXPORT_SYMBOL_GPL | ( | rpc_force_rebind | ) |
EXPORT_SYMBOL_GPL | ( | rpc_restart_call_prepare | ) |
EXPORT_SYMBOL_GPL | ( | rpc_restart_call | ) |
EXPORT_SYMBOL_GPL | ( | rpc_call_null | ) |
|
read |
rpc_bind_new_program - bind a new RPC program to an existing client : old rpc_client : rpc program to set : rpc program version
Clones the rpc client and sets up a new RPC program. This is mainly of use for enabling different RPC programs to share the same transport. The Sun NFSv2/v3 ACL protocol can do this.
rpc_create - create an RPC client and transport with one call : rpc_clnt create argument structure
Creates and initializes an RPC transport and an RPC client.
It can ping the server in order to determine if it is up, and to see if it supports this program and version. RPC_CLNT_CREATE_NOPING disables this behavior so asynchronous tasks can also use rpc_create.
rpc_localaddr - discover local endpoint address for an RPC client : RPC client structure : target buffer : size of target buffer, in bytes
Returns zero and fills in "buf" and "buflen" if successful; otherwise, a negative errno is returned.
This works even if the underlying transport is not currently connected, or if the upper layer never previously provided a source address.
The result of this function call is transient: multiple calls in succession may give different results, depending on how local networking configuration changes over time.
rpc_max_payload - Get maximum payload size for a transport, in bytes : RPC client to query
For stream transports, this is one RPC record fragment (see RFC 1831), as we don't support multi-record requests yet. For datagram transports, this is the size of an IP packet minus the IP, UDP, and RPC header sizes.
|
read |