From 27209bb802048f4803d9cd9a5c2f99d613986446 Mon Sep 17 00:00:00 2001 From: John Ogness Date: Tue, 19 Dec 2017 10:53:07 +0100 Subject: import drivers from devel/jogness Simple drivers for use in the Linux Advanced schulung were only available in the devel/jogness branch. Push them to master so they are easily accessible to any trainer. Signed-off-by: John Ogness --- .../drivers/modules/simplemodule/simple.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 schulung_tools/drivers/modules/simplemodule/simple.c (limited to 'schulung_tools/drivers/modules/simplemodule/simple.c') diff --git a/schulung_tools/drivers/modules/simplemodule/simple.c b/schulung_tools/drivers/modules/simplemodule/simple.c new file mode 100644 index 0000000..e091f68 --- /dev/null +++ b/schulung_tools/drivers/modules/simplemodule/simple.c @@ -0,0 +1,21 @@ +#include +#include + +static int simple_hello(void) +{ + printk(KERN_ERR "called %s\n", __func__); + return 0; +} + +static void simple_goodbye(void) +{ + printk(KERN_ERR "called %s\n", __func__); +} + +module_init(simple_hello); +module_exit(simple_goodbye); + +MODULE_AUTHOR("John Ogness "); +MODULE_DESCRIPTION("simple"); +MODULE_LICENSE("GPL v2"); +MODULE_VERSION("12345.54321"); -- cgit v1.2.3