/* * Simple hello.c program */ /* kernel header files */ #include /* for explicit init & exit marco definitions */ #include /* for printk */ #include /* for everything ... */ MODULE_LICENSE("GPL"); MODULE_AUTHOR("SRINIVAS G"); /* * Module entry point */ static int __init hello_init(void) { printk("Hello, Welcome to Device Driver World!\n"); return 0; } /* * Module exit point */ static void __exit hello_exit(void) { printk("Good Bye to Device Driver World!\n"); } /* macros to define init and exit modules */ module_init(hello_init); module_exit(hello_exit);