/*
|
* Copyright (C) 2024 LingYun IoT System Studio
|
* Author: Guo Wenxue <guowenxue@gmail.com>
|
*
|
* Hello driver example in linux kernel.
|
*/
|
|
|
#include <linux/init.h>
|
#include <linux/module.h>
|
#include <linux/kernel.h>
|
|
static __init int hello_init(void)
|
{
|
printk(KERN_ALERT "Hello, Linux kernel module.\n");
|
return 0;
|
}
|
|
static __exit void hello_exit(void)
|
{
|
printk(KERN_ALERT "Goodbye, Linux kernel module.\n");
|
}
|
|
module_init(hello_init);
|
module_exit(hello_exit);
|
|
MODULE_LICENSE("Dual BSD/GPL");
|
MODULE_AUTHOR("GuoWenxue <guowenxue@gmail.com>");
|