2021-07-22 06:35:24 +08:00
|
|
|
/*
|
2021-08-08 01:24:59 +08:00
|
|
|
* start.c - Illustration of multi filed modules
|
2021-07-22 06:35:24 +08:00
|
|
|
*/
|
|
|
|
|
2021-08-08 01:24:59 +08:00
|
|
|
#include <linux/kernel.h> /* We are doing kernel work */
|
2021-07-22 06:58:13 +08:00
|
|
|
#include <linux/module.h> /* Specifically, a module */
|
2021-07-22 06:35:24 +08:00
|
|
|
|
|
|
|
int init_module(void)
|
|
|
|
{
|
|
|
|
pr_info("Hello, world - this is the kernel speaking\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
MODULE_LICENSE("GPL");
|