lib: fs: implement memory-mapped file i/o

This commit is contained in:
2026-03-15 09:43:49 +00:00
parent 68b7783f32
commit 0c56c645ac
12 changed files with 580 additions and 5 deletions

17
lib/libfs/mapping.h Normal file
View File

@@ -0,0 +1,17 @@
#ifndef MAPPING_H_
#define MAPPING_H_
#include "queue.h"
#include <mango/types.h>
struct fs_file;
struct file_mapping {
struct fs_file *m_file;
kern_handle_t m_vmo;
off_t m_file_offset;
struct queue_entry m_entry;
};
#endif