mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-13 20:12:26 +00:00
GitHub converts differently than asciidoctor... the only way to keep them consistent is to explicitly set IDs.
17 lines
271 B
C
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");
|