File: dkms_test.c

package info (click to toggle)
dkms 2.8.4-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 940 kB
  • sloc: sh: 4,010; makefile: 272; perl: 80; python: 67; ansic: 18
file content (23 lines) | stat: -rw-r--r-- 514 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);