linux/lib/test_sysctl.c

// SPDX-License-Identifier: GPL-2.0-or-later OR copyleft-next-0.3.1
/*
 * proc sysctl test driver
 *
 * Copyright (C) 2017 Luis R. Rodriguez <[email protected]>
 */

/*
 * This module provides an interface to the proc sysctl interfaces.  This
 * driver requires CONFIG_PROC_SYSCTL. It will not normally be loaded by the
 * system unless explicitly requested by name. You can also build this driver
 * into your kernel.
 */

#define pr_fmt(fmt)

#include <linux/init.h>
#include <linux/list.h>
#include <linux/module.h>
#include <linux/printk.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/async.h>
#include <linux/delay.h>
#include <linux/vmalloc.h>

static int i_zero;
static int i_one_hundred =;
static int match_int_ok =;


static struct {} sysctl_test_headers;

struct test_sysctl_data {};

static struct test_sysctl_data test_data =;

/* These are all under /proc/sys/debug/test_sysctl/ */
static struct ctl_table test_table[] =;

static void test_sysctl_calc_match_int_ok(void)
{}

static int test_sysctl_setup_node_tests(void)
{}

/* Used to test that unregister actually removes the directory */
static struct ctl_table test_table_unregister[] =;

static int test_sysctl_run_unregister_nested(void)
{}

static int test_sysctl_run_register_mount_point(void)
{}

static struct ctl_table test_table_empty[] =;

static int test_sysctl_run_register_empty(void)
{}

static int __init test_sysctl_init(void)
{}
module_init();

static void __exit test_sysctl_exit(void)
{}

module_exit(test_sysctl_exit);

MODULE_AUTHOR();
MODULE_DESCRIPTION();
MODULE_LICENSE();