RTEMS
5.0.0
|
#include <rtems-rfs-file.h>
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_file_system* _rtems_rfs_file_shared::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.
rtems_rfs_inode_handle _rtems_rfs_file_shared::inode |
The inode for the file.
rtems_chain_node _rtems_rfs_file_shared::link |
The shared parts are maintained as a list.
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.
int _rtems_rfs_file_shared::references |
Reference count the users of this data.
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.