lib: fs: implement private and shared file mappings

This commit is contained in:
2026-03-21 10:46:15 +00:00
parent 3bf995cdf6
commit d1a9c5cd45
3 changed files with 66 additions and 20 deletions

View File

@@ -2,12 +2,14 @@
#define FS_INODE_H_
#include <fs/status.h>
#include <mango/types.h>
#include <stddef.h>
struct fs_inode;
struct fs_dentry;
struct fs_superblock;
struct fs_file_ops;
struct file_mapping;
enum fs_inode_mode {
FS_INODE_REG = 0x01u,
@@ -27,6 +29,7 @@ struct fs_inode {
const struct fs_inode_ops *i_ops;
const struct fs_file_ops *i_fops;
size_t i_size;
struct file_mapping *i_shared_mapping;
};
extern enum fs_status fs_inode_lookup(