linux/net/sunrpc/sysctl.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * linux/net/sunrpc/sysctl.c
 *
 * Sysctl interface to sunrpc module.
 *
 * I would prefer to register the sunrpc table below sys/net, but that's
 * impossible at the moment.
 */

#include <linux/types.h>
#include <linux/linkage.h>
#include <linux/ctype.h>
#include <linux/fs.h>
#include <linux/sysctl.h>
#include <linux/module.h>

#include <linux/uaccess.h>
#include <linux/sunrpc/types.h>
#include <linux/sunrpc/sched.h>
#include <linux/sunrpc/stats.h>
#include <linux/sunrpc/svc_xprt.h>

#include "netns.h"

/*
 * Declare the debug flags here
 */
unsigned int	rpc_debug;
EXPORT_SYMBOL_GPL();

unsigned int	nfs_debug;
EXPORT_SYMBOL_GPL();

unsigned int	nfsd_debug;
EXPORT_SYMBOL_GPL();

unsigned int	nlm_debug;
EXPORT_SYMBOL_GPL();

#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)

static int proc_do_xprt(const struct ctl_table *table, int write,
			void *buffer, size_t *lenp, loff_t *ppos)
{}

static int
proc_dodebug(const struct ctl_table *table, int write, void *buffer, size_t *lenp,
	     loff_t *ppos)
{}

static struct ctl_table_header *sunrpc_table_header;

static struct ctl_table debug_table[] =;

void
rpc_register_sysctl(void)
{}

void
rpc_unregister_sysctl(void)
{}
#endif