#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/nfs3.h>
#define NLMDBG_FACILITY …
#if (NLMCLNT_OHSIZE > XDR_MAX_NETOBJ)
# error "NLM host name cannot be larger than XDR_MAX_NETOBJ!"
#endif
#if (NLMCLNT_OHSIZE > NLM_MAXSTRLEN)
# error "NLM host name cannot be larger than NLM's maximum string length!"
#endif
#define NLM4_void_sz …
#define NLM4_cookie_sz …
#define NLM4_caller_sz …
#define NLM4_owner_sz …
#define NLM4_fhandle_sz …
#define NLM4_lock_sz …
#define NLM4_holder_sz …
#define NLM4_testargs_sz …
#define NLM4_lockargs_sz …
#define NLM4_cancargs_sz …
#define NLM4_unlockargs_sz …
#define NLM4_testres_sz …
#define NLM4_res_sz …
#define NLM4_norep_sz …
static s64 loff_t_to_s64(loff_t offset)
{ … }
static void nlm4_compute_offsets(const struct nlm_lock *lock,
u64 *l_offset, u64 *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_nlm4_stat(struct xdr_stream *xdr,
const __be32 stat)
{ … }
static int decode_nlm4_stat(struct xdr_stream *xdr, __be32 *stat)
{ … }
static void encode_nlm4_holder(struct xdr_stream *xdr,
const struct nlm_res *result)
{ … }
static int decode_nlm4_holder(struct xdr_stream *xdr, struct nlm_res *result)
{ … }
static void encode_caller_name(struct xdr_stream *xdr, const char *name)
{ … }
static void encode_nlm4_lock(struct xdr_stream *xdr,
const struct nlm_lock *lock)
{ … }
static void nlm4_xdr_enc_testargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm4_xdr_enc_lockargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm4_xdr_enc_cancargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm4_xdr_enc_unlockargs(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm4_xdr_enc_res(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static void nlm4_xdr_enc_testres(struct rpc_rqst *req,
struct xdr_stream *xdr,
const void *data)
{ … }
static int decode_nlm4_testrply(struct xdr_stream *xdr,
struct nlm_res *result)
{ … }
static int nlm4_xdr_dec_testres(struct rpc_rqst *req,
struct xdr_stream *xdr,
void *data)
{ … }
static int nlm4_xdr_dec_res(struct rpc_rqst *req,
struct xdr_stream *xdr,
void *data)
{ … }
#define nlm4_xdr_dec_norep …
#define PROC(proc, argtype, restype) …
static const struct rpc_procinfo nlm4_procedures[] = …;
static unsigned int nlm_version4_counts[ARRAY_SIZE(nlm4_procedures)];
const struct rpc_version nlm_version4 = …;