Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
0002 /*
0003  * linux/include/linux/sunrpc/debug.h
0004  *
0005  * Debugging support for sunrpc module
0006  *
0007  * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de>
0008  */
0009 
0010 #ifndef _UAPI_LINUX_SUNRPC_DEBUG_H_
0011 #define _UAPI_LINUX_SUNRPC_DEBUG_H_
0012 
0013 /*
0014  * RPC debug facilities
0015  */
0016 #define RPCDBG_XPRT     0x0001
0017 #define RPCDBG_CALL     0x0002
0018 #define RPCDBG_DEBUG        0x0004
0019 #define RPCDBG_NFS      0x0008
0020 #define RPCDBG_AUTH     0x0010
0021 #define RPCDBG_BIND     0x0020
0022 #define RPCDBG_SCHED        0x0040
0023 #define RPCDBG_TRANS        0x0080
0024 #define RPCDBG_SVCXPRT      0x0100
0025 #define RPCDBG_SVCDSP       0x0200
0026 #define RPCDBG_MISC     0x0400
0027 #define RPCDBG_CACHE        0x0800
0028 #define RPCDBG_ALL      0x7fff
0029 
0030 
0031 /*
0032  * Declarations for the sysctl debug interface, which allows to read or
0033  * change the debug flags for rpc, nfs, nfsd, and lockd. Since the sunrpc
0034  * module currently registers its sysctl table dynamically, the sysctl path
0035  * for module FOO is <CTL_SUNRPC, CTL_FOODEBUG>.
0036  */
0037 
0038 enum {
0039     CTL_RPCDEBUG = 1,
0040     CTL_NFSDEBUG,
0041     CTL_NFSDDEBUG,
0042     CTL_NLMDEBUG,
0043     CTL_SLOTTABLE_UDP,
0044     CTL_SLOTTABLE_TCP,
0045     CTL_MIN_RESVPORT,
0046     CTL_MAX_RESVPORT,
0047 };
0048 
0049 #endif /* _UAPI_LINUX_SUNRPC_DEBUG_H_ */