diff options
Diffstat (limited to 'test/dkms_noautoinstall_test-1.0/dkms_noautoinstall_test.c')
-rw-r--r-- | test/dkms_noautoinstall_test-1.0/dkms_noautoinstall_test.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/dkms_noautoinstall_test-1.0/dkms_noautoinstall_test.c b/test/dkms_noautoinstall_test-1.0/dkms_noautoinstall_test.c new file mode 100644 index 0000000..93d0098 --- /dev/null +++ b/test/dkms_noautoinstall_test-1.0/dkms_noautoinstall_test.c @@ -0,0 +1,23 @@ +#include <linux/module.h> +#include <linux/kernel.h> +#include <linux/init.h> + +#define DKMS_TEST_VER "1.0" + +MODULE_LICENSE("GPL"); +MODULE_DESCRIPTION("A Simple dkms test module"); + +static int __init dkms_test_init(void) +{ + printk(KERN_INFO "DKMS Test Module -%s Loaded\n",DKMS_TEST_VER); + return 0; +} + +static void __exit dkms_test_cleanup(void) +{ + printk(KERN_INFO "Cleaning up after dkms test module.\n"); +} + +module_init(dkms_test_init); +module_exit(dkms_test_cleanup); +MODULE_VERSION(DKMS_TEST_VER); |