2 Star 1 Fork 0

陈孝松/blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
crash-test.c 394 Bytes
一键复制 编辑 原始数据 按行查看 历史
ChenXiaoSong 提交于 2025-02-21 11:50 +08:00 . rename to course/kernel/
#include <linux/kernel.h>
#include <linux/module.h>
struct crash_test_data {
int a;
char b;
int c;
};
static void create_oops(void) {
struct crash_test_data *data = NULL;
data->b = 2;
}
static int __init crash_test_init(void)
{
create_oops();
return 0;
}
static void __exit crash_test_exit(void)
{
}
module_init(crash_test_init)
module_exit(crash_test_exit)
MODULE_LICENSE("GPL");
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chenxiaosonggitee/blog.git
git@gitee.com:chenxiaosonggitee/blog.git
chenxiaosonggitee
blog
blog
master

搜索帮助