You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
406 B
25 lines
406 B
4 months ago
|
#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
|
||
|
|
||
|
#include <linux/init.h>
|
||
|
#include <linux/module.h>
|
||
|
#include <linux/printk.h>
|
||
|
|
||
|
#include "mod-loop.h"
|
||
|
|
||
|
static int __init test_module_init(void)
|
||
|
{
|
||
|
printG();
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
module_init(test_module_init);
|
||
|
|
||
|
void printG(void)
|
||
|
{
|
||
|
pr_warn("Hello, world G\n");
|
||
|
}
|
||
|
EXPORT_SYMBOL(printG);
|
||
|
|
||
|
MODULE_AUTHOR("Lucas De Marchi <lucas.demarchi@intel.com>");
|
||
|
MODULE_LICENSE("LGPL");
|