|
PatchworkOS
|
Inode structure. More...
#include <inode.h>
Data Fields | |
| ref_t | ref |
| inode_number_t | number |
| Constant after creation. | |
| inode_type_t | type |
| Constant after creation. | |
| inode_flags_t | flags |
| uint64_t | linkCount |
| uint64_t | size |
| uint64_t | blocks |
| time_t | accessTime |
| Unix time stamp for the last inode access. | |
| time_t | modifyTime |
| Unix time stamp for last file content alteration. | |
| time_t | changeTime |
| Unix time stamp for the last file metadata alteration. | |
| time_t | createTime |
| Unix time stamp for the inode creation. | |
| void * | private |
| superblock_t * | superblock |
| Constant after creation. | |
| const inode_ops_t * | ops |
| Constant after creation. | |
| const file_ops_t * | fileOps |
| Constant after creation. | |
| mutex_t | mutex |
| map_entry_t | mapEntry |
| Protected by the inodeCache lock. | |
Inode structure.
Inodes are owned by the filesystem, not the VFS.
| time_t inode_t::accessTime |
Unix time stamp for the last inode access.
Definition at line 62 of file inode.h.
Referenced by inode_new(), inode_notify_access(), and vfs_stat().
| uint64_t inode_t::blocks |
Definition at line 61 of file inode.h.
Referenced by inode_new(), ramfs_inode_new(), and vfs_stat().
| time_t inode_t::changeTime |
Unix time stamp for the last file metadata alteration.
Definition at line 64 of file inode.h.
Referenced by inode_new(), inode_notify_change(), inode_notify_modify(), and vfs_stat().
| time_t inode_t::createTime |
Unix time stamp for the inode creation.
Definition at line 65 of file inode.h.
Referenced by inode_new(), and vfs_stat().
| const file_ops_t* inode_t::fileOps |
Constant after creation.
Definition at line 69 of file inode.h.
Referenced by file_new(), and inode_new().
| inode_flags_t inode_t::flags |
Definition at line 58 of file inode.h.
Referenced by inode_new().
| uint64_t inode_t::linkCount |
Definition at line 59 of file inode.h.
Referenced by inode_new(), ramfs_link(), ramfs_remove_file(), and vfs_stat().
| map_entry_t inode_t::mapEntry |
Protected by the inodeCache lock.
Definition at line 71 of file inode.h.
Referenced by inode_new(), and vfs_add_inode().
| time_t inode_t::modifyTime |
Unix time stamp for last file content alteration.
Definition at line 63 of file inode.h.
Referenced by inode_new(), inode_notify_modify(), and vfs_stat().
| mutex_t inode_t::mutex |
Definition at line 70 of file inode.h.
Referenced by file_generic_seek(), inode_new(), inode_notify_access(), inode_notify_change(), inode_notify_modify(), inode_truncate(), ramfs_read(), ramfs_remove(), ramfs_write(), vfs_create(), vfs_get_or_lookup_dentry(), vfs_link(), vfs_remove(), and vfs_stat().
| inode_number_t inode_t::number |
Constant after creation.
Definition at line 56 of file inode.h.
Referenced by dentry_generic_getdents(), getdents_recursive_traversal(), inode_new(), vfs_add_inode(), vfs_remove_inode(), and vfs_stat().
| const inode_ops_t* inode_t::ops |
Constant after creation.
Definition at line 68 of file inode.h.
Referenced by inode_free(), inode_new(), inode_truncate(), vfs_create(), vfs_get_or_lookup_dentry(), vfs_link(), and vfs_remove().
| void* inode_t::private |
Definition at line 66 of file inode.h.
Referenced by acpi_table_read(), fb_buffer_mmap(), fb_dir_cleanup(), fb_info_read(), inode_new(), kbd_dir_cleanup(), kbd_events_poll(), kbd_events_read(), kbd_name_read(), mouse_dir_cleanup(), mouse_events_poll(), mouse_events_read(), mouse_name_read(), process_file_get_process(), process_inode_cleanup(), ramfs_inode_cleanup(), ramfs_inode_new(), ramfs_read(), ramfs_truncate(), ramfs_write(), socket_accept_open(), socket_ctl_bind(), socket_ctl_connect(), socket_ctl_listen(), socket_data_open(), socket_factory_open(), socket_inode_cleanup(), sysfs_dir_new(), and sysfs_file_new().
| ref_t inode_t::ref |
Definition at line 55 of file inode.h.
Referenced by inode_new(), and vfs_get_inode().
| uint64_t inode_t::size |
Definition at line 60 of file inode.h.
Referenced by file_generic_seek(), inode_new(), ramfs_inode_new(), ramfs_read(), ramfs_truncate(), ramfs_write(), and vfs_stat().
| superblock_t* inode_t::superblock |
Constant after creation.
Definition at line 67 of file inode.h.
Referenced by inode_free(), inode_new(), ramfs_create(), vfs_add_inode(), and vfs_remove_inode().
| inode_type_t inode_t::type |
Constant after creation.
Definition at line 57 of file inode.h.
Referenced by dentry_generic_getdents(), getdents_recursive_traversal(), inode_new(), ramfs_remove(), vfs_create(), vfs_ctx_set_cwd(), vfs_getdents(), vfs_ioctl(), vfs_mmap(), vfs_open(), vfs_open2(), vfs_open_lookup(), vfs_poll(), vfs_read(), vfs_remove(), vfs_stat(), and vfs_write().