|
PatchworkOS
|
Superblock structure. More...
#include <superblock.h>
Data Fields | |
| ref_t | ref |
| list_entry_t | entry |
| superblock_id_t | id |
| uint64_t | blockSize |
| uint64_t | maxFileSize |
| void * | private |
| dentry_t * | root |
| const superblock_ops_t * | ops |
| const dentry_ops_t * | dentryOps |
| const filesystem_t * | fs |
| char | deviceName [MAX_NAME] |
| atomic_uint64_t | mountCount |
Superblock structure.
Superblocks are owned by the VFS, not the filesystem.
Definition at line 43 of file superblock.h.
| uint64_t superblock_t::blockSize |
Definition at line 48 of file superblock.h.
Referenced by ramfs_mount(), and superblock_new().
| const dentry_ops_t* superblock_t::dentryOps |
Definition at line 53 of file superblock.h.
Referenced by dentry_new(), and superblock_new().
| char superblock_t::deviceName[MAX_NAME] |
Definition at line 55 of file superblock.h.
Referenced by superblock_new().
| list_entry_t superblock_t::entry |
Definition at line 46 of file superblock.h.
Referenced by superblock_new(), and vfs_remove_superblock().
| const filesystem_t* superblock_t::fs |
Definition at line 54 of file superblock.h.
Referenced by superblock_new(), sysfs_dir_new(), sysfs_file_new(), sysfs_mount_new(), and vfs_unregister_fs().
| superblock_id_t superblock_t::id |
Definition at line 47 of file superblock.h.
Referenced by superblock_new(), vfs_add_inode(), vfs_get_inode(), vfs_link(), and vfs_remove_inode().
| uint64_t superblock_t::maxFileSize |
Definition at line 49 of file superblock.h.
Referenced by ramfs_mount(), and superblock_new().
| atomic_uint64_t superblock_t::mountCount |
The number of mounts of this superblock.
Note that this does need to be separate from the reference count as a superblock is referenced by mounts, but it can also be referenced by other things like open files.
Definition at line 62 of file superblock.h.
Referenced by superblock_dec_mount_count(), superblock_free(), superblock_inc_mount_count(), and superblock_new().
| const superblock_ops_t* superblock_t::ops |
Definition at line 52 of file superblock.h.
Referenced by inode_free(), inode_new(), superblock_dec_mount_count(), superblock_free(), and superblock_new().
| void* superblock_t::private |
Definition at line 50 of file superblock.h.
Referenced by ramfs_dentry_deinit(), ramfs_load_dir(), ramfs_mount(), socket_new(), socket_unmount(), and superblock_new().
| ref_t superblock_t::ref |
Definition at line 45 of file superblock.h.
Referenced by superblock_new().
| dentry_t* superblock_t::root |
Definition at line 51 of file superblock.h.
Referenced by ramfs_mount(), superblock_free(), superblock_new(), and sysfs_mount().