
linux驱动开发学习
linux驱动开发中的点滴积累学习
wenlong199
这个作者很懒,什么都没留下…
展开
-
学习笔记——printk打印不及时输出
发现内核模块中的printk打印没有及时输出。如下方语句:printk(KERN_ERR "%s called!",__func__);如果在终端中echo一个数据到kmsg中,立即显示出来了。为什么呢? 因为上方的printk打印输出缺少换行符‘\n’,导致不能刷新出来。把printk语句增加上\n换行符后,打印及时输出。总结: 内核打印函数,需要在打印语句的结尾增加换...原创 2020-03-06 16:37:04 · 1860 阅读 · 0 评论 -
linux- man 命令
Linux的man很强大,该手册分成很多section,使用man时可以指定不同的section来浏览,各个section意义如下:1 - commands2- system calls3 - library calls4- special files5 - file formats and convertions6 - gamesfor linux7 - macro pac...原创 2020-02-08 19:57:40 · 222 阅读 · 0 评论