随笔分类 -  linux

摘要:参考:https://blog.csdn.net/do2jiang/article/details/4950613 nfs 默认采用UDP协议通信,但是在pc与嵌入式系统交互的过程中,UDP协议容易丢包 在挂载nfs目录时可指定TCP协议传输 : mount -t nfs 192.168.10.1: 阅读全文
posted @ 2019-06-25 11:11 chencesc 阅读(3643) 评论(0) 推荐(0) 编辑
摘要:在linux驱动中一个常用的场景, 驱动需要等待中断的响应, 才得以执行后续的代码,达到一个原子操作的目的 阅读全文
posted @ 2017-09-19 15:12 chencesc 阅读(140) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/boss666666/article/details/10284649 阅读全文
posted @ 2017-08-25 09:20 chencesc 阅读(98) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/bytxl/article/details/49337807 阅读全文
posted @ 2017-04-18 16:11 chencesc 阅读(96) 评论(0) 推荐(0) 编辑
摘要:一、GUN处理目标文件的工具 首先对一个c文件进行编译生成.o目标文件 然后可以通过nm 和readelf来查看目标文件的符号表 nm > 其中 B 全局非初始化数据段(BBS段)的符号,其值表示该符号在bss段中的偏移,如g1 b 全局static的符号,如g3 r const型只读的变量(rea 阅读全文
posted @ 2017-03-21 11:17 chencesc 阅读(610) 评论(0) 推荐(0) 编辑
摘要:这里记录的不是IPC通信机制,是linux主cpu和scpu间模块的通信 1. 首先需要硬件弄好中断通路,两边需要能向对方触发中断 2.通信机制需要解决的问题 (1)同步异步请求 同步: 对于一些需要返回结果的调用需要同步,返回finish 异步: 为了不影响模块运行速度,返回ack,再返回fini 阅读全文
posted @ 2017-03-06 09:19 chencesc 阅读(302) 评论(0) 推荐(0) 编辑
摘要:http://blog.chinaunix.net/uid-30149022-id-4854862.html 阅读全文
posted @ 2016-11-23 10:06 chencesc 阅读(447) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/cnsword/article/details/7542696 阅读全文
posted @ 2016-10-11 15:31 chencesc 阅读(168) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/q191201771/p/3875316.html 发现是clock_gettime有问题 所以在编译a.out时添加-lrt即可 阅读全文
posted @ 2016-10-09 15:23 chencesc 阅读(9210) 评论(0) 推荐(0) 编辑
摘要:由于刚刚装了ubuntu 16.04,该版本gcc版本为5.4.0太高,很多软件不支持,所以要降版本,可以直接看(三)解决 一、gcc源代码网站 ftp://mirrors.kernel.org/gnu/gcc/ 含各版本源代码,可用wget方法下载过来,好像速度会快一点 二、遇到编译错误 ①Bui 阅读全文
posted @ 2016-09-30 17:55 chencesc 阅读(1617) 评论(0) 推荐(0) 编辑
摘要:一、装系统 下载ubuntu镜像 ubuntu 16.04 镜像下载(linux公社) 安装unetbootin (u盘启动盘制作工具) sudo apt-get install unetbootin 接下来装机就很轻松了 二、装完系统后 ①找最新的源,有些版本源比较老旧,可以取比较官方的网站下最新 阅读全文
posted @ 2016-09-30 09:11 chencesc 阅读(326) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/terence1212/article/details/52270210 阅读全文
posted @ 2016-09-28 22:54 chencesc 阅读(104) 评论(0) 推荐(0) 编辑
摘要:与内存池差不多 线程池刚开始就全部创建起来,供用户使用 好处是 : 1.减少在创建和销毁线程上所花的时间以及系统资源的开销 2.如不使用线程池,有可能造成系统创建大量线程而导致消耗完系统内存以及”过度切换”。 线程池介绍 http://blog.csdn.net/kavensu/article/de 阅读全文
posted @ 2016-09-27 16:33 chencesc 阅读(127) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/jingzhishen/p/3555820.html 阅读全文
posted @ 2016-09-27 16:25 chencesc 阅读(129) 评论(0) 推荐(0) 编辑
摘要:linux终端查看cpu和内存使用情况 t一、op进入全屏实时系统资源使用信息查看 PID:进程的ID USER:进程所有者 PR:进程的优先级别,越小越优先被执行 NInice:值 VIRT:进程占用的虚拟内存 RES:进程占用的物理内存 SHR:进程使用的共享内存 S:进程的状态。S表示休眠,R 阅读全文
posted @ 2016-09-13 15:11 chencesc 阅读(442) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/jingzhishen/p/3163764.html 阅读全文
posted @ 2016-08-17 13:34 chencesc 阅读(86) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/jingzhishen/p/3793351.html 阅读全文
posted @ 2016-08-17 13:32 chencesc 阅读(81) 评论(0) 推荐(0) 编辑
摘要:http://bbs.21ic.com/icview-202550-1-1.html 一、内存 我们一般说的内存指的是DRAM,其主要特点是断电会丢失数据,可读写 二、ROM 断电不会丢失数据,数据只读,擦除困难 三、flash(闪存) 断电不会丢数据,数据可读写 NOR FLASH可以直接运行代码 阅读全文
posted @ 2016-08-17 10:10 chencesc 阅读(694) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/daizhuacai/p/3174885.html 安装: sudo apt-get install zip 解压: unzip -d path file 压缩: zip test.zip path/* 阅读全文
posted @ 2016-08-10 10:27 chencesc 阅读(165) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/yiwd/p/3649094.html 安装: sudo apt-get install p7zip 解压: 7zr x file -r -o./path 压缩: 7zr a -r newfile path/* 阅读全文
posted @ 2016-08-10 10:18 chencesc 阅读(603) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示