#include <linux/types.h>
#include <linux/sunrpc/xdr.h>
#include <linux/sunrpc/clnt.h>
#include <linux/sunrpc/stats.h>
#include <linux/lockd/lockd.h>
#include <uapi/linux/nfs2.h>
#define NLMDBG_FACILITY …
#if (NLMCLNT_OHSIZE > XDR_MAX_NETOBJ)
# error "NLM host name cannot be larger than XDR_MAX_NETOBJ!"
#endif
#define NLM_cookie_sz …
#define NLM_caller_sz …
#define NLM_owner_sz …
#define NLM_fhandle_sz …
#define NLM_lock_sz …
#define NLM_holder_sz …
#define NLM_testargs_sz …
#define NLM_lockargs_sz …
#define NLM_cancargs_sz …
#define NLM_unlockargs_sz …
#define NLM_testres_sz …
#define NLM_res_sz …
#define NLM_norep_sz …
static s32 loff_t_to_s32(loff_t offset)
{ … }
static void nlm_compute_offsets(const struct nlm_lock *lock,
u32 *l_offset, u32 *l_len)
{ … }
static void encode_bool(struct xdr_stream *xdr, const int value)
{ … }
static void encode_int32(struct xdr_stream *xdr, const s32 value)
{ … }
static void encode_netobj(struct xdr_stream *xdr,
const u8 *data, const unsigned int length)
{ … }
static int decode_netobj(struct xdr_stream *xdr,
struct xdr_netobj *obj)
{ … }
static void encode_cookie(struct xdr_stream *xdr,
const struct nlm_cookie *cookie)
{ … }
static int decode_cookie(struct xdr_stream *xdr,
struct nlm_cookie *cookie)
{ … }
static void encode_fh(struct xdr_stream *xdr, const struct nfs_fh *fh)
{ … }
static void encode_nlm_stat(struct xdr_stream *xdr,
const __be32 stat)
{ … }
static int decode_nlm_stat(struct xdr_stream *xdr,
__be32 *stat)
{ … }
static void encode_nlm_holder(struct xdr_stream *xdr,
const struct nlm_res *result)
{ … }
static int decode_nlm_holder(struct xdr_stream *xdr, struct nlm_res *result)
{ … }
static void encode_caller_name(struct xdr_stream *xdr, const char *name)
{ … }
static void encode_nlm_lock(struct xdr_stream *xdr,
const struct nlm_lock *lock)
{ … }
static void nlm_xdr_enc_testargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm_xdr_enc_lockargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm_xdr_enc_cancargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm_xdr_enc_unlockargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm_xdr_enc_res(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void encode_nlm_testrply(struct xdr_stream *xdr,
const struct nlm_res *result)
{ … }
static void nlm_xdr_enc_testres(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static int decode_nlm_testrply(struct xdr_stream *xdr,
struct nlm_res *result)
{ … }
static int nlm_xdr_dec_testres(struct rpc_rqst *req,
struct xdr_stream *xdr,
void *data)
{ … }
static int nlm_xdr_dec_res(struct rpc_rqst *req,
struct xdr_stream *xdr,
void *data)
{ … }
#define nlm_xdr_dec_norep …
#define PROC(proc, argtype, restype) …
static const struct rpc_procinfo nlm_procedures[] = …;
static unsigned int nlm_version1_counts[ARRAY_SIZE(nlm_procedures)];
static const struct rpc_version nlm_version1 = …;
static unsigned int nlm_version3_counts[ARRAY_SIZE(nlm_procedures)];
static const struct rpc_version nlm_version3 = …;
static const struct rpc_version *nlm_versions[] = …;
static struct rpc_stat nlm_rpc_stats;
const struct rpc_program nlm_program = …;