ChinaUnix.net
相关文章推荐:

uclinux 24 ramfs

看了很多书上写的44b0的IIC的驱动都是很难理解的那种,都是照抄三星的程序的,于是就自己改写了IIC的驱动,我认为这样有助于理解执行的过程,很简单易懂. /* *iic.c: * read and write only one byte for AT24C04 */ #i nclude #i nclude #i nclude #i nclude #i nclude #i nclude #i nclude #i nclude #i nclude #i nclude "IIC.h" void vdelay(unsigned short i); static DECLARE_WAIT_QUEUE_HEAD(wait); unsign...

by c5435 - Linux文档专区 - 2009-03-03 09:56:46 阅读(611) 回复(0)

相关讨论

我现在用ROMFS+ramfs文件系统的uclinux平台上开发,发现一个麻烦的问题难解: romfs是唯读的文件系统,mount后所有的文件不可写,所以无法将系统设定写入到etc目录中的设定文件中。 如DNS的设定文件resolv.conf. 现在系统mount一个ramfs到/tmp目录下,不过这个目录是用来mount其它HDD文件 系统的。我现在的实现方式是在etc目录建link文件,link至/tmp/etc/****.conf的方式,但是这些文件必须等到 kernel与系统服务启动成功后才被创...

by jammyxu - 内核/嵌入技术 - 2006-08-07 10:02:13 阅读(1037) 回复(1)

我现在用ROMFS+ramfs文件系统的uclinux平台上开发,发现一个麻烦的问题难解: romfs是唯读的文件系统,mount后所有的文件不可写,所以无法将系统设定写入到etc目录中的设定文件中。 如DNS的设定文件resolv.conf. 现在系统mount一个ramfs到/tmp目录下,不过这个目录是用来mount其它HDD文件 系统的。我现在的实现方式是在etc目录建link文件,link至/tmp/etc/****.conf的方式,但是这些文件必须等到 kernel与系统服务启动成功后才被创...

by jammyxu - 内核源码 - 2006-08-07 10:02:13 阅读(1530) 回复(1)

uclinux: vendors: 目标处理器相关,包括脚本,该处理器的默认的配置文件,在这里增加对目标处理器的支持 openswan: IPsec相关 config: 配置内核 make menuconfig&&xconfig&&config相关脚本 scripts/lxdialog: 实现内核配置时的菜单、消息(配置选择框)等的脚本文件 scripts/Menuconfig: (make menuconfig)实现配置选项的选择、取消、设置为模块、帮助工 tools: ucfront:gcc(ucfront-gcc,ucfront-g++)和ld(ucfront-ld) bin:...

by djstava - Linux文档专区 - 2009-06-11 15:49:21 阅读(1102) 回复(0)

ramfs、是内存文件系统,不是真正的文件系统; tmpfs、是文件系统; ramdisk、是把内存当做硬盘使用。

by tanjiyong138 - Solaris - 2011-07-26 12:06:36 阅读(2874) 回复(1)

------------------------------------------------------------------------------- 什么是ramfsramfs是空间规模动态变化的RAM文件系统。它非常简单,用来实现Linux缓存机制(缓存page cache and dentry cache)的文件系统。 通常情况下,Linux的所有文件在内存中都有缓存。需要读取的数据页从支撑存储设备(block device)中读取后,缓存于内存。在支撑存储设备中的数据页执行marked as clean操作。当虚拟文件系统需要支撑存储设...

by raul.liu - Linux文档专区 - 2009-04-05 08:38:17 阅读(653) 回复(0)

Using ramfs or tmpfs you can allocate part of the physical memory to be used as a partition. You can mount this partition and start writing and reading files like a hard disk partition. Since you’ll be reading and writing to the RAM, it will be faster. When a vital process becomes drastically slow because of disk writes, you can choose either ramfs or tmpfs file systems for writing files to the...

by CUDev - Linux文档专区 - 2008-12-04 20:32:34 阅读(757) 回复(0)

ramfs顾名思义是内存文件系统,它工作于虚拟文件系统(VFS)层。不能格式化,可以创建多个,在创建时可以指定其最大能使用的内存大小。如果你的Linux已经将ramfs编译进内核,你就可以很容易地使用ramfs了。创建一个目录,加载ramfs到该目录即可。 # mkdir -p /RAM1 # mount -t ramfs none /RAM1 缺省情况下,ramfs被限制最多可使用内存大小的一半。可以通过maxsize (以kbyte为单位)选项来改变。 # m...

by cexoyq - Linux文档专区 - 2007-09-16 23:15:14 阅读(864) 回复(0)

最近写bash脚本的时候,老担心产生的临时文件伤害硬盘,所以不停的修改脚本,通过使用管道和变量,临时文件数量是不停的减少,而且技术也在提高,但仍然会产生7到8个的临时文件,以每5个小时产生的速度不停地写硬盘,怕把硬盘给写出坏道来,记得以前看到过使用内存当硬盘的工具,不知道在linux下有没,google一下,发现,原来系统本身就有这种功能,就是使用/dev/ram*文件,使用方法简单,先格式化,再挂载,相当好用,可是大小...

by linpinger - Linux文档专区 - 2007-03-14 18:40:24 阅读(417) 回复(0)

ramfs, rootfs and initramfs October 17, 2005 Rob Landley ============================= What is ramfs? -------------- ramfs is a very simple filesystem that exports Linux's disk caching mechanisms (the page cache and dentry cache) as a dynamically resizable RAM-based filesystem. Normally all files are cached in memory by Linux. Pages of data read from backing store (usually the block device the f...

by fuleru - Linux文档专区 - 2009-07-25 08:42:48 阅读(606) 回复(0)

ramfs顾名思义是内存文件系统,它工作于虚拟文件系统(VFS)层。不能格式化,可以创建多个,在创建时可以指定其最大能使用的内存大小。如果你的Linux已经将ramfs编译进内核,你就可以很容易地使用ramfs了。创建一个目录,加载ramfs到该目录即可。 # mkdir -p /RAM1 # mount -t ramfs none /RAM1 缺省情况下,ramfs被限制最多可使用内存大小的一半。可以通过maxsize (以kbyte为单位)选项来改变。 ...

by steprun - Linux文档专区 - 2007-03-22 14:14:48 阅读(690) 回复(0)