![]() |
MOS Source Code
|
#include <vfs_types.hpp>
Public Attributes | |
| u64 | ino |
| file_type_t | type |
| file_perm_t | perm |
| size_t | size |
| uid_t | uid |
| gid_t | gid |
| bool | sticky |
| bool | suid |
| bool | sgid |
| ssize_t | nlinks |
| u64 | accessed |
| u64 | created |
| u64 | modified |
| superblock_t * | superblock |
| const inode_ops_t * | ops |
| const file_ops_t * | file_ops |
| void * | private_data |
| inode_cache_t | cache |
| atomic_t | refcount |
| number of references to this inode | |
Additional Inherited Members | |
| Static Public Attributes inherited from NamedType<"inode"> | |
| static constexpr mos::string_view | type_name |
Definition at line 161 of file vfs_types.hpp.
| u64 ino |
Definition at line 163 of file vfs_types.hpp.
Referenced by cpio_i_iterate_dir(), i_to_pb_full(), inode_init(), sysfs_register_file(), userfs_iop_unlink(), userfs_sync_inode(), vfs_copy_stat(), and vfs_generic_iterate_dir().
| file_type_t type |
Definition at line 164 of file vfs_types.hpp.
Referenced by dentry_resolve_follow_symlink(), dentry_resolve_to_parent(), i_to_pb_full(), inode_init(), tmpfs_i_hardlink(), tmpfs_i_rmdir(), tmpfs_sb_drop_inode(), vfs_copy_stat(), vfs_do_open_dentry(), and vfs_list_dir().
| file_perm_t perm |
Definition at line 165 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), inode_init(), ipc_sysfs_create_ino(), MOS_INIT(), sysfs_do_register(), sysfs_register_file(), tmpfs_create_inode(), vfs_copy_stat(), vfs_mkdir(), and vfs_verify_permissions().
| size_t size |
Definition at line 166 of file vfs_types.hpp.
Referenced by cpio_fill_cache(), cpio_i_readlink(), cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), simple_page_write_end(), sysfs_register_file(), vfs_copy_stat(), and vfs_generic_read().
| uid_t uid |
Definition at line 167 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| gid_t gid |
Definition at line 168 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| bool sticky |
Definition at line 169 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| bool suid |
Definition at line 170 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| bool sgid |
Definition at line 171 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| ssize_t nlinks |
Definition at line 172 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), i_to_pb_full(), inode_init(), inode_try_drop(), inode_unlink(), tmpfs_i_hardlink(), tmpfs_i_rmdir(), tmpfs_sb_drop_inode(), and vfs_copy_stat().
| u64 accessed |
Definition at line 173 of file vfs_types.hpp.
Referenced by i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| u64 created |
Definition at line 174 of file vfs_types.hpp.
Referenced by i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| u64 modified |
Definition at line 175 of file vfs_types.hpp.
Referenced by i_from_pbfull(), i_to_pb_full(), and vfs_copy_stat().
| superblock_t* superblock |
Definition at line 177 of file vfs_types.hpp.
Referenced by cpio_i_lookup(), cpio_mount(), dentry_mount(), do_sync_inode(), inode_init(), ipc_server_close(), tmpfs_mknod_impl(), userfs_fsop_mount(), userfs_inode_cache_fill_cache(), userfs_inode_cache_flush_page(), userfs_iop_lookup(), userfs_iop_mkdir(), userfs_iop_mknode(), userfs_iop_newfile(), userfs_iop_rename(), userfs_iop_rmdir(), userfs_iop_symlink(), userfs_iop_unlink(), and userfs_sync_inode().
| const inode_ops_t* ops |
Definition at line 178 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), dentry_lookup_child(), dentry_resolve_follow_symlink(), i_from_pbfull(), inode_unlink(), sysfs_do_register(), tmpfs_create_inode(), userfs_iop_lookup(), userfs_iop_mkdir(), userfs_iop_newfile(), vfs_mkdir(), vfs_populate_listdir_buf(), vfs_rmdir(), vfs_symlink(), and vfs_unlinkat().
| const file_ops_t* file_ops |
Definition at line 179 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), i_from_pbfull(), inode_init(), ipc_sysfs_create_ino(), MOS_INIT(), sysfs_do_register(), sysfs_register_file(), tmpfs_create_inode(), userfs_iop_lookup(), userfs_iop_mkdir(), and userfs_iop_newfile().
| void* private_data |
Definition at line 180 of file vfs_types.hpp.
Referenced by i_from_pbfull(), i_to_pb_ref(), inode_init(), sysfs_create_inode(), sysfs_do_register(), sysfs_fops_open(), sysfs_iops_create(), sysfs_iops_iterate_dir(), sysfs_iops_lookup(), and sysfs_register_file().
| inode_cache_t cache |
Definition at line 181 of file vfs_types.hpp.
Referenced by cpio_inode_trycreate(), do_pagecache_flush(), inode_init(), tmpfs_create_inode(), userfs_iop_lookup(), userfs_iop_mkdir(), userfs_iop_newfile(), vfs_fault_handler(), vfs_generic_read(), and vfs_generic_write().
| atomic_t refcount |
number of references to this inode
Definition at line 183 of file vfs_types.hpp.
Referenced by inode_init(), inode_ref(), inode_try_drop(), and inode_unref().