rtems文件系统(1)

本文介绍了rtems文件系统的特点,包括可挂载性、分级目录结构、POSIX兼容操作以及对文件和目录的权限、ID和时间戳的支持。rtems通过设备注册实现文件系统挂载,并提供open(), read(), write()等传统文件操作。此外,还提到了基于RAM的In-Memory File System (IMFS)提供完整的POSIX文件系统功能。" 105206671,6286251,SQL操作:DAU与留存率计算,"['数据分析', 'SQL查询', '数据库管理', '业务指标']

本文主要整理了 rtems 文件系统相关的知识。

rtems 架构支持

• Mountable file systems 可挂载
• Hierarchical file system directory structure 分级
• POSIX compliant set of routines for the manipulation of files and directories         posix兼容的文件目录操作
• Individual file and directory support for the following:    
1. Permissions for read, write and execute
2. User ID
3. Group ID
4. Access time
5. Modification time
6. Creation time
• Hard links to files and directories 
• Symbolic links to files and directories 

它提供了类似unix的文件系统。posix的一些对文件和目录的操作都已经实现。rtems文件系统的概念有助于对未来设备的扩展和适应。也正是因为扩展原因,所以rtems文件系统具有可挂载性。

定义在rtems configuration中的设备都被注册为可挂载文件系统中的文件,访问设备驱动和设备可以通过传统的文件操作方式 ,除了IO manager中接口外,还有open(), read(), write(), lseek(), fstat() and ioctl() functions

rtems提供基于ram的文件系统In-Memory File System (IMFS),提供完全的posix文件系统能力

The IMFS maintains a node structure for each file, device, and directory in each mounted instantiation of its file system. The node structure is used to manage ownership, access rights, access time, modification time, and creation time. 

一般文件编程都有文件头,包含一些信息。比如ownership等


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值