嵌入式开发问答社区
hello_drv.ko加载驱动后,出现can not open file /dev/hello错误
NXP
IMX6ULL_PRO
chenxinyd
October 3, 2022, 5:11am
1
当前状态如下图
image
1115×298 20.8 KB
liangtao_1996
October 3, 2022, 1:24pm
2
修改源码,使用 perror 函数来打印打开失败的原因;顺便把 ret 的值也打印出来;