lib: fs: implement private and shared file mappings
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user