27 lines
363 B
C
27 lines
363 B
C
#ifndef MAPPING_H_
|
|
#define MAPPING_H_
|
|
|
|
#include "queue.h"
|
|
|
|
#include <magenta/types.h>
|
|
|
|
struct fs_file;
|
|
|
|
enum file_mapping_type {
|
|
FILE_MAPPING_PRIVATE,
|
|
FILE_MAPPING_SHARED,
|
|
};
|
|
|
|
struct file_mapping {
|
|
enum file_mapping_type m_type;
|
|
|
|
/* for shared mappings */
|
|
size_t m_ref;
|
|
|
|
struct fs_file *m_file;
|
|
kern_handle_t m_vmo;
|
|
struct queue_entry m_entry;
|
|
};
|
|
|
|
#endif
|