Initial commit; kernel source import

This commit is contained in:
Nathan
2025-04-06 23:50:55 -05:00
commit 25c6d769f4
45093 changed files with 18199410 additions and 0 deletions

26
kernel/test_module.c Normal file
View File

@@ -0,0 +1,26 @@
/*
* "hello world" kernel module
*/
#define pr_fmt(fmt) "test_module: " fmt
#include <linux/module.h>
static int __init test_module_init(void)
{
pr_info("Hello, world\n");
return 0;
}
module_init(test_module_init);
static void __exit test_module_exit(void)
{
pr_info("Goodbye\n");
}
module_exit(test_module_exit);
MODULE_AUTHOR("Kees Cook <keescook@chromium.org>");
MODULE_LICENSE("GPL");