leds-user-defind.c 413 B

1234567891011121314
  1. #include <linux/module.h>
  2. #include <linux/init.h>
  3. static int __init helloworld_init(void) {
  4. pr_info("Hello world initialization!\n");
  5. return 0;
  6. }
  7. static void __exit helloworld_exit(void) {
  8. pr_info("Hello world exit\n");
  9. }
  10. module_init(helloworld_init);
  11. module_exit(helloworld_exit);
  12. MODULE_LICENSE("GPL");
  13. MODULE_AUTHOR("John Madieu <john.madieu@gmail.com>");
  14. MODULE_DESCRIPTION("Linux kernel module skeleton");