lib: fs: implement memory-mapped file i/o
This commit is contained in:
17
lib/libfs/mapping.h
Normal file
17
lib/libfs/mapping.h
Normal 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
|
||||
Reference in New Issue
Block a user