立即学习:https://edu.csdn.net/course/play/24700/278486?utm_source=blogtoedu
insmod hello.ko
更新模块的依赖信息
sudo depmod
加载模块
sudo modprobe hello、
模块信息
sudo modinfo hello
卸载模块
sudo rmmod hello
观察模块的打印信息?
dmesg
MODULE_LICENSE("GPL");
MODULE_AUTHOR("test");
MODULE_DESCRIPTION("a kernel test");
MODULE_ALIAS("simple_test")