摘要: 原文地址:http://www.cnblogs.com/sunyubo/archive/2010/12/22/2282079.html 结构体file_operations在头文件linux/fs.h中定义,用来存储驱动内核模块提供的对设备进行各种操作的函数的指针。该结构体的每个域都对应着驱动内核... 阅读全文
posted @ 2015-09-01 10:09 醉依危栏听松涛 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1、NAME statfs, fstatfs - get file system statisticsSYNOPSIS #include /* or */ int statfs(const char *path, struct statfs *buf); int fstatfs... 阅读全文
posted @ 2015-04-16 08:39 醉依危栏听松涛 阅读(188) 评论(0) 推荐(0) 编辑
摘要: readdir()获取文件类型//// 字符设备文件type =2, filename207=tty0crw-rw---- 1 root root 4,0 04-10 16:28 tty0//// 目录文件type =4, filename213=shmdrwxrwxrwt 2 root root ... 阅读全文
posted @ 2015-04-15 09:01 醉依危栏听松涛 阅读(517) 评论(0) 推荐(0) 编辑
摘要: Task: 遍历当前目录及子目录, 找出 含"sprintf" 的语句Note1: grep -n 只能找出 当前目录下的文件, 子目录就无能为力了Note2: 借助xargs, find ./* -name "*.c" |xargs grep -n "sprintf" 即可;===========... 阅读全文
posted @ 2015-04-14 13:10 醉依危栏听松涛 阅读(119) 评论(0) 推荐(0) 编辑
摘要: *---------------------------------------------------** ** iLBC test program ** ** ... 阅读全文
posted @ 2015-04-14 11:40 醉依危栏听松涛 阅读(206) 评论(0) 推荐(0) 编辑
摘要: [日期:2013-12-09] 来源:Linux社区 作者:haibusuanyuntmpfs介绍tmpfs是一种虚拟内存文件系统,而不是块设备。是基于内存的文件系统,创建时不需要使用mkfs等初始化它最大的特点就是它的存储空间在VM(virtual memory),VM是由linux内核里面的vm... 阅读全文
posted @ 2015-04-11 14:44 醉依危栏听松涛 阅读(377) 评论(0) 推荐(0) 编辑
摘要: char,short ,int ,long,long long,unsigned long long数据范围http://www.cnblogs.com/A123456A/archive/2013/01/25/2876634.html速查表:char -128 ~ +127 (1 Byte)shor... 阅读全文
posted @ 2015-04-10 17:56 醉依危栏听松涛 阅读(314) 评论(0) 推荐(0) 编辑
摘要: linux tee 命令详解功能说明:读取标准输入的数据,并将其内容输出成文件。语 法:tee [-ai][--help][--version][文件...]补充说明:tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件。参 数: -a或--append 附加到既有文... 阅读全文
posted @ 2015-04-10 08:50 醉依危栏听松涛 阅读(278) 评论(0) 推荐(0) 编辑
摘要: Qmake 工具编译调试2015年4月9日星期四 18:38:061、 确定qmaek 路径[root@roger ~]# which qmake/usr/lib/qt-3.3/bin/qmake[root@roger ~]# which qmake-3520a/usr/local/qt-4.5.3... 阅读全文
posted @ 2015-04-09 19:25 醉依危栏听松涛 阅读(470) 评论(0) 推荐(0) 编辑
摘要: QT4.5.3在海思3520A上移植步骤-修订版2015年3月29日星期日, 16:59:031.首先要保证已经安装了海思的交叉编译器;#arm-hi + Tab key to show which toolchainhave been installed[root@roger]#arm-hiarm... 阅读全文
posted @ 2015-03-29 17:04 醉依危栏听松涛 阅读(1560) 评论(0) 推荐(0) 编辑