/* YOUR FILE-HEADER COMMENT HERE */ /* * This file uses kernel-doc style comments, which is similar to * Javadoc and Doxygen-style comments. See * ~/linux/Documentation/kernel-doc-nano-HOWTO.txt for details. */ /* * Getting compilation warnings? The Linux kernel is written against * C89, which means: * - No // comments, and * - All variables must be declared at the top of functions. * Read ~/linux/Documentation/CodingStyle to ensure your project * compiles without warnings. */ #include #include #define PREFIX "ROT-X: " /** * rotX_init() - entry point into the ROT-X kernel module * Return: 0 on successful initialization, negative on error */ static int __init rotX_init(void) { pr_info(PREFIX "Hello, world!\n"); return 0; } /** * rotX_exit() - called by kernel to clean up resources */ static void __exit rotX_exit(void) { pr_info(PREFIX "Goodbye, world!\n"); } module_init(rotX_init); module_exit(rotX_exit); MODULE_DESCRIPTION("CS421 ROT-X driver"); MODULE_LICENSE("GPL");