2026-03-15 09:43:49 +00:00
|
|
|
#ifndef MAPPING_H_
|
|
|
|
|
#define MAPPING_H_
|
|
|
|
|
|
|
|
|
|
#include "queue.h"
|
|
|
|
|
|
|
|
|
|
#include <mango/types.h>
|
|
|
|
|
|
|
|
|
|
struct fs_file;
|
|
|
|
|
|
2026-03-21 10:46:15 +00:00
|
|
|
enum file_mapping_type {
|
|
|
|
|
FILE_MAPPING_PRIVATE,
|
|
|
|
|
FILE_MAPPING_SHARED,
|
|
|
|
|
};
|
|
|
|
|
|
2026-03-15 09:43:49 +00:00
|
|
|
struct file_mapping {
|
2026-03-21 10:46:15 +00:00
|
|
|
enum file_mapping_type m_type;
|
2026-03-15 09:43:49 +00:00
|
|
|
struct fs_file *m_file;
|
|
|
|
|
kern_handle_t m_vmo;
|
|
|
|
|
struct queue_entry m_entry;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|