会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
孤独的程序员dis1500
知识就是希望
上一页
1
···
341
342
343
344
345
346
347
348
349
···
621
下一页
2021年4月1日
#if 用 vs查看
摘要:
阅读全文
posted @ 2021-04-01 00:46 lydstory
阅读(53)
评论(0)
推荐(0)
IS_ERR返回错误原因class_create
摘要: struct class *cls; cls = class_create(THIS_MODULE, "sdev"); if(IS_ERR(cls)){ return PTR_ERR(cls); } 解析: 创建设备节点使用了两个函数 class_create()和class_device_crea
阅读全文
posted @ 2021-04-01 00:10 lydstory
阅读(279)
评论(0)
推荐(0)
2021年3月31日
字符设备驱动 以及Makefile
摘要: #include <linux/module.h> // module_init module_exit #include <linux/init.h> // __init __exit #include <linux/cdev.h> #include <linux/fs.h> #define MY
阅读全文
posted @ 2021-03-31 23:50 lydstory
阅读(132)
评论(0)
推荐(0)
字符设备驱动
摘要: 字符设备驱动 驱动不成功??? https://blog.csdn.net/weixin_42314225/article/details/81112217
阅读全文
posted @ 2021-03-31 23:41 lydstory
阅读(34)
评论(0)
推荐(0)
printkinfo(DBG_ERROR,"sw_package init failed\n");
摘要: printkinfo(DBG_ERROR,"sw_package init failed\n"); dmesg | tail 看到输出信息
阅读全文
posted @ 2021-03-31 21:50 lydstory
阅读(47)
评论(0)
推荐(0)
insmod: ERROR: could not insert module hello_kernel.ko: Invalid parameters
摘要: insmod: ERROR: could not insert module hello_kernel.ko: Invalid parameters 随时测试 insmod .ko 是否成功
阅读全文
posted @ 2021-03-31 21:09 lydstory
阅读(802)
评论(0)
推荐(0)
dmesg -c
摘要: dmesg | tail dmesg -c 信息清理 显示后清理
阅读全文
posted @ 2021-03-31 20:48 lydstory
阅读(220)
评论(0)
推荐(0)
内核符号表
摘要: 内核符号表
阅读全文
posted @ 2021-03-31 19:54 lydstory
阅读(42)
评论(0)
推荐(0)
insmod: ERROR: could not insert module hello_kernel.ko: Unknown symbol in module
摘要: insmod: ERROR: could not insert module hello_kernel.ko: Unknown symbol in module 用命令查看内核中是否已有这个内核符号,例如要查看是否有var_set_integer这个内核符号,输入命令:#cat /proc/kall
阅读全文
posted @ 2021-03-31 19:30 lydstory
阅读(1062)
评论(0)
推荐(0)
2021年3月29日
implicit declaration of function 警告解决方法
摘要: 这个问题其实是很低级的问题,但是经常还是容易发生,翻译下就是函数的隐式说明 原因: 是因为函数没有在头文件(.h)定义,这就导致编译的时候没法正确生成.o文件
阅读全文
posted @ 2021-03-29 16:47 lydstory
阅读(2555)
评论(0)
推荐(0)
上一页
1
···
341
342
343
344
345
346
347
348
349
···
621
下一页
导航
博客园
首页
新随笔
联系
订阅
管理
公告