ltp_lsmod01.c 520 字节
Newer Older
M
m00302376 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
/*
 * SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright (c) 2016 Fujitsu Ltd.
 * Author: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
 *
 * Description:
 *  This is a kernel loadable module programme used by lssmod01.sh
 *  testcase which inserts this module for test of lsmod command.
 */

#include <linux/module.h>
#include <linux/init.h>
#include <linux/kernel.h>

static int test_init(void)
{
	return 0;
}

static void test_exit(void)
{

}

MODULE_LICENSE("GPL");

module_init(test_init);
module_exit(test_exit);