- 博客(4)
- 资源 (4)
- 收藏
- 关注
转载 Nand Flash驱动, ECC, MTD, FTL, 文件系统
特点Nand flash存储结构为chip->(plane)->block->page>byte。page分为数据区和oob(out of band),oob用于存放ecc码、标记坏块和文件系统备用等。Nand flash的物理特性决定了每一个bit只能从1变为0,不能从0变为1。Nand flash在出厂和使用过程中可能出现某些bit错误,所以采用了ecc的纠错和检错方法。在
2013-05-28 22:00:24 5487
转载 VFS文件系统之二: VFS的数据结构
(1)基本概念 从本质上讲,文件系统是特殊的数据分层存储结构,它包含文件、目录和相关的控制信息。为了描述这结构,Linux引入一些基本概念:A,文件:一组在逻辑上具有完整意义的信息项的系列。另外,在Linux中,除了普通文件,其他诸如目录、设备、套接字等也以文件被对待。总之,“一切皆文件”。B,目录:目录好比一个文件夹,用来容纳相关文件。因为目录可以包含子目录,所
2013-05-28 21:59:11 822
转载 VFS文件系统之一:VFS与MTD
(1)VFS文件系统 操作系统中负责管理和存储文件信息的软件机构称为文件管理系统,简称文件系统。文件系统由三部分组成:与文件管理有关的软件、被管理的文件以及实施文件管理所需的数据结构。一个分区或磁盘能作为文件系统使用前,需要初始化,并将记录数据结构写到磁盘上。这个过程就叫建立文件系统。嵌入式LINUX的文件系统包括如下:ext2、ext3、vfat、ntfs、iso9660、jf
2013-05-28 21:58:31 1065
转载 get_ds, set_fs, get_fs函数的使用
在linux内核编程时,进行系统调用(如文件操作)时如果要访问用户空间的参数,可以用set_fs,get_ds等函数实现访问。get_ds获得kernel的内存访问地址范围(IA32是4GB),set_fs是设置当前的地址访问限制值,get_fs是取得当前的地址访问限制值。进程由用户态进入核态,linux进程的task_struct结构中的成员addr_limit也应该由0xBFFFFFFF变为0
2013-05-16 22:39:53 838
The design of design
2011-08-22
Inside the C++ object model
2008-09-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人