RTEMS CPU Kit with SuperCore
4.11.3
|
File data that is shared by various file handles accessing the same file. More...
#include <rtems-rfs-file.h>
Data Fields | |
rtems_chain_node | link |
The shared parts are maintained as a list. | |
int | references |
Reference count the users of this data. | |
rtems_rfs_inode_handle | inode |
The inode for the file. | |
rtems_rfs_block_map | map |
The block map for the file. More... | |
rtems_rfs_block_size | size |
The size of the file as taken from the inode. More... | |
rtems_rfs_time | atime |
The access time. More... | |
rtems_rfs_time | mtime |
The modified time. More... | |
rtems_rfs_time | ctime |
The change time. More... | |
rtems_rfs_file_system * | fs |
Hold a pointer to the file system data so users can take the handle and use it without the needing to hold the file system data pointer. | |
File data that is shared by various file handles accessing the same file.
We hold various inode values common to the file that can change frequently so the inode is not thrashed yet we meet the requirements of the POSIX standard. The stat call needs to check the shared file data.
rtems_rfs_time _rtems_rfs_file_shared::atime |
The access time.
The last time the file was read.
rtems_rfs_time _rtems_rfs_file_shared::ctime |
The change time.
The last time the inode was written too.
rtems_rfs_block_map _rtems_rfs_file_shared::map |
The block map for the file.
The handle holds the file's position not the map.
rtems_rfs_time _rtems_rfs_file_shared::mtime |
The modified time.
The last time the file was written too.
rtems_rfs_block_size _rtems_rfs_file_shared::size |
The size of the file as taken from the inode.
The map's size and this size should be the same.