分类 工作 下的文章
所有工作项目相关的驱动开发中,某些 api 的区别和关联
字符设备注册 register_chrdev 和 cdev_init + cdev_add 是 Linux 内核中用于注册字符设备的两种不同方法。它们在 使用场景 和 实现方式 上有显著区别。 register_chrdev 特点 一次性注册: 通过一个函数调用完成字符设备的注册。 自动分...
imx6ul, VFS: Unable to mount root fs via NFS, trying floppy.
使用 韦东山 的 imx6ul 的开发板,按照手册上面的 nfs rootfs 的说明进行操作,结果开发板加载的时候,打印 VFS: Unable to mount root fs via NFS, trying floppy.然后直接卡住不动了。 经过仔细分析,原来是因为我 虚拟机使用的是 ...
c++ json
c++ json 处理可以选择 cjsonobject。 这个可以直接把源码发到工程文件里面。很方便。 可以参考: https://www.cnblogs.com/bwar/p/11294452.html https://my.oschina.net/cqcbw/blog/1844575
c++ 删除末尾字符
需要删除最后3个字符: ```c++ std::string projectName; foreach (std::string s, sampleNameVector) { projectName += s + " + "; } projectName.erase(pro...
c++ 正则表达式
参考: https://www.cnblogs.com/sgdd123/p/7778599.html http://www.cnblogs.com/zery/p/3438845.html http://www.runoob.com/regexp/regexp-syntax.html
qt QTextStream 写入文件 中文乱码
今天使用 qt 的写入文件,发现中文乱码,经过一番查找,解决问题。 ```c++ QTextStream txt(&file); txt.setCodec(QTextCodec::codecForName("utf-8")); txt << QStrin...
最新回复