Files
linux-kernel-module-cheat/kernel_modules/init_module.c
Ciro Santilli 六四事件 法轮功 2b0a5724a7 readme: convert underscores to hyphens on all header IDs
GitHub converts differently than asciidoctor... the only way to keep
them consistent is to explicitly set IDs.
2019-11-14 00:00:00 +00:00

17 lines
271 B
C

/* https://cirosantilli.com/linux-kernel-module-cheat#init-module */
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
{
pr_info("init_module\n");
return 0;
}
void cleanup_module(void)
{
pr_info("cleanup_module\n");
}
MODULE_LICENSE("GPL");