Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Variables
svc4proc.c File Reference
#include <linux/types.h>
#include <linux/time.h>
#include <linux/lockd/lockd.h>
#include <linux/lockd/share.h>
#include <linux/sunrpc/svc_xprt.h>

Go to the source code of this file.

Data Structures

struct  nlm_void
 

Macros

#define NLMDBG_FACILITY   NLMDBG_CLIENT
 
#define nlm4svc_encode_norep   nlm4svc_encode_void
 
#define nlm4svc_decode_norep   nlm4svc_decode_void
 
#define nlm4svc_decode_testres   nlm4svc_decode_void
 
#define nlm4svc_decode_lockres   nlm4svc_decode_void
 
#define nlm4svc_decode_unlockres   nlm4svc_decode_void
 
#define nlm4svc_decode_cancelres   nlm4svc_decode_void
 
#define nlm4svc_decode_grantedres   nlm4svc_decode_void
 
#define nlm4svc_proc_none   nlm4svc_proc_null
 
#define nlm4svc_proc_test_res   nlm4svc_proc_null
 
#define nlm4svc_proc_lock_res   nlm4svc_proc_null
 
#define nlm4svc_proc_cancel_res   nlm4svc_proc_null
 
#define nlm4svc_proc_unlock_res   nlm4svc_proc_null
 
#define PROC(name, xargt, xrest, argt, rest, respsize)
 
#define Ck   (1+XDR_QUADLEN(NLM_MAXCOOKIELEN)) /* cookie */
 
#define No   (1+1024/4) /* netobj */
 
#define St   1 /* status */
 
#define Rg   4 /* range (offset + length) */
 

Variables

struct svc_procedure nlmsvc_procedures4 []
 

Macro Definition Documentation

#define Ck   (1+XDR_QUADLEN(NLM_MAXCOOKIELEN)) /* cookie */

Definition at line 474 of file svc4proc.c.

#define nlm4svc_decode_cancelres   nlm4svc_decode_void

Definition at line 454 of file svc4proc.c.

#define nlm4svc_decode_grantedres   nlm4svc_decode_void

Definition at line 455 of file svc4proc.c.

#define nlm4svc_decode_lockres   nlm4svc_decode_void

Definition at line 452 of file svc4proc.c.

#define nlm4svc_decode_norep   nlm4svc_decode_void

Definition at line 450 of file svc4proc.c.

#define nlm4svc_decode_testres   nlm4svc_decode_void

Definition at line 451 of file svc4proc.c.

#define nlm4svc_decode_unlockres   nlm4svc_decode_void

Definition at line 453 of file svc4proc.c.

#define nlm4svc_encode_norep   nlm4svc_encode_void

Definition at line 449 of file svc4proc.c.

#define nlm4svc_proc_cancel_res   nlm4svc_proc_null

Definition at line 460 of file svc4proc.c.

#define nlm4svc_proc_lock_res   nlm4svc_proc_null

Definition at line 459 of file svc4proc.c.

#define nlm4svc_proc_none   nlm4svc_proc_null

Definition at line 457 of file svc4proc.c.

#define nlm4svc_proc_test_res   nlm4svc_proc_null

Definition at line 458 of file svc4proc.c.

#define nlm4svc_proc_unlock_res   nlm4svc_proc_null

Definition at line 461 of file svc4proc.c.

#define NLMDBG_FACILITY   NLMDBG_CLIENT

Definition at line 16 of file svc4proc.c.

#define No   (1+1024/4) /* netobj */

Definition at line 475 of file svc4proc.c.

#define PROC (   name,
  xargt,
  xrest,
  argt,
  rest,
  respsize 
)
Value:
{ .pc_func = (svc_procfunc) nlm4svc_proc_##name, \
.pc_decode = (kxdrproc_t) nlm4svc_decode_##xargt, \
.pc_encode = (kxdrproc_t) nlm4svc_encode_##xrest, \
.pc_release = NULL, \
.pc_argsize = sizeof(struct nlm_##argt), \
.pc_ressize = sizeof(struct nlm_##rest), \
.pc_xdrressize = respsize, \
}

Definition at line 465 of file svc4proc.c.

#define Rg   4 /* range (offset + length) */

Definition at line 477 of file svc4proc.c.

#define St   1 /* status */

Definition at line 476 of file svc4proc.c.

Variable Documentation

struct svc_procedure nlmsvc_procedures4[]
Initial value:
= {
PROC(null, void, void, void, void, 1),
PROC(test, testargs, testres, args, res, Ck+St+2+No+Rg),
PROC(lock, lockargs, res, args, res, Ck+St),
PROC(cancel, cancargs, res, args, res, Ck+St),
PROC(unlock, unlockargs, res, args, res, Ck+St),
PROC(granted, testargs, res, args, res, Ck+St),
PROC(test_msg, testargs, norep, args, void, 1),
PROC(lock_msg, lockargs, norep, args, void, 1),
PROC(cancel_msg, cancargs, norep, args, void, 1),
PROC(unlock_msg, unlockargs, norep, args, void, 1),
PROC(granted_msg, testargs, norep, args, void, 1),
PROC(test_res, testres, norep, res, void, 1),
PROC(lock_res, lockres, norep, res, void, 1),
PROC(cancel_res, cancelres, norep, res, void, 1),
PROC(unlock_res, unlockres, norep, res, void, 1),
PROC(granted_res, res, norep, res, void, 1),
PROC(sm_notify, reboot, void, reboot, void, 1),
PROC(none, void, void, void, void, 0),
PROC(none, void, void, void, void, 0),
PROC(none, void, void, void, void, 0),
PROC(share, shareargs, shareres, args, res, Ck+St+1),
PROC(unshare, shareargs, shareres, args, res, Ck+St+1),
PROC(nm_lock, lockargs, res, args, res, Ck+St),
PROC(free_all, notify, void, args, void, 1),
}

Definition at line 478 of file svc4proc.c.